diff --git a/sycl/test-e2e/SYCLBIN/basic_executable.cpp b/sycl/test-e2e/SYCLBIN/basic_executable.cpp index b852dee88f9ef..df378aeae1f88 100644 --- a/sycl/test-e2e/SYCLBIN/basic_executable.cpp +++ b/sycl/test-e2e/SYCLBIN/basic_executable.cpp @@ -11,7 +11,7 @@ // -- Basic test for compiling and loading a SYCLBIN kernel_bundle in executable // -- state. -// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %S/Inputs/basic_kernel.cpp -o %t.syclbin +// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %{syclbin_exec_opts} %S/Inputs/basic_kernel.cpp -o %t.syclbin // RUN: %{build} -o %t.out // RUN: %{l0_leak_check} %{run} %t.out %t.syclbin diff --git a/sycl/test-e2e/SYCLBIN/dae_executable.cpp b/sycl/test-e2e/SYCLBIN/dae_executable.cpp index 49fd6c56947cd..0050f6f3b8715 100644 --- a/sycl/test-e2e/SYCLBIN/dae_executable.cpp +++ b/sycl/test-e2e/SYCLBIN/dae_executable.cpp @@ -10,7 +10,7 @@ // -- Test for using a kernel from a SYCLBIN with a dead argument. -// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %S/Inputs/dae_kernel.cpp -o %t.syclbin +// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %{syclbin_exec_opts} %S/Inputs/dae_kernel.cpp -o %t.syclbin // RUN: %{build} -o %t.out // RUN: %{l0_leak_check} %{run} %t.out %t.syclbin diff --git a/sycl/test-e2e/SYCLBIN/dg_executable.cpp b/sycl/test-e2e/SYCLBIN/dg_executable.cpp index 58f5cf339fee9..c19790c4c8ad0 100644 --- a/sycl/test-e2e/SYCLBIN/dg_executable.cpp +++ b/sycl/test-e2e/SYCLBIN/dg_executable.cpp @@ -13,7 +13,7 @@ // UNSUPPORTED: opencl && gpu // UNSUPPORTED-TRACKER: GSD-4287 -// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %S/Inputs/dg_kernel.cpp -o %t.syclbin +// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %{syclbin_exec_opts} %S/Inputs/dg_kernel.cpp -o %t.syclbin // RUN: %{build} -o %t.out // RUN: %{l0_leak_check} %{run} %t.out %t.syclbin diff --git a/sycl/test-e2e/SYCLBIN/lit.local.cfg b/sycl/test-e2e/SYCLBIN/lit.local.cfg new file mode 100644 index 0000000000000..7abdeb54dd7c7 --- /dev/null +++ b/sycl/test-e2e/SYCLBIN/lit.local.cfg @@ -0,0 +1,7 @@ +syclbin_exec_opts = "" +if 'target-spir' in config.available_features and 'ocloc' in config.available_features: + # Due to a bug in clang-linker-wrapper we cannot use -device * on Windows, so + # we pick specific targets for now. Once that is fixed we can switch to the + # wildcard. See https://github.com/intel/llvm/issues/19373. + syclbin_exec_opts = '-fsycl-targets=spir64,spir64_gen -Xsycl-target-backend=spir64_gen "-device pvc,dg2,bmg-g21"' +config.substitutions.append(('%{syclbin_exec_opts}', format(syclbin_exec_opts))) diff --git a/sycl/test-e2e/SYCLBIN/optional_kernel_features_executable.cpp b/sycl/test-e2e/SYCLBIN/optional_kernel_features_executable.cpp index cf1fc8aea9e1f..f79169514cb80 100644 --- a/sycl/test-e2e/SYCLBIN/optional_kernel_features_executable.cpp +++ b/sycl/test-e2e/SYCLBIN/optional_kernel_features_executable.cpp @@ -11,7 +11,7 @@ // -- Test for compiling and loading a kernel bundle with a SYCLBIN containing // the use of optional kernel features. -// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %S/Inputs/optional_kernel_features.cpp -o %t.syclbin +// RUN: %clangxx --offload-new-driver -fsyclbin=executable %{sycl_target_opts} %{syclbin_exec_opts} %S/Inputs/optional_kernel_features.cpp -o %t.syclbin // RUN: %{build} -o %t.out // RUN: %{l0_leak_check} %{run} %t.out %t.syclbin