Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/test-e2e/SYCLBIN/basic_executable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/SYCLBIN/dae_executable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/SYCLBIN/dg_executable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions sycl/test-e2e/SYCLBIN/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -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)))
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading