diff --git a/thrust/thrust/system/cuda/detail/transform.h b/thrust/thrust/system/cuda/detail/transform.h index 9e1d0b2a318..1926fb62473 100644 --- a/thrust/thrust/system/cuda/detail/transform.h +++ b/thrust/thrust/system/cuda/detail/transform.h @@ -178,8 +178,10 @@ struct binary_transform_f -OutputIt THRUST_FUNCTION unary( +OutputIt _CCCL_HOST_DEVICE inline unary( Policy& policy, InputIt items, OutputIt result, @@ -200,6 +202,8 @@ OutputIt THRUST_FUNCTION unary( return result + num_items; } +// EAN 2024-10-04: when force-inlined, gcc's optimizer will generate bad code +// for this function: template -OutputIt THRUST_FUNCTION binary( +OutputIt _CCCL_HOST_DEVICE inline binary( Policy& policy, InputIt1 items1, InputIt2 items2,