Class DeviceReduce

Class Documentation

class hipcub::DeviceReduce

Public Static Functions

template<typename InputIteratorT, typename OutputIteratorT, typename ReduceOpT, typename T>
__host__ static inline hipError_t Reduce(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, ReduceOpT reduction_op, T init, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Sum(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Min(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t ArgMin(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Max(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t ArgMax(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename KeysInputIteratorT, typename UniqueOutputIteratorT, typename ValuesInputIteratorT, typename AggregatesOutputIteratorT, typename NumRunsOutputIteratorT, typename ReductionOpT>
__host__ static inline hipError_t ReduceByKey(void *d_temp_storage, size_t &temp_storage_bytes, KeysInputIteratorT d_keys_in, UniqueOutputIteratorT d_unique_out, ValuesInputIteratorT d_values_in, AggregatesOutputIteratorT d_aggregates_out, NumRunsOutputIteratorT d_num_runs_out, ReductionOpT reduction_op, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT, typename ReduceOpT, typename T>
__host__ static inline hipError_t Reduce(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, ReduceOpT reduction_op, T init, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Sum(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Min(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t ArgMin(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t Max(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename InputIteratorT, typename OutputIteratorT>
__host__ static inline hipError_t ArgMax(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)
template<typename KeysInputIteratorT, typename UniqueOutputIteratorT, typename ValuesInputIteratorT, typename AggregatesOutputIteratorT, typename NumRunsOutputIteratorT, typename ReductionOpT>
__host__ static inline hipError_t ReduceByKey(void *d_temp_storage, size_t &temp_storage_bytes, KeysInputIteratorT d_keys_in, UniqueOutputIteratorT d_unique_out, ValuesInputIteratorT d_values_in, AggregatesOutputIteratorT d_aggregates_out, NumRunsOutputIteratorT d_num_runs_out, ReductionOpT reduction_op, int num_items, hipStream_t stream = 0, bool debug_synchronous = false)