File tree Expand file tree Collapse file tree 6 files changed +25
-19
lines changed
sycl/test-e2e/MemorySanitizer/track-origins Expand file tree Collapse file tree 6 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
2- // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t2 .out
3- // RUN: %{run} %t2 .out 2>&1 | FileCheck %s
2+ // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t1 .out
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1 .out 2>&1 | FileCheck %s --check-prefixes CHECK,CHECK-ORIGIN-STACK
44// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O1 -g -o %t2.out
5- // RUN: %{run} %t2.out 2>&1 | FileCheck %s
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t2.out 2>&1 | FileCheck %s --check-prefixes CHECK
66// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t3.out
7- // RUN: %{run} %t3.out 2>&1 | FileCheck %s
7+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t3.out 2>&1 | FileCheck %s --check-prefixes CHECK
88// RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:0 %{run} %t3.out 2>&1 | FileCheck %s --check-prefixes CHECK-HOSTUSM
99
1010#include < sycl/detail/core.hpp>
@@ -25,7 +25,7 @@ int main() {
2525 // CHECK: kernel <{{.*MyKernel}}>
2626 // CHECK: #{{.*}} {{.*check_host_usm.cpp}}:[[@LINE-6]]
2727 // CHECK: ORIGIN: Host USM allocation
28- // CHECK: #{{.*}} {{.*check_host_usm.cpp}}:[[@LINE-11]]
28+ // CHECK-ORIGIN-STACK : #{{.*}} {{.*check_host_usm.cpp}}:[[@LINE-11]]
2929 // CHECK-HOSTUSM-NOT: use-of-uninitialized-value
3030
3131 sycl::free (array, Q);
Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
2+ // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t0.out
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t0.out 2>&1 | FileCheck %s --check-prefixes CHECK,CHECK-ORIGIN-STACK
24// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t1.out
3- // RUN: %{run} %t1.out 2>&1 | FileCheck %s
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1.out 2>&1 | FileCheck %s
46// RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:0 %{run} %t1.out 2>&1 | FileCheck %s --check-prefixes CHECK-HOSTUSM
57
68#include < sycl/detail/core.hpp>
@@ -22,7 +24,7 @@ int main() {
2224 // CHECK: kernel <{{.*MyKernel}}>
2325 // CHECK: #{{.*}} {{.*check_host_usm_initialized_on_host.cpp}}:[[@LINE-6]]
2426 // CHECK: ORIGIN: Host USM allocation
25- // CHECK: #{{.*}} {{.*check_host_usm_initialized_on_host.cpp}}:[[@LINE-12]]
27+ // CHECK-ORIGIN-STACK : #{{.*}} {{.*check_host_usm_initialized_on_host.cpp}}:[[@LINE-12]]
2628 // CHECK-HOSTUSM-NOT: use-of-uninitialized-value
2729
2830 sycl::free (array, Q);
Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
22// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t1.out
3- // RUN: %{run} %t1.out 2>&1 | FileCheck %s
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1.out 2>&1 | FileCheck %s
44// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -DINIT_SOURCE -O2 -g -o %t2.out
5- // RUN: %{run} %t2.out 2>&1 | FileCheck %s --check-prefixes CHECK-INIT
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t2.out 2>&1 | FileCheck %s --check-prefixes CHECK-INIT
66
77#include < sycl/detail/core.hpp>
88#include < sycl/usm.hpp>
Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
2+ // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t0.out
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t0.out 2>&1 | FileCheck %s --check-prefixes CHECK,CHECK-ORIGIN-STACK
24// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t1.out
3- // RUN: %{run} %t1.out 2>&1 | FileCheck %s
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1.out 2>&1 | FileCheck %s
46// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -DINIT_SOURCE -O2 -g -o %t2.out
5- // RUN: %{run} %t2.out 2>&1 | FileCheck %s --check-prefixes CHECK-INIT
7+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t2.out 2>&1 | FileCheck %s --check-prefixes CHECK-INIT
68
79#include < sycl/detail/core.hpp>
810#include < sycl/usm.hpp>
@@ -36,7 +38,7 @@ void no_overlap() {
3638 // CHECK: kernel <{{.*MyKernel3}}>
3739 // CHECK: #{{.*}} {{.*check_kernel_memmove_no_overlap.cpp}}:[[@LINE-6]]
3840 // CHECK: ORIGIN: Host USM allocation
39- // CHECK: #{{.*}} {{.*check_kernel_memmove_no_overlap.cpp}}:[[@LINE-24]]
41+ // CHECK-ORIGIN-STACK : #{{.*}} {{.*check_kernel_memmove_no_overlap.cpp}}:[[@LINE-24]]
4042 // CHECK-INIT-NOT: use-of-uninitialized-value
4143
4244 sycl::free (array1, Q);
Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
2+ // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t0.out
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t0.out 2>&1 | FileCheck %s --check-prefixes CHECK,CHECK-ORIGIN-STACK
24// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t1.out
3- // RUN: %{run} %t1.out 2>&1 | FileCheck %s
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1.out 2>&1 | FileCheck %s
46
57#include < sycl/detail/core.hpp>
68#include < sycl/usm.hpp>
@@ -30,7 +32,7 @@ void overlap() {
3032 // CHECK: kernel <{{.*MyKernel2}}>
3133 // CHECK: #{{.*}} {{.*check_kernel_memmove_overlap.cpp}}:[[@LINE-6]]
3234 // CHECK: ORIGIN: Shared USM allocation
33- // CHECK: #{{.*}} {{.*check_kernel_memmove_overlap.cpp}}:[[@LINE-20]]
35+ // CHECK-ORIGIN-STACK : #{{.*}} {{.*check_kernel_memmove_overlap.cpp}}:[[@LINE-20]]
3436
3537 sycl::free (array, Q);
3638}
Original file line number Diff line number Diff line change 11// REQUIRES: linux, cpu || (gpu && level_zero)
2- // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t2 .out
3- // RUN: %{run} %t2 .out 2>&1 | FileCheck %s
2+ // RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O0 -g -o %t1 .out
3+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t1 .out 2>&1 | FileCheck %s --check-prefixes CHECK,CHECK-ORIGIN-STACK
44// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O1 -g -o %t2.out
5- // RUN: %{run} %t2.out 2>&1 | FileCheck %s
5+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t2.out 2>&1 | FileCheck %s
66// RUN: %{build} %device_msan_flags -Xarch_device -fsanitize-memory-track-origins=1 -O2 -g -o %t3.out
7- // RUN: %{run} %t3.out 2>&1 | FileCheck %s
7+ // RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:1 %{run} %t3.out 2>&1 | FileCheck %s
88// RUN: env UR_LAYER_MSAN_OPTIONS=msan_check_host_and_shared_usm:0 %{run} %t3.out 2>&1 | FileCheck %s --check-prefixes CHECK-SHAREDUSM
99
1010#include < sycl/detail/core.hpp>
@@ -25,7 +25,7 @@ int main() {
2525 // CHECK: kernel <{{.*MyKernel}}>
2626 // CHECK: #{{.*}} {{.*check_shared_usm.cpp}}:[[@LINE-6]]
2727 // CHECK: ORIGIN: Shared USM allocation
28- // CHECK: #{{.*}} {{.*check_shared_usm.cpp}}:[[@LINE-11]]
28+ // CHECK-ORIGIN-STACK : #{{.*}} {{.*check_shared_usm.cpp}}:[[@LINE-11]]
2929 // CHECK-SHAREDUSM-NOT: use-of-uninitialized-value
3030
3131 sycl::free (array, Q);
You can’t perform that action at this time.
0 commit comments