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 (void)debug_synchronous;
60 return hipCUDAErrorTohipError(::cub::DeviceSelect::Flagged(d_temp_storage,
71 typename InputIteratorT,
72 typename OutputIteratorT,
73 typename NumSelectedIteratorT,
76 HIPCUB_RUNTIME_FUNCTION
static
77 hipError_t
If(
void *d_temp_storage,
78 size_t &temp_storage_bytes,
80 OutputIteratorT d_out,
81 NumSelectedIteratorT d_num_selected_out,
84 hipStream_t stream = 0,
85 bool debug_synchronous =
false)
87 (void)debug_synchronous;
88 return hipCUDAErrorTohipError(::cub::DeviceSelect::If(d_temp_storage,
99 typename InputIteratorT,
100 typename OutputIteratorT,
101 typename NumSelectedIteratorT
103 HIPCUB_RUNTIME_FUNCTION
static
104 hipError_t Unique(
void *d_temp_storage,
105 size_t &temp_storage_bytes,
107 OutputIteratorT d_out,
108 NumSelectedIteratorT d_num_selected_out,
110 hipStream_t stream = 0,
111 bool debug_synchronous =
false)
113 (void)debug_synchronous;
114 return hipCUDAErrorTohipError(::cub::DeviceSelect::Unique(d_temp_storage,
124 typename KeyIteratorT,
125 typename ValueIteratorT,
126 typename OutputKeyIteratorT,
127 typename OutputValueIteratorT,
128 typename NumSelectedIteratorT
130 HIPCUB_RUNTIME_FUNCTION
static
131 hipError_t UniqueByKey(
void *d_temp_storage,
132 size_t &temp_storage_bytes,
133 KeyIteratorT d_keys_input,
134 ValueIteratorT d_values_input,
135 OutputKeyIteratorT d_keys_output,
136 OutputValueIteratorT d_values_output,
137 NumSelectedIteratorT d_num_selected_out,
139 hipStream_t stream = 0,
140 bool debug_synchronous =
false)
142 (void)debug_synchronous;
143 return hipCUDAErrorTohipError(::cub::DeviceSelect::UniqueByKey(d_temp_storage,
Definition: device_select.hpp:40
Definition: util_type.hpp:54