Skip to content

Commit 2a7c570

Browse files
[SYCL] Do not use sycl::cl_* types in vec class (#8149)
Refactored `vec`'s underlying storage type selection so it doesn't reference `sycl::cl_*` types which do not exists in SYCL 2020 spec anymore. New approach takes less lines of code and it also provides better error messages for wrong data type or number of elements passed by user. The change is mostly non-functional, except for the new error messages.
1 parent 81baa50 commit 2a7c570

File tree

5 files changed

+147
-289
lines changed

5 files changed

+147
-289
lines changed

sycl/include/sycl/detail/generic_type_traits.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ template <typename T> using is_halfn = is_contained<T, gtl::vector_half_list>;
4141

4242
template <typename T> using is_genfloath = is_contained<T, gtl::half_list>;
4343

44+
template <typename T> using is_half = is_contained<T, gtl::scalar_half_list>;
45+
4446
template <typename T>
4547
using is_svgenfloath = is_contained<T, gtl::scalar_vector_half_list>;
4648

0 commit comments

Comments
 (0)