Skip to content

Commit 2634775

Browse files
[SYCL][E2E] Use fine-grained includes in AddressSanitizer/* tests (#13848)
1 parent 9b6a9b3 commit 2634775

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

sycl/test-e2e/AddressSanitizer/bad-free/bad-free-host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: linux, cpu
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t
33
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck %s
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/usm.hpp>
55

66
constexpr size_t N = 64;
77

sycl/test-e2e/AddressSanitizer/bad-free/bad-free-minus1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
66
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
77
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;
1111

sycl/test-e2e/AddressSanitizer/bad-free/bad-free-plus1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
66
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
77
// RUN: %force_device_asan_rt %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;
1111

sycl/test-e2e/AddressSanitizer/common/config-red-zone-size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: env SYCL_PREFER_UR=1 UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=redzone:8 %{run} %t 2>&1 | FileCheck --check-prefixes CHECK-MIN %s
66
// RUN: env SYCL_PREFER_UR=1 UR_LOG_SANITIZER=level:debug UR_LAYER_ASAN_OPTIONS=max_redzone:4096 %{run} %t 2>&1 | FileCheck --check-prefixes CHECK-MAX %s
77

8-
#include "sycl/sycl.hpp"
8+
#include <sycl/usm.hpp>
99

1010
int main() {
1111
sycl::queue q;

sycl/test-e2e/AddressSanitizer/common/kernel-debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS=debug:1 %{run} %t 2>&1 | FileCheck --check-prefixes CHECK-DEBUG %s
44
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS=debug:0 %{run} %t 2>&1 | FileCheck %s
5-
#include <sycl/sycl.hpp>
5+
#include <sycl/usm.hpp>
66

77
int main() {
88
sycl::queue Q;

sycl/test-e2e/AddressSanitizer/double-free/double-free.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS=quarantine_size_mb:1 %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-HOST %s
66
// RUN: %{build} %device_asan_flags -DMALLOC_SHARED -O0 -g -o %t
77
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS=quarantine_size_mb:1 %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-SHARED %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99

1010
constexpr size_t N = 64;
1111

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/local_accessor_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -g -O2 -o %t.out
77
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99

1010
constexpr std::size_t N = 4;
1111
constexpr std::size_t group_size = 1;

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/local_accessor_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -g -O2 -o %t.out
77
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99
#include <vector>
1010

1111
constexpr std::size_t N = 8;

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/local_accessor_multiargs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -g -O2 -o %t.out
77
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/usm.hpp>
99

1010
constexpr std::size_t N = 8;
1111
constexpr std::size_t group_size = 4;

sycl/test-e2e/AddressSanitizer/out-of-bounds/local/multiple_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %{build} %device_asan_flags -O2 -g -DUSER_CODE_2 -c -o %t2.o
44
// RUN: %clangxx -fsycl %device_asan_flags -O2 -g %t1.o %t2.o -o %t.out
55
// RUN: env SYCL_PREFER_UR=1 %{run} not %t.out 2>&1 | FileCheck %s
6-
#include <sycl/sycl.hpp>
6+
#include <sycl/usm.hpp>
77

88
constexpr std::size_t N = 4;
99
constexpr std::size_t group_size = 1;

sycl/test-e2e/AddressSanitizer/use-after-free/quarantine-free.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: linux, cpu
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t
33
// RUN: %force_device_asan_rt UR_LAYER_ASAN_OPTIONS=quarantine_size_mb:5 UR_LOG_SANITIZER=level:info %{run} %t 2>&1 | FileCheck %s
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/usm.hpp>
55

66
/// Quarantine Cache Test
77
///

sycl/test-e2e/AddressSanitizer/use-after-free/quarantine-no-free.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: linux, cpu
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS=quarantine_size_mb:5 UR_LOG_SANITIZER=level:info %{run} not %t 2>&1 | FileCheck %s
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/usm.hpp>
55

66
/// Quarantine Cache Test
77
///

sycl/test-e2e/AddressSanitizer/use-after-free/use-after-free.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: linux, cpu
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS=quarantine_size_mb:1 %{run} not %t 2>&1 | FileCheck %s
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/usm.hpp>
55

66
constexpr size_t N = 1024;
77

0 commit comments

Comments
 (0)