Skip to content

Commit 0231261

Browse files
MrSidimsbader
authored andcommitted
[SYCL] Skip sampler and image_access tests for ACC device
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 8f7f4a0 commit 0231261

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sycl/test/basic_tests/sampler/sampler.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ int main() {
5757
clCreateSampler(Queue.get_context().get(), true, CL_ADDRESS_REPEAT,
5858
CL_FILTER_LINEAR, &Err);
5959
#endif
60+
// If device doesn't support sampler - skip it
61+
if (Err == CL_INVALID_OPERATION)
62+
return 0;
63+
6064
CHECK_OCL_CODE(Err);
6165
B = sycl::sampler(ClSampler, Queue.get_context());
62-
6366
} else {
6467
// Host sampler
6568
B = sycl::sampler(sycl::coordinate_normalization_mode::normalized,

sycl/test/regression/image_access.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
33
// RUN: env SYCL_PI_TRACE=1 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
44
// RUN: env SYCL_PI_TRACE=1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
5-
// RUN: env SYCL_PI_TRACE=1 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER
5+
// TODO: For now PI checks are skipped for ACC device. To decide if it's good.
6+
// RUN: env %ACC_RUN_PLACEHOLDER %t.out
67

78
//==-------------- image_access.cpp - SYCL image accessors test -----------==//
89
//

0 commit comments

Comments
 (0)