30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_SELECT_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_SELECT_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_select.cuh>
37 BEGIN_HIPCUB_NAMESPACE
43 typename InputIteratorT,
44 typename FlagIterator,
45 typename OutputIteratorT,
46 typename NumSelectedIteratorT
48 HIPCUB_RUNTIME_FUNCTION
static
49 hipError_t Flagged(
void *d_temp_storage,
50 size_t &temp_storage_bytes,
53 OutputIteratorT d_out,
54 NumSelectedIteratorT d_num_selected_out,
56 hipStream_t stream = 0,
57 bool debug_synchronous =
false)
59 return hipCUDAErrorTohipError(
60 ::cub::DeviceSelect::Flagged(
61 d_temp_storage, temp_storage_bytes,
63 d_out, d_num_selected_out, num_items,
64 stream, debug_synchronous
70 typename InputIteratorT,
71 typename OutputIteratorT,
72 typename NumSelectedIteratorT,
75 HIPCUB_RUNTIME_FUNCTION
static
76 hipError_t
If(
void *d_temp_storage,
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 return hipCUDAErrorTohipError(
87 ::cub::DeviceSelect::If(
88 d_temp_storage, temp_storage_bytes,
89 d_in, d_out, d_num_selected_out,
91 stream, debug_synchronous
97 typename InputIteratorT,
98 typename OutputIteratorT,
99 typename NumSelectedIteratorT
101 HIPCUB_RUNTIME_FUNCTION
static
102 hipError_t Unique(
void *d_temp_storage,
103 size_t &temp_storage_bytes,
105 OutputIteratorT d_out,
106 NumSelectedIteratorT d_num_selected_out,
108 hipStream_t stream = 0,
109 bool debug_synchronous =
false)
111 return hipCUDAErrorTohipError(
112 ::cub::DeviceSelect::Unique(
113 d_temp_storage, temp_storage_bytes,
114 d_in, d_out, d_num_selected_out, num_items,
115 stream, debug_synchronous
121 typename KeyIteratorT,
122 typename ValueIteratorT,
123 typename OutputKeyIteratorT,
124 typename OutputValueIteratorT,
125 typename NumSelectedIteratorT
127 HIPCUB_RUNTIME_FUNCTION
static
128 hipError_t UniqueByKey(
void *d_temp_storage,
129 size_t &temp_storage_bytes,
130 KeyIteratorT d_keys_input,
131 ValueIteratorT d_values_input,
132 OutputKeyIteratorT d_keys_output,
133 OutputValueIteratorT d_values_output,
134 NumSelectedIteratorT d_num_selected_out,
136 hipStream_t stream = 0,
137 bool debug_synchronous =
false)
139 return hipCUDAErrorTohipError(
140 ::cub::DeviceSelect::UniqueByKey(
141 d_temp_storage, temp_storage_bytes,
142 d_keys_input, d_values_input,
143 d_keys_output, d_values_output,
144 d_num_selected_out, num_items,
145 stream, debug_synchronous
Definition: device_select.hpp:40
Definition: util_type.hpp:54