Skip to content

Commit acc3f43

Browse files
ayylolAlexeySachkov
authored andcommitted
[SYCL][E2E] Use %{run} instead of %{run-unfiltered-devices} in AddressSanitizer test (intel#15009)
Previously this test failed on machines without level_zero gpu due to not finding a device of the requested type.
1 parent 22d4805 commit acc3f43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/test-e2e/AddressSanitizer/invalid-argument/host-pointer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// REQUIRES: linux
1+
// REQUIRES: linux, cpu || level_zero
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" ONEAPI_DEVICE_SELECTOR=level_zero:gpu %{run-unfiltered-devices} not %t 2>&1 | FileCheck --check-prefixes CHECK-GPU %s
4-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t 2>&1 | FileCheck --check-prefixes CHECK-CPU %s
3+
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} %if gpu %{ not %} %t 2>&1 | FileCheck --check-prefixes %if cpu %{ CHECK-CPU %} %if gpu %{ CHECK-GPU %} %s
54

65
#include <sycl/detail/core.hpp>
76
#include <sycl/usm.hpp>

0 commit comments

Comments
 (0)