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 return hipCUDAErrorTohipError(
56 ::cub::DeviceRadixSort::SortPairs(
57 d_temp_storage, temp_storage_bytes,
58 d_keys_in, d_keys_out,
59 d_values_in, d_values_out, num_items,
61 stream, debug_synchronous
66 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
67 HIPCUB_RUNTIME_FUNCTION
static
68 hipError_t SortPairs(
void * d_temp_storage,
69 size_t& temp_storage_bytes,
74 int end_bit =
sizeof(KeyT) * 8,
75 hipStream_t stream = 0,
76 bool debug_synchronous =
false)
78 return hipCUDAErrorTohipError(
79 ::cub::DeviceRadixSort::SortPairs(
80 d_temp_storage, temp_storage_bytes,
81 d_keys, d_values, num_items,
83 stream, debug_synchronous
88 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
89 HIPCUB_RUNTIME_FUNCTION
static
90 hipError_t SortPairsDescending(
void * d_temp_storage,
91 size_t& temp_storage_bytes,
92 const KeyT * d_keys_in,
94 const ValueT * d_values_in,
95 ValueT * d_values_out,
98 int end_bit =
sizeof(KeyT) * 8,
99 hipStream_t stream = 0,
100 bool debug_synchronous =
false)
102 return hipCUDAErrorTohipError(
103 ::cub::DeviceRadixSort::SortPairsDescending(
104 d_temp_storage, temp_storage_bytes,
105 d_keys_in, d_keys_out,
106 d_values_in, d_values_out, num_items,
108 stream, debug_synchronous
114 template<
typename KeyT,
typename ValueT,
typename NumItemsT>
115 HIPCUB_RUNTIME_FUNCTION
static
116 hipError_t SortPairsDescending(
void * d_temp_storage,
117 size_t& temp_storage_bytes,
122 int end_bit =
sizeof(KeyT) * 8,
123 hipStream_t stream = 0,
124 bool debug_synchronous =
false)
126 return hipCUDAErrorTohipError(
127 ::cub::DeviceRadixSort::SortPairsDescending(
128 d_temp_storage, temp_storage_bytes,
129 d_keys, d_values, num_items,
131 stream, debug_synchronous
136 template<
typename KeyT,
typename NumItemsT>
137 HIPCUB_RUNTIME_FUNCTION
static
138 hipError_t SortKeys(
void * d_temp_storage,
139 size_t& temp_storage_bytes,
140 const KeyT * d_keys_in,
144 int end_bit =
sizeof(KeyT) * 8,
145 hipStream_t stream = 0,
146 bool debug_synchronous =
false)
148 return hipCUDAErrorTohipError(
149 ::cub::DeviceRadixSort::SortKeys(
150 d_temp_storage, temp_storage_bytes,
151 d_keys_in, d_keys_out, num_items,
153 stream, debug_synchronous
158 template<
typename KeyT,
typename NumItemsT>
159 HIPCUB_RUNTIME_FUNCTION
static
160 hipError_t SortKeys(
void * d_temp_storage,
161 size_t& temp_storage_bytes,
165 int end_bit =
sizeof(KeyT) * 8,
166 hipStream_t stream = 0,
167 bool debug_synchronous =
false)
169 return hipCUDAErrorTohipError(
170 ::cub::DeviceRadixSort::SortKeys(
171 d_temp_storage, temp_storage_bytes,
174 stream, debug_synchronous
179 template<
typename KeyT,
typename NumItemsT>
180 HIPCUB_RUNTIME_FUNCTION
static
181 hipError_t SortKeysDescending(
void * d_temp_storage,
182 size_t& temp_storage_bytes,
183 const KeyT * d_keys_in,
187 int end_bit =
sizeof(KeyT) * 8,
188 hipStream_t stream = 0,
189 bool debug_synchronous =
false)
191 return hipCUDAErrorTohipError(
192 ::cub::DeviceRadixSort::SortKeysDescending(
193 d_temp_storage, temp_storage_bytes,
194 d_keys_in, d_keys_out, num_items,
196 stream, debug_synchronous
201 template<
typename KeyT,
typename NumItemsT>
202 HIPCUB_RUNTIME_FUNCTION
static
203 hipError_t SortKeysDescending(
void * d_temp_storage,
204 size_t& temp_storage_bytes,
208 int end_bit =
sizeof(KeyT) * 8,
209 hipStream_t stream = 0,
210 bool debug_synchronous =
false)
212 return hipCUDAErrorTohipError(
213 ::cub::DeviceRadixSort::SortKeysDescending(
214 d_temp_storage, temp_storage_bytes,
217 stream, debug_synchronous
Definition: device_radix_sort.hpp:40
Definition: util_type.hpp:108