File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed
sycl/test/basic_tests/accessor Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2
- // RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
- // RUN: %CPU_RUN_PLACEHOLDER %t.out
4
- // RUN: %GPU_RUN_PLACEHOLDER %t.out
5
- // RUN: %ACC_RUN_PLACEHOLDER %t.out
6
2
7
3
#include < CL/sycl.hpp>
8
4
@@ -30,19 +26,6 @@ int main() {
30
26
static_assert (!PL.has_property <property::no_offset>(), " Property is found" );
31
27
}
32
28
33
- {
34
- // Single RT property
35
- accessor_property_list PL{sycl::noinit};
36
- assert (PL.has_property <sycl::property::noinit>() && " Property not found" );
37
- }
38
-
39
- {
40
- // Compile time and runtime properties
41
- accessor_property_list PL{sycl::noinit, no_alias};
42
- assert (PL.has_property <property::no_alias>() && " Property not found" );
43
- assert (PL.has_property <sycl::property::noinit>() && " Property not found" );
44
- }
45
-
46
29
{
47
30
// Multiple CT properties
48
31
accessor_property_list PL{no_alias, no_offset};
Original file line number Diff line number Diff line change
1
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2
+ // RUN: env SYCL_DEVICE_TYPE=HOST %t.out
3
+
4
+ #include < CL/sycl.hpp>
5
+
6
+ #include < type_traits>
7
+
8
+ using namespace sycl ::ONEAPI;
9
+
10
+ int main () {
11
+ {
12
+ // Single RT property
13
+ accessor_property_list PL{sycl::noinit};
14
+ assert (PL.has_property <sycl::property::noinit>() && " Property not found" );
15
+ }
16
+
17
+ {
18
+ // Compile time and runtime properties
19
+ accessor_property_list PL{sycl::noinit, no_alias};
20
+ assert (PL.has_property <property::no_alias>() && " Property not found" );
21
+ assert (PL.has_property <sycl::property::noinit>() && " Property not found" );
22
+ }
23
+ return 0 ;
24
+ }
You can’t perform that action at this time.
0 commit comments