30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_SEGMENTED_RADIX_SORT_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_SEGMENTED_RADIX_SORT_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_segmented_radix_sort.cuh>
37 BEGIN_HIPCUB_NAMESPACE
41 template<
typename KeyT,
typename ValueT,
typename OffsetIteratorT>
42 HIPCUB_RUNTIME_FUNCTION
static
43 hipError_t SortPairs(
void * d_temp_storage,
44 size_t& temp_storage_bytes,
45 const KeyT * d_keys_in,
47 const ValueT * d_values_in,
48 ValueT * d_values_out,
51 OffsetIteratorT d_begin_offsets,
52 OffsetIteratorT d_end_offsets,
54 int end_bit =
sizeof(KeyT) * 8,
55 hipStream_t stream = 0,
56 bool debug_synchronous =
false)
58 (void)debug_synchronous;
59 return hipCUDAErrorTohipError(::cub::DeviceSegmentedRadixSort::SortPairs(d_temp_storage,
74 template<
typename KeyT,
typename ValueT,
typename OffsetIteratorT>
75 HIPCUB_RUNTIME_FUNCTION
static
76 hipError_t SortPairs(
void * d_temp_storage,
77 size_t& temp_storage_bytes,
82 OffsetIteratorT d_begin_offsets,
83 OffsetIteratorT d_end_offsets,
85 int end_bit =
sizeof(KeyT) * 8,
86 hipStream_t stream = 0,
87 bool debug_synchronous =
false)
89 (void)debug_synchronous;
90 return hipCUDAErrorTohipError(::cub::DeviceSegmentedRadixSort::SortPairs(d_temp_storage,
103 template<
typename KeyT,
typename ValueT,
typename OffsetIteratorT>
104 HIPCUB_RUNTIME_FUNCTION
static
105 hipError_t SortPairsDescending(
void * d_temp_storage,
106 size_t& temp_storage_bytes,
107 const KeyT * d_keys_in,
109 const ValueT * d_values_in,
110 ValueT * d_values_out,
113 OffsetIteratorT d_begin_offsets,
114 OffsetIteratorT d_end_offsets,
116 int end_bit =
sizeof(KeyT) * 8,
117 hipStream_t stream = 0,
118 bool debug_synchronous =
false)
120 (void)debug_synchronous;
121 return hipCUDAErrorTohipError(
122 ::cub::DeviceSegmentedRadixSort::SortPairsDescending(d_temp_storage,
137 template<
typename KeyT,
typename ValueT,
typename OffsetIteratorT>
138 HIPCUB_RUNTIME_FUNCTION
static
139 hipError_t SortPairsDescending(
void * d_temp_storage,
140 size_t& temp_storage_bytes,
145 OffsetIteratorT d_begin_offsets,
146 OffsetIteratorT d_end_offsets,
148 int end_bit =
sizeof(KeyT) * 8,
149 hipStream_t stream = 0,
150 bool debug_synchronous =
false)
152 (void)debug_synchronous;
153 return hipCUDAErrorTohipError(
154 ::cub::DeviceSegmentedRadixSort::SortPairsDescending(d_temp_storage,
167 template<
typename KeyT,
typename OffsetIteratorT>
168 HIPCUB_RUNTIME_FUNCTION
static
169 hipError_t SortKeys(
void * d_temp_storage,
170 size_t& temp_storage_bytes,
171 const KeyT * d_keys_in,
175 OffsetIteratorT d_begin_offsets,
176 OffsetIteratorT d_end_offsets,
178 int end_bit =
sizeof(KeyT) * 8,
179 hipStream_t stream = 0,
180 bool debug_synchronous =
false)
182 (void)debug_synchronous;
183 return hipCUDAErrorTohipError(::cub::DeviceSegmentedRadixSort::SortKeys(d_temp_storage,
196 template<
typename KeyT,
typename OffsetIteratorT>
197 HIPCUB_RUNTIME_FUNCTION
static
198 hipError_t SortKeys(
void * d_temp_storage,
199 size_t& temp_storage_bytes,
203 OffsetIteratorT d_begin_offsets,
204 OffsetIteratorT d_end_offsets,
206 int end_bit =
sizeof(KeyT) * 8,
207 hipStream_t stream = 0,
208 bool debug_synchronous =
false)
210 (void)debug_synchronous;
211 return hipCUDAErrorTohipError(::cub::DeviceSegmentedRadixSort::SortKeys(d_temp_storage,
223 template<
typename KeyT,
typename OffsetIteratorT>
224 HIPCUB_RUNTIME_FUNCTION
static
225 hipError_t SortKeysDescending(
void * d_temp_storage,
226 size_t& temp_storage_bytes,
227 const KeyT * d_keys_in,
231 OffsetIteratorT d_begin_offsets,
232 OffsetIteratorT d_end_offsets,
234 int end_bit =
sizeof(KeyT) * 8,
235 hipStream_t stream = 0,
236 bool debug_synchronous =
false)
238 (void)debug_synchronous;
239 return hipCUDAErrorTohipError(
240 ::cub::DeviceSegmentedRadixSort::SortKeysDescending(d_temp_storage,
253 template<
typename KeyT,
typename OffsetIteratorT>
254 HIPCUB_RUNTIME_FUNCTION
static
255 hipError_t SortKeysDescending(
void * d_temp_storage,
256 size_t& temp_storage_bytes,
260 OffsetIteratorT d_begin_offsets,
261 OffsetIteratorT d_end_offsets,
263 int end_bit =
sizeof(KeyT) * 8,
264 hipStream_t stream = 0,
265 bool debug_synchronous =
false)
267 (void)debug_synchronous;
268 return hipCUDAErrorTohipError(
269 ::cub::DeviceSegmentedRadixSort::SortKeysDescending(d_temp_storage,
Definition: device_segmented_radix_sort.hpp:40
Definition: util_type.hpp:108