Skip to content

Commit cc055d5

Browse files
committed
fix
Signed-off-by: intwanghao <hao3.wang@intel.com>
1 parent 358303a commit cc055d5

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

clang/runtime/dpct-rt/include/dpct/group_utils.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,16 +360,14 @@ class group_radix_sort {
360360
}
361361

362362
private:
363-
template <typename KT>
364-
using key_type =
365-
typename std::conditional<std::is_same<KT, sycl::half>::value, uint16_t,
366-
uint32_t>::type;
367363
template <typename Item, bool DESCENDING>
368364
__dpct_inline__ void
369365
helper_sort(const Item &item, T (&keys)[ElementsPerWorkItem],
370366
int begin_bit = 0, int end_bit = 8 * sizeof(T),
371367
bool is_striped = false) {
372-
using UnsignedT = key_type<T>;
368+
using UnsignedT =
369+
typename std::conditional<std::is_same<T, sycl::half>::value, uint16_t,
370+
uint32_t>::type;
373371
UnsignedT(&unsigned_keys)[ElementsPerWorkItem] =
374372
reinterpret_cast<UnsignedT(&)[ElementsPerWorkItem]>(keys);
375373

0 commit comments

Comments
 (0)