Skip to content

Commit

Permalink
Fix detail trait type: sycl::marray is templated on size_t, not int
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Dec 16, 2024
1 parent b71bad5 commit 29825c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/simsycl/sycl/marray.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace simsycl::detail {

template<typename DataT, typename VecLike>
template<typename DataT, typename MarrayLike>
struct marray_like_num_elements {};

template<typename DataT, std::convertible_to<DataT> ElementT>
struct marray_like_num_elements<DataT, ElementT> : std::integral_constant<int, 1> {};
struct marray_like_num_elements<DataT, ElementT> : std::integral_constant<size_t, 1> {};

template<typename DataT, int N>
struct marray_like_num_elements<DataT, sycl::marray<DataT, N>> : std::integral_constant<int, N> {};
template<typename DataT, size_t N>
struct marray_like_num_elements<DataT, sycl::marray<DataT, N>> : std::integral_constant<size_t, N> {};


template<typename T>
Expand Down

0 comments on commit 29825c3

Please sign in to comment.