File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
#pragma once
9
9
10
- #include < sycl/builtins.hpp> // for assert
11
10
#include < sycl/detail/helpers.hpp> // for Builder
12
11
#include < sycl/detail/memcpy.hpp> // detail::memcpy
13
12
#include < sycl/exception.hpp> // for errc, exception
@@ -321,10 +320,14 @@ struct sub_group_mask {
321
320
322
321
sub_group_mask (BitsType rhs, size_t bn)
323
322
: Bits(rhs & valuable_bits (bn)), bits_num(bn) {
323
+ #ifndef __SYCL_DEVICE_ONLY__
324
324
assert (bits_num <= max_bits);
325
+ #endif
325
326
}
326
327
inline BitsType valuable_bits (size_t bn) const {
328
+ #ifndef __SYCL_DEVICE_ONLY__
327
329
assert (bn <= max_bits);
330
+ #endif
328
331
BitsType one = 1 ;
329
332
if (bn == max_bits)
330
333
return -one;
Original file line number Diff line number Diff line change 2
2
// RUN: %{run} %t.out
3
3
4
4
#include < iostream>
5
+ #include < sycl/builtins.hpp>
5
6
#include < sycl/detail/core.hpp>
6
7
#include < sycl/ext/oneapi/sub_group_mask.hpp>
7
8
#include < sycl/sub_group.hpp>
Original file line number Diff line number Diff line change 5
5
// XFAIL: spirv-backend
6
6
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/18230
7
7
8
- #include < cassert>
9
- #include < cstring>
8
+ #include < sycl/builtins.hpp>
10
9
#include < sycl/detail/core.hpp>
11
10
#include < sycl/ext/oneapi/experimental/work_group_memory.hpp>
12
11
#include < sycl/group_barrier.hpp>
13
12
#include < sycl/half_type.hpp>
14
13
14
+ #include < cassert>
15
+ #include < cstring>
16
+
15
17
namespace syclexp = sycl::ext::oneapi::experimental;
16
18
17
19
sycl::queue q;
You can’t perform that action at this time.
0 commit comments