We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f574019 commit e4cbfafCopy full SHA for e4cbfaf
sycl/include/sycl/marray.hpp
@@ -19,7 +19,7 @@ __SYCL_INLINE_VER_NAMESPACE(_V1) {
19
20
template <std::size_t N, typename T> constexpr std::size_t vecAlignment() {
21
static_assert(N > 0, "Invalid number of elements.");
22
- size_t SizeOfT = sizeof(T);
+ constexpr size_t SizeOfT = sizeof(T);
23
static_assert(SizeOfT > 0, "Invalid size of T.");
24
// First find the "previous" vector num elements.
25
size_t res = N >= 16 ? 16
0 commit comments