30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_PARTITION_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_PARTITION_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_partition.cuh>
37 BEGIN_HIPCUB_NAMESPACE
42 typename InputIteratorT,
43 typename FlagIterator,
44 typename OutputIteratorT,
45 typename NumSelectedIteratorT>
46 HIPCUB_RUNTIME_FUNCTION __forceinline__
49 size_t &temp_storage_bytes,
52 OutputIteratorT d_out,
53 NumSelectedIteratorT d_num_selected_out,
55 hipStream_t stream = 0,
56 bool debug_synchronous =
false)
58 (void)debug_synchronous;
59 return hipCUDAErrorTohipError(::cub::DevicePartition::Flagged(d_temp_storage,
70 typename InputIteratorT,
71 typename OutputIteratorT,
72 typename NumSelectedIteratorT,
74 HIPCUB_RUNTIME_FUNCTION __forceinline__
77 size_t &temp_storage_bytes,
79 OutputIteratorT d_out,
80 NumSelectedIteratorT d_num_selected_out,
83 hipStream_t stream = 0,
84 bool debug_synchronous =
false)
86 (void)debug_synchronous;
87 return hipCUDAErrorTohipError(::cub::DevicePartition::If(d_temp_storage,
97 template <
typename InputIteratorT,
98 typename FirstOutputIteratorT,
99 typename SecondOutputIteratorT,
100 typename UnselectedOutputIteratorT,
101 typename NumSelectedIteratorT,
102 typename SelectFirstPartOp,
103 typename SelectSecondPartOp>
104 HIPCUB_RUNTIME_FUNCTION __forceinline__
static hipError_t
105 If(
void *d_temp_storage,
106 std::size_t &temp_storage_bytes,
108 FirstOutputIteratorT d_first_part_out,
109 SecondOutputIteratorT d_second_part_out,
110 UnselectedOutputIteratorT d_unselected_out,
111 NumSelectedIteratorT d_num_selected_out,
113 SelectFirstPartOp select_first_part_op,
114 SelectSecondPartOp select_second_part_op,
115 hipStream_t stream = 0,
116 bool debug_synchronous =
false)
118 (void)debug_synchronous;
119 return hipCUDAErrorTohipError(::cub::DevicePartition::If(d_temp_storage,
127 select_first_part_op,
128 select_second_part_op,
Definition: device_partition.hpp:40
__host__ static __forceinline__ hipError_t If(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, OutputIteratorT d_out, NumSelectedIteratorT d_num_selected_out, int num_items, SelectOp select_op, hipStream_t stream=0, bool debug_synchronous=false)
Definition: device_partition.hpp:75
__host__ static __forceinline__ hipError_t Flagged(void *d_temp_storage, size_t &temp_storage_bytes, InputIteratorT d_in, FlagIterator d_flags, OutputIteratorT d_out, NumSelectedIteratorT d_num_selected_out, int num_items, hipStream_t stream=0, bool debug_synchronous=false)
Definition: device_partition.hpp:47
Definition: util_type.hpp:54