Skip to content

Commit 0091796

Browse files
author
Alexander Batashev
committed
Split CT and RT tests
1 parent c4cebba commit 0091796

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

sycl/test/basic_tests/accessor/accessor_property_list.cpp renamed to sycl/test/basic_tests/accessor/accessor_property_list_ct.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
// 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
62

73
#include <CL/sycl.hpp>
84

@@ -30,19 +26,6 @@ int main() {
3026
static_assert(!PL.has_property<property::no_offset>(), "Property is found");
3127
}
3228

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-
4629
{
4730
// Multiple CT properties
4831
accessor_property_list PL{no_alias, no_offset};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

0 commit comments

Comments
 (0)