From 34be57bfc2452fc608ee6849395116a2c2f1b17d Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Wed, 3 Dec 2025 03:45:06 -0800 Subject: [PATCH] [SYCL][E2E] Compile AOT for CPU in SYCLBIN executable tests This commit adds the spir64_x86_64 target to SYCLBIN executable tests. Signed-off-by: Larsen, Steffen --- sycl/test-e2e/SYCLBIN/lit.local.cfg | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sycl/test-e2e/SYCLBIN/lit.local.cfg b/sycl/test-e2e/SYCLBIN/lit.local.cfg index e0d1711d44760..5467332c99af5 100644 --- a/sycl/test-e2e/SYCLBIN/lit.local.cfg +++ b/sycl/test-e2e/SYCLBIN/lit.local.cfg @@ -1,9 +1,11 @@ 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"' +if 'target-spir' in config.available_features: + syclbin_exec_opts = '-fsycl-targets=spir64,spir64_x86_64' + if '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 = syclbin_exec_opts + ',spir64_gen -Xsycl-target-backend=spir64_gen "-device pvc,dg2,bmg-g21"' config.substitutions.append(('%{syclbin_exec_opts}', format(syclbin_exec_opts))) # https://github.com/intel/llvm/issues/20142