30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_RADIX_SORT_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_RADIX_SORT_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_radix_sort.cuh>
37 BEGIN_HIPCUB_NAMESPACE
41 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
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 int end_bit =
sizeof(KeyT) * 8,
52 hipStream_t stream = 0,
53 bool debug_synchronous =
false)
55 (void)debug_synchronous;
56 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortPairs(d_temp_storage,
68 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
69 HIPCUB_RUNTIME_FUNCTION
static
70 hipError_t SortPairs(
void * d_temp_storage,
71 size_t& temp_storage_bytes,
76 int end_bit =
sizeof(KeyT) * 8,
77 hipStream_t stream = 0,
78 bool debug_synchronous =
false)
80 (void)debug_synchronous;
81 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortPairs(d_temp_storage,
91 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
92 HIPCUB_RUNTIME_FUNCTION
static
93 hipError_t SortPairsDescending(
void * d_temp_storage,
94 size_t& temp_storage_bytes,
95 const KeyT * d_keys_in,
97 const ValueT * d_values_in,
98 ValueT * d_values_out,
101 int end_bit =
sizeof(KeyT) * 8,
102 hipStream_t stream = 0,
103 bool debug_synchronous =
false)
105 (void)debug_synchronous;
106 return hipCUDAErrorTohipError(
107 ::cub::DeviceRadixSort::SortPairsDescending(d_temp_storage,
119 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
120 HIPCUB_RUNTIME_FUNCTION
static
121 hipError_t SortPairsDescending(
void * d_temp_storage,
122 size_t& temp_storage_bytes,
127 int end_bit =
sizeof(KeyT) * 8,
128 hipStream_t stream = 0,
129 bool debug_synchronous =
false)
131 (void)debug_synchronous;
132 return hipCUDAErrorTohipError(
133 ::cub::DeviceRadixSort::SortPairsDescending(d_temp_storage,
143 template<
typename KeyT,
typename NumItemsT>
144 HIPCUB_RUNTIME_FUNCTION
static
145 hipError_t SortKeys(
void * d_temp_storage,
146 size_t& temp_storage_bytes,
147 const KeyT * d_keys_in,
151 int end_bit =
sizeof(KeyT) * 8,
152 hipStream_t stream = 0,
153 bool debug_synchronous =
false)
155 (void)debug_synchronous;
156 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortKeys(d_temp_storage,
166 template<
typename KeyT,
typename NumItemsT>
167 HIPCUB_RUNTIME_FUNCTION
static
168 hipError_t SortKeys(
void * d_temp_storage,
169 size_t& temp_storage_bytes,
173 int end_bit =
sizeof(KeyT) * 8,
174 hipStream_t stream = 0,
175 bool debug_synchronous =
false)
177 (void)debug_synchronous;
178 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortKeys(d_temp_storage,
187 template<
typename KeyT,
typename NumItemsT>
188 HIPCUB_RUNTIME_FUNCTION
static
189 hipError_t SortKeysDescending(
void * d_temp_storage,
190 size_t& temp_storage_bytes,
191 const KeyT * d_keys_in,
195 int end_bit =
sizeof(KeyT) * 8,
196 hipStream_t stream = 0,
197 bool debug_synchronous =
false)
199 (void)debug_synchronous;
200 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortKeysDescending(d_temp_storage,
210 template<
typename KeyT,
typename NumItemsT>
211 HIPCUB_RUNTIME_FUNCTION
static
212 hipError_t SortKeysDescending(
void * d_temp_storage,
213 size_t& temp_storage_bytes,
217 int end_bit =
sizeof(KeyT) * 8,
218 hipStream_t stream = 0,
219 bool debug_synchronous =
false)
221 (void)debug_synchronous;
222 return hipCUDAErrorTohipError(::cub::DeviceRadixSort::SortKeysDescending(d_temp_storage,
Definition: device_radix_sort.hpp:40
Definition: util_type.hpp:108