diff --git a/SYCL/Assert/assert_in_kernels.cpp b/SYCL/Assert/assert_in_kernels.cpp index 1e3e92f6ea..df9574badc 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 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 2d8d497083..706e11c4bf 100644 --- a/SYCL/Assert/assert_in_kernels_win.cpp +++ b/SYCL/Assert/assert_in_kernels_win.cpp @@ -1,5 +1,5 @@ // REQUIRES: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 40c9a87fb3..6b271b12b8 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 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out +// 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: %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 d8b6aa4597..dcbb1eaf9c 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 -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_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: %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 217ebd074a..901ba4a7c5 100644 --- a/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp +++ b/SYCL/Assert/assert_in_multiple_tus_one_ndebug_win.cpp @@ -1,5 +1,5 @@ // REQUIRES: windows -// RUN: %clangxx -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_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: %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 1eb5f823cb..2427b6b0e0 100644 --- a/SYCL/Assert/assert_in_multiple_tus_win.cpp +++ b/SYCL/Assert/assert_in_multiple_tus_win.cpp @@ -1,5 +1,5 @@ // REQUIRES: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out +// 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: %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 d56dafff9b..5625cad660 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 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 2d1970521b..e77d2da41e 100644 --- a/SYCL/Assert/assert_in_one_kernel_win.cpp +++ b/SYCL/Assert/assert_in_one_kernel_win.cpp @@ -1,5 +1,5 @@ // REQUIRES: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 b439611b41..581fd8859f 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 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp b/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp index b027221077..cb8fd03cda 100644 --- a/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp +++ b/SYCL/Assert/assert_in_simultaneous_kernels_win.cpp @@ -1,5 +1,5 @@ // REQUIRES: windows -// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true diff --git a/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp b/SYCL/Assert/assert_in_simultaneously_multiple_tus.cpp index f7896b39aa..e6a49b55a6 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 -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib +// 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: %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_simultaneously_multiple_tus_one_ndebug.cpp b/SYCL/Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp index 3dc45bb18c..859ddc0464 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 -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_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: %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/DeviceLib/assert-aot.cpp b/SYCL/DeviceLib/assert-aot.cpp index 32673d773d..9f2b6e8559 100644 --- a/SYCL/DeviceLib/assert-aot.cpp +++ b/SYCL/DeviceLib/assert-aot.cpp @@ -1,5 +1,5 @@ // REQUIRES: opencl-aot, cpu, linux -// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/assert.cpp -o %t.aot.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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 35fa1a072b..c3a28c85af 100644 --- a/SYCL/DeviceLib/assert.cpp +++ b/SYCL/DeviceLib/assert.cpp @@ -1,5 +1,5 @@ // REQUIRES: cpu,linux -// RUN: %clangxx -fsycl %s -o %t.out +// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -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