diff --git a/SYCL/Assert/assert_in_kernels.cpp b/SYCL/Assert/assert_in_kernels.cpp index ae1d8a2d4e..2a3d28258a 100644 --- a/SYCL/Assert/assert_in_kernels.cpp +++ b/SYCL/Assert/assert_in_kernels.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_kernels_win.cpp b/SYCL/Assert/assert_in_kernels_win.cpp index f7c764e519..c2b771af32 100644 --- a/SYCL/Assert/assert_in_kernels_win.cpp +++ b/SYCL/Assert/assert_in_kernels_win.cpp @@ -1,6 +1,6 @@ // REQUIRES: windows // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_multiple_tus.cpp b/SYCL/Assert/assert_in_multiple_tus.cpp index 6e21e73304..2689f1f5b3 100644 --- a/SYCL/Assert/assert_in_multiple_tus.cpp +++ b/SYCL/Assert/assert_in_multiple_tus.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_multiple_tus_one_ndebug.cpp b/SYCL/Assert/assert_in_multiple_tus_one_ndebug.cpp index 881a24b3e4..70ad85e234 100644 --- a/SYCL/Assert/assert_in_multiple_tus_one_ndebug.cpp +++ b/SYCL/Assert/assert_in_multiple_tus_one_ndebug.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp b/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp index a8ed4bc381..7647e30333 100644 --- a/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp +++ b/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp @@ -1,6 +1,6 @@ // REQUIRES: windows // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_multiple_tus_win.cpp b/SYCL/Assert/assert_in_multiple_tus_win.cpp index b04fa4740c..8bd209dd1f 100644 --- a/SYCL/Assert/assert_in_multiple_tus_win.cpp +++ b/SYCL/Assert/assert_in_multiple_tus_win.cpp @@ -1,6 +1,6 @@ // REQUIRES: windows // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_one_kernel.cpp b/SYCL/Assert/assert_in_one_kernel.cpp index 90c9c2d843..fcf5558441 100644 --- a/SYCL/Assert/assert_in_one_kernel.cpp +++ b/SYCL/Assert/assert_in_one_kernel.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_one_kernel_win.cpp b/SYCL/Assert/assert_in_one_kernel_win.cpp index 9516c11061..8f8fde6291 100644 --- a/SYCL/Assert/assert_in_one_kernel_win.cpp +++ b/SYCL/Assert/assert_in_one_kernel_win.cpp @@ -1,6 +1,6 @@ // REQUIRES: windows // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_simultaneous_kernels.cpp b/SYCL/Assert/assert_in_simultaneous_kernels.cpp index 58cbf16e11..f5bd278007 100644 --- a/SYCL/Assert/assert_in_simultaneous_kernels.cpp +++ b/SYCL/Assert/assert_in_simultaneous_kernels.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // diff --git a/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp b/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp index 5d40a54d48..35a97f85bd 100644 --- a/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp +++ b/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp @@ -1,6 +1,6 @@ // REQUIRES: windows // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // diff --git a/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp b/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp index 8bd0d36c53..268a8ed528 100644 --- a/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp +++ b/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp @@ -1,6 +1,6 @@ // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %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 7e5a4f8180..6951ffd817 100644 --- a/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp +++ b/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp @@ -1,6 +1,6 @@ // FIXME unsupported on CUDA and HIP until fallback libdevice becomes available // UNSUPPORTED: cuda || hip -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_simultaneously_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_simultaneously_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt // diff --git a/SYCL/DeviceLib/assert-aot.cpp b/SYCL/DeviceLib/assert-aot.cpp index 9f2b6e8559..87239fc6e4 100644 --- a/SYCL/DeviceLib/assert-aot.cpp +++ b/SYCL/DeviceLib/assert-aot.cpp @@ -1,5 +1,5 @@ // REQUIRES: opencl-aot, cpu, linux -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=spir64_x86_64 %S/assert.cpp -o %t.aot.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=spir64_x86_64 %S/assert.cpp -o %t.aot.out // RUN: %CPU_RUN_PLACEHOLDER EXPECTED_SIGNAL=SIGABRT SHOULD_CRASH=1 %t.aot.out 2>%t.aot.msg // RUN: FileCheck %S/assert.cpp --input-file %t.aot.msg --check-prefixes=CHECK-MESSAGE diff --git a/SYCL/DeviceLib/assert.cpp b/SYCL/DeviceLib/assert.cpp index c3a28c85af..71a3b170a5 100644 --- a/SYCL/DeviceLib/assert.cpp +++ b/SYCL/DeviceLib/assert.cpp @@ -1,5 +1,5 @@ // REQUIRES: cpu,linux -// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl %s -o %t.out +// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl %s -o %t.out // (see the other RUN lines below; it is a bit complicated) // // assert() call in device code guarantees nothing: on some devices it behaves