30 #ifndef HIPCUB_ROCPRIM_THREAD_THREAD_REDUCE_HPP_
31 #define HIPCUB_ROCPRIM_THREAD_THREAD_REDUCE_HPP_
33 BEGIN_HIPCUB_NAMESPACE
42 bool NoPrefix =
false>
43 __device__ __forceinline__ T ThreadReduce(
45 ReductionOp reduction_op,
55 for (
int i = 0 + NoPrefix; i < LENGTH; ++i)
56 retval = reduction_op(retval, input[i]);
65 __device__ __forceinline__ T ThreadReduce(
67 ReductionOp reduction_op,
70 return ThreadReduce<LENGTH, false>((T*)input, reduction_op, prefix);
77 __device__ __forceinline__ T ThreadReduce(
79 ReductionOp reduction_op)
81 return ThreadReduce<LENGTH, true>((T*)input, reduction_op);
Internal namespace (to prevent ADL mishaps between static functions when mixing different CUB install...
Definition: thread_reduce.hpp:36