diff --git a/SYCL/Assert/assert_in_simultaneous_kernels.cpp b/SYCL/Assert/assert_in_simultaneous_kernels.cpp index c9d82dce6d..21290e6d9b 100644 --- a/SYCL/Assert/assert_in_simultaneous_kernels.cpp +++ b/SYCL/Assert/assert_in_simultaneous_kernels.cpp @@ -10,7 +10,9 @@ // too early. This is necessary because currently SYCL RT sets indirect access // flag for all kernels and the Level Zero runtime doesn't support deferred // release yet. -// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true +// Suppress runtime from printing out error messages, so that the test can +// match on assert message generated by the toolchains. +// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 SYCL_PI_SUPPRESS_ERROR_MESSAGE=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // Shouldn't fail on ACC as fallback assert isn't enqueued there // RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt diff --git a/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp b/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp index d47328b5d1..976904ad50 100644 --- a/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp +++ b/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp @@ -10,7 +10,9 @@ // too early. This is necessary because currently SYCL RT sets indirect access // flag for all kernels and the Level Zero runtime doesn't support deferred // release yet. -// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true +// Suppress runtime from printing out error messages, so that the test can +// match on assert message generated by the toolchains. +// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 SYCL_PI_SUPPRESS_ERROR_MESSAGE=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // Shouldn't fail on ACC as fallback assert isn't enqueued there // RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt diff --git a/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp b/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp index ded5709024..dfb992a6a7 100644 --- a/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp +++ b/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp @@ -9,7 +9,9 @@ // too early. This is necessary because currently SYCL RT sets indirect access // flag for all kernels and the Level Zero runtime doesn't support deferred // release yet. -// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true +// Suppress runtime from printing out error messages, so that the test can +// match on assert message generated by the toolchains. +// RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 SYCL_PI_SUPPRESS_ERROR_MESSAGE=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // Shouldn't fail on ACC as fallback assert isn't enqueued there // RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt