diff --git a/sycl/test-e2e/AtomicRef/add.cpp b/sycl/test-e2e/AtomicRef/add.cpp index bdd65b26872b1..7816ab91d8c5b 100644 --- a/sycl/test-e2e/AtomicRef/add.cpp +++ b/sycl/test-e2e/AtomicRef/add.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "add.h" diff --git a/sycl/test-e2e/AtomicRef/add_generic.cpp b/sycl/test-e2e/AtomicRef/add_generic.cpp index b3d19ba658175..6de7f9082eaa0 100644 --- a/sycl/test-e2e/AtomicRef/add_generic.cpp +++ b/sycl/test-e2e/AtomicRef/add_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "add.h" diff --git a/sycl/test-e2e/AtomicRef/add_generic_local.cpp b/sycl/test-e2e/AtomicRef/add_generic_local.cpp index f8b603c299104..19085e68eae25 100644 --- a/sycl/test-e2e/AtomicRef/add_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/add_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/add_local.cpp b/sycl/test-e2e/AtomicRef/add_local.cpp index 691e0fe49c0d8..167952bdd11b0 100644 --- a/sycl/test-e2e/AtomicRef/add_local.cpp +++ b/sycl/test-e2e/AtomicRef/add_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "add.h" diff --git a/sycl/test-e2e/AtomicRef/and.cpp b/sycl/test-e2e/AtomicRef/and.cpp index 14a14924a594a..b01c79ada8a3d 100644 --- a/sycl/test-e2e/AtomicRef/and.cpp +++ b/sycl/test-e2e/AtomicRef/and.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "and.h" diff --git a/sycl/test-e2e/AtomicRef/and_generic.cpp b/sycl/test-e2e/AtomicRef/and_generic.cpp index 12ed3f41c07a7..c8e44d95ecba7 100644 --- a/sycl/test-e2e/AtomicRef/and_generic.cpp +++ b/sycl/test-e2e/AtomicRef/and_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "and.h" diff --git a/sycl/test-e2e/AtomicRef/and_generic_local.cpp b/sycl/test-e2e/AtomicRef/and_generic_local.cpp index d7aba1b38ddca..39ceecfcef078 100644 --- a/sycl/test-e2e/AtomicRef/and_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/and_generic_local.cpp @@ -1,11 +1,9 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/and_local.cpp b/sycl/test-e2e/AtomicRef/and_local.cpp index 44c82cce8e71a..41d4438d99c0e 100644 --- a/sycl/test-e2e/AtomicRef/and_local.cpp +++ b/sycl/test-e2e/AtomicRef/and_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "and.h" diff --git a/sycl/test-e2e/AtomicRef/atomic_ref.cpp b/sycl/test-e2e/AtomicRef/atomic_ref.cpp index e00fc2692ebcb..650470d76191e 100644 --- a/sycl/test-e2e/AtomicRef/atomic_ref.cpp +++ b/sycl/test-e2e/AtomicRef/atomic_ref.cpp @@ -1,11 +1,8 @@ // REQUIRES: arch-intel_gpu_cri -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - -// RUN: %{build} -o %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.out // RUN: %{run} %t.out -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support #include diff --git a/sycl/test-e2e/AtomicRef/compare_exchange.cpp b/sycl/test-e2e/AtomicRef/compare_exchange.cpp index 87b30c5a2f88b..508269cb721ca 100644 --- a/sycl/test-e2e/AtomicRef/compare_exchange.cpp +++ b/sycl/test-e2e/AtomicRef/compare_exchange.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "compare_exchange.h" diff --git a/sycl/test-e2e/AtomicRef/compare_exchange_generic.cpp b/sycl/test-e2e/AtomicRef/compare_exchange_generic.cpp index 90655c0bb5ee4..d5121fd0f4ea2 100644 --- a/sycl/test-e2e/AtomicRef/compare_exchange_generic.cpp +++ b/sycl/test-e2e/AtomicRef/compare_exchange_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "compare_exchange.h" diff --git a/sycl/test-e2e/AtomicRef/compare_exchange_generic_local.cpp b/sycl/test-e2e/AtomicRef/compare_exchange_generic_local.cpp index e1e900bd7c8f9..14fa906aa2212 100644 --- a/sycl/test-e2e/AtomicRef/compare_exchange_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/compare_exchange_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/compare_exchange_local.cpp b/sycl/test-e2e/AtomicRef/compare_exchange_local.cpp index 72e94927f2aeb..5322bec1a7c38 100644 --- a/sycl/test-e2e/AtomicRef/compare_exchange_local.cpp +++ b/sycl/test-e2e/AtomicRef/compare_exchange_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "compare_exchange.h" diff --git a/sycl/test-e2e/AtomicRef/exchange.cpp b/sycl/test-e2e/AtomicRef/exchange.cpp index e5ce8d2fb719b..6ebf687a8860f 100644 --- a/sycl/test-e2e/AtomicRef/exchange.cpp +++ b/sycl/test-e2e/AtomicRef/exchange.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} // UNSUPPORTED: hip // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15791 diff --git a/sycl/test-e2e/AtomicRef/exchange_generic.cpp b/sycl/test-e2e/AtomicRef/exchange_generic.cpp index bb736bace6239..d5c8429e0b698 100644 --- a/sycl/test-e2e/AtomicRef/exchange_generic.cpp +++ b/sycl/test-e2e/AtomicRef/exchange_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "exchange.h" diff --git a/sycl/test-e2e/AtomicRef/exchange_generic_local.cpp b/sycl/test-e2e/AtomicRef/exchange_generic_local.cpp index 74a8015ffce6e..a5e19cbfe252e 100644 --- a/sycl/test-e2e/AtomicRef/exchange_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/exchange_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/exchange_local.cpp b/sycl/test-e2e/AtomicRef/exchange_local.cpp index 3e07cf47aea1f..f4efd61cd45a0 100644 --- a/sycl/test-e2e/AtomicRef/exchange_local.cpp +++ b/sycl/test-e2e/AtomicRef/exchange_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "exchange.h" diff --git a/sycl/test-e2e/AtomicRef/lit.local.cfg b/sycl/test-e2e/AtomicRef/lit.local.cfg new file mode 100644 index 0000000000000..804224ab57f47 --- /dev/null +++ b/sycl/test-e2e/AtomicRef/lit.local.cfg @@ -0,0 +1,17 @@ +# %{full_atomic_flags} are the extra flags needed for full atomic coverage +# (16/32/64-bit) on CRI devices. Tests build a second binary with them +# unconditionally (per-device features are not available on build lines) and +# run it only on CRI devices, see e.g. max.cpp. +# Native CPU uses no extra flags because it cannot compile bfloat16 atomics. +# Only SPIR builds use the translator; other targets reject its flags with -Werror. +config.substitutions.append( + ( + "%{full_atomic_flags}", + "%if target-spir %{ " + "-DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE " + "-DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel " + "-Xspirv-translator=spir64 " + "-spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics " + "%} %else %{ %}", + ) +) diff --git a/sycl/test-e2e/AtomicRef/load.cpp b/sycl/test-e2e/AtomicRef/load.cpp index d5d1791ef891a..0bce560cdf592 100644 --- a/sycl/test-e2e/AtomicRef/load.cpp +++ b/sycl/test-e2e/AtomicRef/load.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "load.h" diff --git a/sycl/test-e2e/AtomicRef/load_generic.cpp b/sycl/test-e2e/AtomicRef/load_generic.cpp index e0f378f09c00d..c49aef1a5970a 100644 --- a/sycl/test-e2e/AtomicRef/load_generic.cpp +++ b/sycl/test-e2e/AtomicRef/load_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "load.h" diff --git a/sycl/test-e2e/AtomicRef/load_generic_local.cpp b/sycl/test-e2e/AtomicRef/load_generic_local.cpp index 831058387a311..1a427fa19dbae 100644 --- a/sycl/test-e2e/AtomicRef/load_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/load_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/load_local.cpp b/sycl/test-e2e/AtomicRef/load_local.cpp index 961f93c4894ff..8fe2695a24020 100644 --- a/sycl/test-e2e/AtomicRef/load_local.cpp +++ b/sycl/test-e2e/AtomicRef/load_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} // UNSUPPORTED: windows && arch-intel_gpu_bmg_g21 // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/23415 diff --git a/sycl/test-e2e/AtomicRef/max.cpp b/sycl/test-e2e/AtomicRef/max.cpp index 0ef69b134b7d7..56e2ac4277871 100644 --- a/sycl/test-e2e/AtomicRef/max.cpp +++ b/sycl/test-e2e/AtomicRef/max.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "max.h" diff --git a/sycl/test-e2e/AtomicRef/max_generic.cpp b/sycl/test-e2e/AtomicRef/max_generic.cpp index 0e136891054b2..0e46a6933a924 100644 --- a/sycl/test-e2e/AtomicRef/max_generic.cpp +++ b/sycl/test-e2e/AtomicRef/max_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "max.h" diff --git a/sycl/test-e2e/AtomicRef/max_generic_local.cpp b/sycl/test-e2e/AtomicRef/max_generic_local.cpp index 2cc485b932d25..2df1ed4ad83e1 100644 --- a/sycl/test-e2e/AtomicRef/max_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/max_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/max_local.cpp b/sycl/test-e2e/AtomicRef/max_local.cpp index fcade87949638..b37b234acf379 100644 --- a/sycl/test-e2e/AtomicRef/max_local.cpp +++ b/sycl/test-e2e/AtomicRef/max_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "max.h" diff --git a/sycl/test-e2e/AtomicRef/min.cpp b/sycl/test-e2e/AtomicRef/min.cpp index 05c810d89445c..a2174fb11dcf5 100644 --- a/sycl/test-e2e/AtomicRef/min.cpp +++ b/sycl/test-e2e/AtomicRef/min.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "min.h" diff --git a/sycl/test-e2e/AtomicRef/min_generic.cpp b/sycl/test-e2e/AtomicRef/min_generic.cpp index a0d12e4182976..a331998fc91ac 100644 --- a/sycl/test-e2e/AtomicRef/min_generic.cpp +++ b/sycl/test-e2e/AtomicRef/min_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "min.h" diff --git a/sycl/test-e2e/AtomicRef/min_generic_local.cpp b/sycl/test-e2e/AtomicRef/min_generic_local.cpp index ebba739ba5a1b..aacda57f4619c 100644 --- a/sycl/test-e2e/AtomicRef/min_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/min_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/min_local.cpp b/sycl/test-e2e/AtomicRef/min_local.cpp index 8971afe425978..945d871f0e9bf 100644 --- a/sycl/test-e2e/AtomicRef/min_local.cpp +++ b/sycl/test-e2e/AtomicRef/min_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "min.h" diff --git a/sycl/test-e2e/AtomicRef/or.cpp b/sycl/test-e2e/AtomicRef/or.cpp index 5e5af73ed21c9..b8bfe26b04927 100644 --- a/sycl/test-e2e/AtomicRef/or.cpp +++ b/sycl/test-e2e/AtomicRef/or.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "or.h" diff --git a/sycl/test-e2e/AtomicRef/or_generic.cpp b/sycl/test-e2e/AtomicRef/or_generic.cpp index fea2076530d18..f9b1729751475 100644 --- a/sycl/test-e2e/AtomicRef/or_generic.cpp +++ b/sycl/test-e2e/AtomicRef/or_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "or.h" diff --git a/sycl/test-e2e/AtomicRef/or_generic_local.cpp b/sycl/test-e2e/AtomicRef/or_generic_local.cpp index c90258b55a96e..761047b58d963 100644 --- a/sycl/test-e2e/AtomicRef/or_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/or_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/or_local.cpp b/sycl/test-e2e/AtomicRef/or_local.cpp index fb10aaaf8ac28..2c226f296b3d7 100644 --- a/sycl/test-e2e/AtomicRef/or_local.cpp +++ b/sycl/test-e2e/AtomicRef/or_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "or.h" diff --git a/sycl/test-e2e/AtomicRef/store.cpp b/sycl/test-e2e/AtomicRef/store.cpp index 9e0ada8d3fa3b..7624abf383470 100644 --- a/sycl/test-e2e/AtomicRef/store.cpp +++ b/sycl/test-e2e/AtomicRef/store.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "store.h" diff --git a/sycl/test-e2e/AtomicRef/store_generic.cpp b/sycl/test-e2e/AtomicRef/store_generic.cpp index 9586da411227b..415a81624cceb 100644 --- a/sycl/test-e2e/AtomicRef/store_generic.cpp +++ b/sycl/test-e2e/AtomicRef/store_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "store.h" diff --git a/sycl/test-e2e/AtomicRef/store_generic_local.cpp b/sycl/test-e2e/AtomicRef/store_generic_local.cpp index 8f6c9bb99179c..83064197614c7 100644 --- a/sycl/test-e2e/AtomicRef/store_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/store_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/store_local.cpp b/sycl/test-e2e/AtomicRef/store_local.cpp index bbbe89ffb05da..9cab58027961f 100644 --- a/sycl/test-e2e/AtomicRef/store_local.cpp +++ b/sycl/test-e2e/AtomicRef/store_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "store.h" diff --git a/sycl/test-e2e/AtomicRef/sub.cpp b/sycl/test-e2e/AtomicRef/sub.cpp index 058a79616a328..5732d97620293 100644 --- a/sycl/test-e2e/AtomicRef/sub.cpp +++ b/sycl/test-e2e/AtomicRef/sub.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "sub.h" diff --git a/sycl/test-e2e/AtomicRef/sub_generic.cpp b/sycl/test-e2e/AtomicRef/sub_generic.cpp index 560a2efce5ff9..5a3d8b8a044a5 100644 --- a/sycl/test-e2e/AtomicRef/sub_generic.cpp +++ b/sycl/test-e2e/AtomicRef/sub_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "sub.h" diff --git a/sycl/test-e2e/AtomicRef/sub_generic_local.cpp b/sycl/test-e2e/AtomicRef/sub_generic_local.cpp index dd2ecd064dec3..d4e0387ef6c16 100644 --- a/sycl/test-e2e/AtomicRef/sub_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/sub_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} // UNSUPPORTED: windows && arch-intel_gpu_bmg_g21 // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/23416 diff --git a/sycl/test-e2e/AtomicRef/sub_local.cpp b/sycl/test-e2e/AtomicRef/sub_local.cpp index d8482a82dad2f..e068175547523 100644 --- a/sycl/test-e2e/AtomicRef/sub_local.cpp +++ b/sycl/test-e2e/AtomicRef/sub_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "sub.h" diff --git a/sycl/test-e2e/AtomicRef/xor.cpp b/sycl/test-e2e/AtomicRef/xor.cpp index 1ff5770ce4402..731551ba22f01 100644 --- a/sycl/test-e2e/AtomicRef/xor.cpp +++ b/sycl/test-e2e/AtomicRef/xor.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "xor.h" diff --git a/sycl/test-e2e/AtomicRef/xor_generic.cpp b/sycl/test-e2e/AtomicRef/xor_generic.cpp index 54e7e63fa789f..868a3f480bb3f 100644 --- a/sycl/test-e2e/AtomicRef/xor_generic.cpp +++ b/sycl/test-e2e/AtomicRef/xor_generic.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "xor.h" diff --git a/sycl/test-e2e/AtomicRef/xor_generic_local.cpp b/sycl/test-e2e/AtomicRef/xor_generic_local.cpp index e362d66e95920..4b9ecc3e7ac77 100644 --- a/sycl/test-e2e/AtomicRef/xor_generic_local.cpp +++ b/sycl/test-e2e/AtomicRef/xor_generic_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #define TEST_GENERIC_IN_LOCAL 1 diff --git a/sycl/test-e2e/AtomicRef/xor_local.cpp b/sycl/test-e2e/AtomicRef/xor_local.cpp index 1b91bb86d67d7..b316111e56f1c 100644 --- a/sycl/test-e2e/AtomicRef/xor_local.cpp +++ b/sycl/test-e2e/AtomicRef/xor_local.cpp @@ -1,11 +1,8 @@ -// REQUIRES: arch-intel_gpu_cri -// UNSUPPORTED: any-target-is-nvidia, any-target-is-amd, spirv-backend +// UNSUPPORTED: target-nvidia, target-amd, spirv-backend // UNSUPPORTED-INTENDED: only supported by backends with atomic16 support -// RUN: %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator=spir64 -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.cri.out -// RUN: %{run} %t.cri.out - // RUN: %{build} -o %t.out -// RUN: %{run} %t.out +// RUN: %{build} %{full_atomic_flags} -o %t.cri.out +// RUN: %if arch-intel_gpu_cri %{ %{run} %t.cri.out %} %else %{ %{run} %t.out %} #include "xor.h"