30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_SEGMENTED_SORT_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_SEGMENTED_SORT_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_segmented_sort.cuh>
37 BEGIN_HIPCUB_NAMESPACE
41 template <
typename KeyT,
42 typename BeginOffsetIteratorT,
43 typename EndOffsetIteratorT>
44 HIPCUB_RUNTIME_FUNCTION
static
45 hipError_t SortKeys(
void * d_temp_storage,
46 size_t& temp_storage_bytes,
47 const KeyT * d_keys_in,
51 BeginOffsetIteratorT d_begin_offsets,
52 EndOffsetIteratorT d_end_offsets,
53 hipStream_t stream = 0,
54 bool debug_synchronous =
false)
56 (void)debug_synchronous;
57 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::SortKeys(d_temp_storage,
68 template <
typename KeyT,
69 typename BeginOffsetIteratorT,
70 typename EndOffsetIteratorT>
71 HIPCUB_RUNTIME_FUNCTION
static
72 hipError_t SortKeysDescending(
void * d_temp_storage,
73 size_t& temp_storage_bytes,
74 const KeyT * d_keys_in,
78 BeginOffsetIteratorT d_begin_offsets,
79 EndOffsetIteratorT d_end_offsets,
80 hipStream_t stream = 0,
81 bool debug_synchronous =
false)
83 (void)debug_synchronous;
84 return hipCUDAErrorTohipError(
85 ::cub::DeviceSegmentedSort::SortKeysDescending(d_temp_storage,
96 template <
typename KeyT,
97 typename BeginOffsetIteratorT,
98 typename EndOffsetIteratorT>
99 HIPCUB_RUNTIME_FUNCTION
static
100 hipError_t SortKeys(
void * d_temp_storage,
101 size_t& temp_storage_bytes,
105 BeginOffsetIteratorT d_begin_offsets,
106 EndOffsetIteratorT d_end_offsets,
107 hipStream_t stream = 0,
108 bool debug_synchronous =
false)
110 (void)debug_synchronous;
111 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::SortKeys(d_temp_storage,
121 template <
typename KeyT,
122 typename BeginOffsetIteratorT,
123 typename EndOffsetIteratorT>
124 HIPCUB_RUNTIME_FUNCTION
static
125 hipError_t SortKeysDescending(
void * d_temp_storage,
126 size_t& temp_storage_bytes,
130 BeginOffsetIteratorT d_begin_offsets,
131 EndOffsetIteratorT d_end_offsets,
132 hipStream_t stream = 0,
133 bool debug_synchronous =
false)
135 (void)debug_synchronous;
136 return hipCUDAErrorTohipError(
137 ::cub::DeviceSegmentedSort::SortKeysDescending(d_temp_storage,
147 template <
typename KeyT,
148 typename BeginOffsetIteratorT,
149 typename EndOffsetIteratorT>
150 HIPCUB_RUNTIME_FUNCTION
static
151 hipError_t StableSortKeys(
void * d_temp_storage,
152 size_t& temp_storage_bytes,
153 const KeyT * d_keys_in,
157 BeginOffsetIteratorT d_begin_offsets,
158 EndOffsetIteratorT d_end_offsets,
159 hipStream_t stream = 0,
160 bool debug_synchronous =
false)
162 (void)debug_synchronous;
163 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::StableSortKeys(d_temp_storage,
174 template <
typename KeyT,
175 typename BeginOffsetIteratorT,
176 typename EndOffsetIteratorT>
177 HIPCUB_RUNTIME_FUNCTION
static
178 hipError_t StableSortKeysDescending(
void * d_temp_storage,
179 size_t& temp_storage_bytes,
180 const KeyT * d_keys_in,
184 BeginOffsetIteratorT d_begin_offsets,
185 EndOffsetIteratorT d_end_offsets,
186 hipStream_t stream = 0,
187 bool debug_synchronous =
false)
189 (void)debug_synchronous;
190 return hipCUDAErrorTohipError(
191 ::cub::DeviceSegmentedSort::StableSortKeysDescending(d_temp_storage,
202 template <
typename KeyT,
203 typename BeginOffsetIteratorT,
204 typename EndOffsetIteratorT>
205 HIPCUB_RUNTIME_FUNCTION
static
206 hipError_t StableSortKeys(
void * d_temp_storage,
207 size_t& temp_storage_bytes,
211 BeginOffsetIteratorT d_begin_offsets,
212 EndOffsetIteratorT d_end_offsets,
213 hipStream_t stream = 0,
214 bool debug_synchronous =
false)
216 (void)debug_synchronous;
217 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::StableSortKeys(d_temp_storage,
227 template <
typename KeyT,
228 typename BeginOffsetIteratorT,
229 typename EndOffsetIteratorT>
230 HIPCUB_RUNTIME_FUNCTION
static
231 hipError_t StableSortKeysDescending(
void * d_temp_storage,
232 size_t& temp_storage_bytes,
236 BeginOffsetIteratorT d_begin_offsets,
237 EndOffsetIteratorT d_end_offsets,
238 hipStream_t stream = 0,
239 bool debug_synchronous =
false)
241 (void)debug_synchronous;
242 return hipCUDAErrorTohipError(
243 ::cub::DeviceSegmentedSort::StableSortKeysDescending(d_temp_storage,
253 template <
typename KeyT,
255 typename BeginOffsetIteratorT,
256 typename EndOffsetIteratorT>
257 HIPCUB_RUNTIME_FUNCTION
static
258 hipError_t SortPairs(
void * d_temp_storage,
259 size_t& temp_storage_bytes,
260 const KeyT * d_keys_in,
262 const ValueT * d_values_in,
263 ValueT * d_values_out,
266 BeginOffsetIteratorT d_begin_offsets,
267 EndOffsetIteratorT d_end_offsets,
268 hipStream_t stream = 0,
269 bool debug_synchronous =
false)
271 (void)debug_synchronous;
272 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::SortPairs(d_temp_storage,
285 template <
typename KeyT,
287 typename BeginOffsetIteratorT,
288 typename EndOffsetIteratorT>
289 HIPCUB_RUNTIME_FUNCTION
static
290 hipError_t SortPairsDescending(
void * d_temp_storage,
291 size_t& temp_storage_bytes,
292 const KeyT * d_keys_in,
294 const ValueT * d_values_in,
295 ValueT * d_values_out,
298 BeginOffsetIteratorT d_begin_offsets,
299 EndOffsetIteratorT d_end_offsets,
300 hipStream_t stream = 0,
301 bool debug_synchronous =
false)
303 (void)debug_synchronous;
304 return hipCUDAErrorTohipError(
305 ::cub::DeviceSegmentedSort::SortPairsDescending(d_temp_storage,
318 template <
typename KeyT,
320 typename BeginOffsetIteratorT,
321 typename EndOffsetIteratorT>
322 HIPCUB_RUNTIME_FUNCTION
static
323 hipError_t SortPairs(
void * d_temp_storage,
324 size_t& temp_storage_bytes,
329 BeginOffsetIteratorT d_begin_offsets,
330 EndOffsetIteratorT d_end_offsets,
331 hipStream_t stream = 0,
332 bool debug_synchronous =
false)
334 (void)debug_synchronous;
335 return hipCUDAErrorTohipError(::cub::DeviceSegmentedSort::SortPairs(d_temp_storage,
346 template <
typename KeyT,
348 typename BeginOffsetIteratorT,
349 typename EndOffsetIteratorT>
350 HIPCUB_RUNTIME_FUNCTION
static
351 hipError_t SortPairsDescending(
void * d_temp_storage,
352 size_t& temp_storage_bytes,
357 BeginOffsetIteratorT d_begin_offsets,
358 EndOffsetIteratorT d_end_offsets,
359 hipStream_t stream = 0,
360 bool debug_synchronous =
false)
362 (void)debug_synchronous;
363 return hipCUDAErrorTohipError(
364 ::cub::DeviceSegmentedSort::SortPairsDescending(d_temp_storage,
375 template <
typename KeyT,
377 typename BeginOffsetIteratorT,
378 typename EndOffsetIteratorT>
379 HIPCUB_RUNTIME_FUNCTION
static
380 hipError_t StableSortPairs(
void * d_temp_storage,
381 size_t& temp_storage_bytes,
382 const KeyT * d_keys_in,
384 const ValueT * d_values_in,
385 ValueT * d_values_out,
388 BeginOffsetIteratorT d_begin_offsets,
389 EndOffsetIteratorT d_end_offsets,
390 hipStream_t stream = 0,
391 bool debug_synchronous =
false)
393 (void)debug_synchronous;
394 return hipCUDAErrorTohipError(
395 ::cub::DeviceSegmentedSort::StableSortPairs(d_temp_storage,
408 template <
typename KeyT,
410 typename BeginOffsetIteratorT,
411 typename EndOffsetIteratorT>
412 HIPCUB_RUNTIME_FUNCTION
static
413 hipError_t StableSortPairsDescending(
void * d_temp_storage,
414 size_t& temp_storage_bytes,
415 const KeyT * d_keys_in,
417 const ValueT * d_values_in,
418 ValueT * d_values_out,
421 BeginOffsetIteratorT d_begin_offsets,
422 EndOffsetIteratorT d_end_offsets,
423 hipStream_t stream = 0,
424 bool debug_synchronous =
false)
426 (void)debug_synchronous;
427 return hipCUDAErrorTohipError(
428 ::cub::DeviceSegmentedSort::StableSortPairsDescending(d_temp_storage,
441 template <
typename KeyT,
443 typename BeginOffsetIteratorT,
444 typename EndOffsetIteratorT>
445 HIPCUB_RUNTIME_FUNCTION
static
446 hipError_t StableSortPairs(
void * d_temp_storage,
447 size_t& temp_storage_bytes,
452 BeginOffsetIteratorT d_begin_offsets,
453 EndOffsetIteratorT d_end_offsets,
454 hipStream_t stream = 0,
455 bool debug_synchronous =
false)
457 (void)debug_synchronous;
458 return hipCUDAErrorTohipError(
459 ::cub::DeviceSegmentedSort::StableSortPairs(d_temp_storage,
470 template <
typename KeyT,
472 typename BeginOffsetIteratorT,
473 typename EndOffsetIteratorT>
474 HIPCUB_RUNTIME_FUNCTION
static
475 hipError_t StableSortPairsDescending(
void * d_temp_storage,
476 size_t& temp_storage_bytes,
481 BeginOffsetIteratorT d_begin_offsets,
482 EndOffsetIteratorT d_end_offsets,
483 hipStream_t stream = 0,
484 bool debug_synchronous =
false)
486 (void)debug_synchronous;
487 return hipCUDAErrorTohipError(
488 ::cub::DeviceSegmentedSort::StableSortPairsDescending(d_temp_storage,
Definition: device_segmented_sort.hpp:40
Definition: util_type.hpp:108