Skip to content

Commit 2c9d980

Browse files
[SYCL][E2E] Disable and fix address sanitizer tests for DG2 (#15450)
This commit disables the AddressSanitizer/invalid-argument/out-of-bounds.cpp and sycl/test-e2e/AddressSanitizer/invalid-argument/released-pointer.cpp tests for DG2, following the enabling of address sanitizer tests for DG2 in #14891. Additionally, it fixes the compilation failure in sycl/test-e2e/AddressSanitizer/nullpointer/global_nullptr.cpp which should hopefully allow it to pass as expected. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 97dba84 commit 2c9d980

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

sycl/test-e2e/AddressSanitizer/invalid-argument/out-of-bounds.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
44

5+
// See https://github.com/intel/llvm/issues/15449
6+
// UNSUPPORTED: gpu-intel-dg2
7+
58
#include <sycl/detail/core.hpp>
69

710
#include <sycl/usm.hpp>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
44

5+
// See https://github.com/intel/llvm/issues/15449
6+
// UNSUPPORTED: gpu-intel-dg2
7+
58
#include <sycl/detail/core.hpp>
69

710
#include <sycl/usm.hpp>

sycl/test-e2e/AddressSanitizer/nullpointer/global_nullptr.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <sycl/detail/core.hpp>
1010

11+
#include <sycl/ext/oneapi/experimental/address_cast.hpp>
12+
1113
int main() {
1214
sycl::queue Q;
1315
constexpr std::size_t N = 4;
@@ -18,8 +20,7 @@ int main() {
1820
sycl::nd_range<1>(N, 1), [=](sycl::nd_item<1> item) {
1921
auto private_array =
2022
sycl::ext::oneapi::experimental::static_address_cast<
21-
sycl::access::address_space::private_space,
22-
sycl::access::decorated::no>(array);
23+
sycl::access::address_space::private_space>(array);
2324
private_array[0] = 0;
2425
});
2526
Q.wait();

0 commit comments

Comments
 (0)