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 (void)debug_synchronous;
60 return hipCUDAErrorTohipError(::cub::DeviceHistogram::HistogramEven(d_temp_storage,
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 (void)debug_synchronous;
92 return hipCUDAErrorTohipError(::cub::DeviceHistogram::HistogramEven(d_temp_storage,
107 int NUM_ACTIVE_CHANNELS,
108 typename SampleIteratorT,
113 HIPCUB_RUNTIME_FUNCTION
static
114 hipError_t MultiHistogramEven(
void * d_temp_storage,
115 size_t& temp_storage_bytes,
116 SampleIteratorT d_samples,
117 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
118 int num_levels[NUM_ACTIVE_CHANNELS],
119 LevelT lower_level[NUM_ACTIVE_CHANNELS],
120 LevelT upper_level[NUM_ACTIVE_CHANNELS],
122 hipStream_t stream = 0,
123 bool debug_synchronous =
false)
125 (void)debug_synchronous;
126 return hipCUDAErrorTohipError(
127 ::cub::DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
141 int NUM_ACTIVE_CHANNELS,
142 typename SampleIteratorT,
147 HIPCUB_RUNTIME_FUNCTION
static
148 hipError_t MultiHistogramEven(
void * d_temp_storage,
149 size_t& temp_storage_bytes,
150 SampleIteratorT d_samples,
151 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
152 int num_levels[NUM_ACTIVE_CHANNELS],
153 LevelT lower_level[NUM_ACTIVE_CHANNELS],
154 LevelT upper_level[NUM_ACTIVE_CHANNELS],
155 OffsetT num_row_pixels,
157 size_t row_stride_bytes,
158 hipStream_t stream = 0,
159 bool debug_synchronous =
false)
161 (void)debug_synchronous;
162 return hipCUDAErrorTohipError(
163 ::cub::DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
178 typename SampleIteratorT,
183 HIPCUB_RUNTIME_FUNCTION
static
184 hipError_t HistogramRange(
void * d_temp_storage,
185 size_t& temp_storage_bytes,
186 SampleIteratorT d_samples,
187 CounterT * d_histogram,
191 hipStream_t stream = 0,
192 bool debug_synchronous =
false)
194 (void)debug_synchronous;
195 return hipCUDAErrorTohipError(::cub::DeviceHistogram::HistogramRange(d_temp_storage,
206 typename SampleIteratorT,
211 HIPCUB_RUNTIME_FUNCTION
static
212 hipError_t HistogramRange(
void * d_temp_storage,
213 size_t& temp_storage_bytes,
214 SampleIteratorT d_samples,
215 CounterT * d_histogram,
218 OffsetT num_row_samples,
220 size_t row_stride_bytes,
221 hipStream_t stream = 0,
222 bool debug_synchronous =
false)
224 (void)debug_synchronous;
225 return hipCUDAErrorTohipError(::cub::DeviceHistogram::HistogramRange(d_temp_storage,
239 int NUM_ACTIVE_CHANNELS,
240 typename SampleIteratorT,
245 HIPCUB_RUNTIME_FUNCTION
static
246 hipError_t MultiHistogramRange(
void * d_temp_storage,
247 size_t& temp_storage_bytes,
248 SampleIteratorT d_samples,
249 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
250 int num_levels[NUM_ACTIVE_CHANNELS],
251 LevelT * d_levels[NUM_ACTIVE_CHANNELS],
253 hipStream_t stream = 0,
254 bool debug_synchronous =
false)
256 (void)debug_synchronous;
257 return hipCUDAErrorTohipError(
258 ::cub::DeviceHistogram::MultiHistogramRange<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
271 int NUM_ACTIVE_CHANNELS,
272 typename SampleIteratorT,
277 HIPCUB_RUNTIME_FUNCTION
static
278 hipError_t MultiHistogramRange(
void * d_temp_storage,
279 size_t& temp_storage_bytes,
280 SampleIteratorT d_samples,
281 CounterT * d_histogram[NUM_ACTIVE_CHANNELS],
282 int num_levels[NUM_ACTIVE_CHANNELS],
283 LevelT * d_levels[NUM_ACTIVE_CHANNELS],
284 OffsetT num_row_pixels,
286 size_t row_stride_bytes,
287 hipStream_t stream = 0,
288 bool debug_synchronous =
false)
290 (void)debug_synchronous;
291 return hipCUDAErrorTohipError(
292 ::cub::DeviceHistogram::MultiHistogramRange<NUM_CHANNELS, NUM_ACTIVE_CHANNELS>(
Definition: device_histogram.hpp:40