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 return hipCUDAErrorTohipError(
59 ::cub::DevicePartition::Flagged(
74 typename InputIteratorT,
75 typename OutputIteratorT,
76 typename NumSelectedIteratorT,
78 HIPCUB_RUNTIME_FUNCTION __forceinline__
81 size_t &temp_storage_bytes,
83 OutputIteratorT d_out,
84 NumSelectedIteratorT d_num_selected_out,
87 hipStream_t stream = 0,
88 bool debug_synchronous =
false)
90 return hipCUDAErrorTohipError(
91 ::cub::DevicePartition::If(
105 template <
typename InputIteratorT,
106 typename FirstOutputIteratorT,
107 typename SecondOutputIteratorT,
108 typename UnselectedOutputIteratorT,
109 typename NumSelectedIteratorT,
110 typename SelectFirstPartOp,
111 typename SelectSecondPartOp>
112 HIPCUB_RUNTIME_FUNCTION __forceinline__
static hipError_t
113 If(
void *d_temp_storage,
114 std::size_t &temp_storage_bytes,
116 FirstOutputIteratorT d_first_part_out,
117 SecondOutputIteratorT d_second_part_out,
118 UnselectedOutputIteratorT d_unselected_out,
119 NumSelectedIteratorT d_num_selected_out,
121 SelectFirstPartOp select_first_part_op,
122 SelectSecondPartOp select_second_part_op,
123 hipStream_t stream = 0,
124 bool debug_synchronous =
false)
126 return hipCUDAErrorTohipError(
127 ::cub::DevicePartition::If(
136 select_first_part_op,
137 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:79
__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