30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_HISTOGRAM_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_HISTOGRAM_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_histogram.cuh>
37 BEGIN_HIPCUB_NAMESPACE
42 typename SampleIteratorT,
47 HIPCUB_RUNTIME_FUNCTION
static
48 hipError_t HistogramEven(
void * d_temp_storage,
49 size_t& temp_storage_bytes,
50 SampleIteratorT d_samples,
51 CounterT * d_histogram,
56 hipStream_t stream = 0,
57 bool debug_synchronous =
false)
59 return hipCUDAErrorTohipError(
60 ::cub::DeviceHistogram::HistogramEven(
61 d_temp_storage, temp_storage_bytes,
64 num_levels, lower_level, upper_level,
66 stream, debug_synchronous
72 typename SampleIteratorT,
77 HIPCUB_RUNTIME_FUNCTION
static
78 hipError_t HistogramEven(
void * d_temp_storage,
79 size_t& temp_storage_bytes,
80 SampleIteratorT d_samples,
81 CounterT * d_histogram,
85 OffsetT num_row_samples,
87 size_t row_stride_bytes,
88 hipStream_t stream = 0,
89 bool debug_synchronous =
false)
91 return hipCUDAErrorTohipError(
92 ::cub::DeviceHistogram::HistogramEven(
93 d_temp_storage, temp_storage_bytes,
96 num_levels, lower_level, upper_level,
97 num_row_samples, num_rows, row_stride_bytes,
98 stream, debug_synchronous
105 int NUM_ACTIVE_CHANNELS,
106 typename SampleIteratorT,
111 HIPCUB_RUNTIME_FUNCTION
static
112 hipError_t MultiHistogramEven(
void * d_temp_storage,
113 size_t& temp_storage_bytes,
114 SampleIteratorT d_samples,
115 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
116 int num_levels[NUM_ACTIVE_CHANNELS],
117 LevelT lower_level[NUM_ACTIVE_CHANNELS],
118 LevelT upper_level[NUM_ACTIVE_CHANNELS],
120 hipStream_t stream = 0,
121 bool debug_synchronous =
false)
123 return hipCUDAErrorTohipError(
124 ::cub::DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
125 d_temp_storage, temp_storage_bytes,
128 num_levels, lower_level, upper_level,
130 stream, debug_synchronous
137 int NUM_ACTIVE_CHANNELS,
138 typename SampleIteratorT,
143 HIPCUB_RUNTIME_FUNCTION
static
144 hipError_t MultiHistogramEven(
void * d_temp_storage,
145 size_t& temp_storage_bytes,
146 SampleIteratorT d_samples,
147 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
148 int num_levels[NUM_ACTIVE_CHANNELS],
149 LevelT lower_level[NUM_ACTIVE_CHANNELS],
150 LevelT upper_level[NUM_ACTIVE_CHANNELS],
151 OffsetT num_row_pixels,
153 size_t row_stride_bytes,
154 hipStream_t stream = 0,
155 bool debug_synchronous =
false)
157 return hipCUDAErrorTohipError(
158 ::cub::DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
159 d_temp_storage, temp_storage_bytes,
162 num_levels, lower_level, upper_level,
163 num_row_pixels, num_rows, row_stride_bytes,
164 stream, debug_synchronous
170 typename SampleIteratorT,
175 HIPCUB_RUNTIME_FUNCTION
static
176 hipError_t HistogramRange(
void * d_temp_storage,
177 size_t& temp_storage_bytes,
178 SampleIteratorT d_samples,
179 CounterT * d_histogram,
183 hipStream_t stream = 0,
184 bool debug_synchronous =
false)
186 return hipCUDAErrorTohipError(
187 ::cub::DeviceHistogram::HistogramRange(
188 d_temp_storage, temp_storage_bytes,
191 num_levels, d_levels,
193 stream, debug_synchronous
199 typename SampleIteratorT,
204 HIPCUB_RUNTIME_FUNCTION
static
205 hipError_t HistogramRange(
void * d_temp_storage,
206 size_t& temp_storage_bytes,
207 SampleIteratorT d_samples,
208 CounterT * d_histogram,
211 OffsetT num_row_samples,
213 size_t row_stride_bytes,
214 hipStream_t stream = 0,
215 bool debug_synchronous =
false)
217 return hipCUDAErrorTohipError(
218 ::cub::DeviceHistogram::HistogramRange(
219 d_temp_storage, temp_storage_bytes,
222 num_levels, d_levels,
223 num_row_samples, num_rows, row_stride_bytes,
224 stream, debug_synchronous
231 int NUM_ACTIVE_CHANNELS,
232 typename SampleIteratorT,
237 HIPCUB_RUNTIME_FUNCTION
static
238 hipError_t MultiHistogramRange(
void * d_temp_storage,
239 size_t& temp_storage_bytes,
240 SampleIteratorT d_samples,
241 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
242 int num_levels[NUM_ACTIVE_CHANNELS],
243 LevelT * d_levels[NUM_ACTIVE_CHANNELS],
245 hipStream_t stream = 0,
246 bool debug_synchronous =
false)
248 return hipCUDAErrorTohipError(
249 ::cub::DeviceHistogram::MultiHistogramRange<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
250 d_temp_storage, temp_storage_bytes,
253 num_levels, d_levels,
255 stream, debug_synchronous
262 int NUM_ACTIVE_CHANNELS,
263 typename SampleIteratorT,
268 HIPCUB_RUNTIME_FUNCTION
static
269 hipError_t MultiHistogramRange(
void * d_temp_storage,
270 size_t& temp_storage_bytes,
271 SampleIteratorT d_samples,
272 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
273 int num_levels[NUM_ACTIVE_CHANNELS],
274 LevelT * d_levels[NUM_ACTIVE_CHANNELS],
275 OffsetT num_row_pixels,
277 size_t row_stride_bytes,
278 hipStream_t stream = 0,
279 bool debug_synchronous =
false)
281 return hipCUDAErrorTohipError(
282 ::cub::DeviceHistogram::MultiHistogramRange<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
283 d_temp_storage, temp_storage_bytes,
286 num_levels, d_levels,
287 num_row_pixels, num_rows, row_stride_bytes,
288 stream, debug_synchronous
Definition: device_histogram.hpp:40