Skip to content

Commit d02286b

Browse files
[SYCL][E2E] Compile AOT for CPU in SYCLBIN executable tests (#20805)
This commit adds the spir64_x86_64 target to SYCLBIN executable tests. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 4fc50a6 commit d02286b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

sycl/test-e2e/SYCLBIN/lit.local.cfg

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
syclbin_exec_opts = ""
2-
if 'target-spir' in config.available_features and 'ocloc' in config.available_features:
3-
# Due to a bug in clang-linker-wrapper we cannot use -device * on Windows, so
4-
# we pick specific targets for now. Once that is fixed we can switch to the
5-
# wildcard. See https://github.com/intel/llvm/issues/19373.
6-
syclbin_exec_opts = '-fsycl-targets=spir64,spir64_gen -Xsycl-target-backend=spir64_gen "-device pvc,dg2,bmg-g21"'
2+
if 'target-spir' in config.available_features:
3+
syclbin_exec_opts = '-fsycl-targets=spir64,spir64_x86_64'
4+
if 'ocloc' in config.available_features:
5+
# Due to a bug in clang-linker-wrapper we cannot use -device * on Windows, so
6+
# we pick specific targets for now. Once that is fixed we can switch to the
7+
# wildcard. See https://github.com/intel/llvm/issues/19373.
8+
syclbin_exec_opts = syclbin_exec_opts + ',spir64_gen -Xsycl-target-backend=spir64_gen "-device pvc,dg2,bmg-g21"'
79
config.substitutions.append(('%{syclbin_exec_opts}', format(syclbin_exec_opts)))
810

911
# https://github.com/intel/llvm/issues/20142

0 commit comments

Comments
 (0)