Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
98012b2
[SYCL][E2E] Select Intel GPU AOT targets via gpu_aot_target
srividya-sundaram Oct 9, 2026
7569eea
[SYCL][Driver] Deprecate -fsycl-targets=spir64_gen
srividya-sundaram Oct 9, 2026
6b5c476
Merge branch 'sycl' into sycl-deprecate-spir64-gen
srividya-sundaram Oct 9, 2026
2a6c3a3
[SYCL] Address review comments for spir64_gen deprecation
srividya-sundaram Oct 9, 2026
8c73223
[SYCL][E2E] Fix comment formatting in aot_object_no_symbols.cpp
srividya-sundaram Oct 9, 2026
905a197
[SYCL][E2E] Exclude Gen12 from the Windows build-only gpu_aot_target …
srividya-sundaram Oct 12, 2026
10bb403
[Clang][OffloadBundler] Match the target ID of SYCL bundle entry IDs
srividya-sundaram Oct 12, 2026
29293ce
[SYCL][E2E] Fix AOT tests that relied on spir64_gen images running on…
srividya-sundaram Oct 12, 2026
bb2a27a
[SYCL][E2E] Accept one abstract module per architecture in simple_ker…
srividya-sundaram Oct 12, 2026
3560b03
[SYCL] Only use AOT images built for the device's architecture
srividya-sundaram Oct 12, 2026
08d46ad
[SYCL][E2E] Add a SPIR-V image to the AOT block of test_cache_jit_aot…
srividya-sundaram Oct 12, 2026
f4a274d
[SYCL][E2E] Set the build-only gpu_aot_target from the CI workflows
srividya-sundaram Oct 13, 2026
b3ef500
[SYCL][Doc] Describe spir64_gen deprecation in terms of --offload-new…
srividya-sundaram Oct 13, 2026
0dff57c
[SYCL][E2E] Clarify why build_log.cpp is unsupported with the new off…
srividya-sundaram Oct 13, 2026
424490c
[SYCL][E2E] Keep gpu_aot_target_opts for extra AOT options
srividya-sundaram Oct 13, 2026
ebc840f
[SYCL][clang-linker-wrapper] Wrap all architectures in one module for…
srividya-sundaram Oct 13, 2026
bc79849
[SYCL] Check the compile_target in compatibleWithDevice
srividya-sundaram Oct 14, 2026
fd715b0
Merge branch 'sycl' into sycl-deprecate-spir64-gen
srividya-sundaram Oct 14, 2026
5c2cc96
[SYCL][E2E] Remove the stale XFAIL from the AddressSanitizer AOT GPU …
srividya-sundaram Oct 14, 2026
4fdb976
[SYCL][E2E] Build bfloat16_example_aot.cpp for gpu_aot_target
srividya-sundaram Oct 14, 2026
0c428da
[SYCL][Driver] Rename err_drv_sycl_spir64_gen_new_driver to err_drv_n…
srividya-sundaram Oct 14, 2026
548e6c8
Merge branch 'sycl' into sycl-deprecate-spir64-gen
srividya-sundaram Oct 19, 2026
af84095
Merge branch 'sycl' into sycl-deprecate-spir64-gen
srividya-sundaram Oct 20, 2026
4e9ca41
[SYCL][Doc] Document intel_gpu_<arch> instead of spir64_gen in the us…
srividya-sundaram Oct 20, 2026
0af2c32
[SYCL][Driver] Name the SYCL target in the spir64_gen check and test …
srividya-sundaram Oct 20, 2026
fadb0a3
[SYCL][Driver] Say spir64_gen will be removed with the old offloading…
srividya-sundaram Oct 20, 2026
f1d6482
Merge branch 'sycl' into sycl-deprecate-spir64-gen
srividya-sundaram Oct 21, 2026
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
11 changes: 7 additions & 4 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ jobs:
env:
CCACHE_DIR: ${{ inputs.build_cache_root }}/build_cache_${{ inputs.build_cache_suffix }}
CCACHE_MAXSIZE: 8G
# Intel GPU architectures of the run-only E2E runners in
# sycl-linux-precommit.yml. Keep in sync when adding or removing one.
GPU_AOT_TARGET: intel_gpu_tgllp,intel_gpu_acm_g10,intel_gpu_pvc,intel_gpu_bmg_g21,intel_gpu_mtl_u
steps:
- name: Deduce artifact archive params
# To reduce number of inputs parameters that is limited for manual triggers.
Expand Down Expand Up @@ -330,7 +333,7 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param sycl_build_targets="spir;nvidia"
extra_lit_opts: --param sycl_build_targets="spir;nvidia" --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}

- name: Build E2E tests with NewOffloadModel
if: |
Expand All @@ -345,7 +348,7 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_new_offload_model_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param sycl_build_targets="spir;nvidia" --param enable_new_offload_model=True
extra_lit_opts: --param sycl_build_targets="spir;nvidia" --param enable_new_offload_model=True --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}

- name: Build E2E tests with SPIR-V Backend
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
Expand All @@ -356,7 +359,7 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_spirv_backend_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param spirv-backend=True
extra_lit_opts: --param spirv-backend=True --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}

- name: Build E2E tests in Preview Mode
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' && !startsWith(github.base_ref, 'sycl-rel-') }}
Expand All @@ -367,4 +370,4 @@ jobs:
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_preview_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param test-preview-mode=True
extra_lit_opts: --param test-preview-mode=True --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}
2 changes: 2 additions & 0 deletions .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:
echo FILTER_6_2="$(grep -v '^#\|^\W*$' devops/compat_ci_exclude.sycl-rel-6_2 | paste -sd '|')" >> $GITHUB_OUTPUT
echo FILTER_6_3="$(grep -v '^#\|^\W*$' devops/compat_ci_exclude.sycl-rel-6_3 | paste -sd '|')" >> $GITHUB_OUTPUT

# The E2E binaries run here are built for GPU_AOT_TARGET in
# sycl-linux-build.yml; update it when adding or removing an Intel GPU runner.
E2E:
needs: [build, detect_changes, compat_read_exclude]
if: ${{ !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/sycl-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ jobs:
runs-on: [Windows, build]
outputs:
build_conclusion: ${{ steps.build.conclusion }}
env:
# Intel GPU architectures of the run-only E2E runners in
# sycl-windows-precommit.yml. Keep in sync when adding or removing one.
# Gen12 and older (gen12 runner) are not supported by Windows ocloc.
GPU_AOT_TARGET: intel_gpu_acm_g10,intel_gpu_bmg_g21
steps:
- name: Detect hung tests
if: always()
Expand Down Expand Up @@ -257,7 +262,7 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
extra_lit_opts: --param sycl_build_targets="spir"
extra_lit_opts: --param sycl_build_targets="spir" --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}
cxx: ${{ inputs.cxx }}

- name: Build E2E tests with New Offload Model
Expand All @@ -272,7 +277,7 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_new_offload_model_artifact }}
extra_lit_opts: --param sycl_build_targets="spir" --param enable_new_offload_model=True
extra_lit_opts: --param sycl_build_targets="spir" --param enable_new_offload_model=True --param gpu_aot_target=${{ env.GPU_AOT_TARGET }}
cxx: ${{ inputs.cxx }}

- name: Detect hung tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sycl-windows-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
e2e_binaries_artifact: sycl_windows_e2ebin
e2e_binaries_new_offload_model_artifact: sycl_windows_e2ebin_with_new_offload_model

# The E2E binaries run here are built for GPU_AOT_TARGET in
# sycl-windows-build.yml; update it when adding or removing an Intel GPU runner.
run_prebuilt_e2e_tests:
needs: build
# Continue if build was successful.
Expand Down
2 changes: 2 additions & 0 deletions clang/include/clang/Basic/DiagnosticDriverKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ def err_drv_sycl_thinlto_split_off: Error<
"'%0' is not supported when '%1' is set with '-fsycl'">;
def err_drv_sycl_offload_arch_new_driver: Error<
"'--offload-arch' is supported when '-fsycl' is set with '--offload-new-driver'">;
def err_drv_not_supported_new_model : Error<
"'%0' is not supported with the new offloading model; use '%1' instead">;
Comment thread
srividya-sundaram marked this conversation as resolved.
def err_drv_sycl_offload_arch_missing_value : Error<
"must pass in an explicit cpu or gpu architecture to '--offload-arch'">;
def warn_drv_offload_target_duplicate
Expand Down
40 changes: 40 additions & 0 deletions clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,46 @@ static void diagnoseSYCLOptions(Compilation &C, bool IsSYCL) {
<< SYCLForceTarget->getAsString(C.getInputArgs());
}

// spir64_gen is deprecated in favor of intel_gpu_<arch>, both as a
// -fsycl-targets value and as the triple of the -X<tool>= options. It is not
// supported with the new offloading model, and will be removed together with
// the old offloading model.
if (IsSYCL) {
const Driver &D = C.getDriver();
// Target is a SYCL target as given on the command line, e.g. spir64_gen,
// spir64_gen-unknown-unknown or intel_gpu_pvc.
auto IsSPIRGenTarget = [&](StringRef Target) {
llvm::Triple TT = D.getSYCLDeviceTriple(Target);
return TT.isSPIR() && TT.getSubArch() == llvm::Triple::SPIRSubArch_gen;
};
auto DiagnoseSPIRGenTarget = [&](StringRef Spelling, StringRef Target) {
std::string Opt = (Spelling + Target).str();
std::string Replacement = (Spelling + "intel_gpu_<arch>").str();
if (D.getUseNewOffloadingDriver())
D.Diag(diag::err_drv_not_supported_new_model) << Opt << Replacement;
else
D.Diag(diag::warn_drv_deprecated_option_release)
<< Opt << /*HasReplacement=*/true << Replacement;
};

for (const Arg *A :
C.getInputArgs().filtered(options::OPT_offload_targets_EQ)) {
// Report the spelling the user wrote, e.g. -fsycl-targets=.
StringRef Spelling =
A->getAlias() ? A->getAlias()->getSpelling() : A->getSpelling();
for (StringRef Target : A->getValues())
if (IsSPIRGenTarget(Target))
DiagnoseSPIRGenTarget(Spelling, Target);
}
for (const Arg *A : C.getInputArgs().filtered(
options::OPT_Xsycl_backend_EQ, options::OPT_Xsycl_frontend_EQ,
options::OPT_Xsycl_linker_EQ, options::OPT_Xspirv_translator_EQ,
options::OPT_Xdevice_post_link_EQ,
options::OPT_Xspirv_to_ir_wrapper_EQ))
if (IsSPIRGenTarget(A->getValue()))
DiagnoseSPIRGenTarget(A->getSpelling(), A->getValue());
Comment thread
srividya-sundaram marked this conversation as resolved.
}

// Check if -fsycl-host-compiler is used in conjunction with -fsycl.
Arg *SYCLHostCompiler =
getArgRequiringSYCLRuntime(options::OPT_fsycl_host_compiler_EQ);
Expand Down
33 changes: 4 additions & 29 deletions clang/test/Driver/sycl-device-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,6 @@
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_12_60_7 --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend "-device pvc" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend=spir64_gen "-device pvc" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend "-device 12.60.7" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xs "-device pvc" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xs "-device 12.60.7" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_PVC
// SYCL_DEVICE_LIB_ASAN_PVC: clang{{.*}} "-mlink-builtin-bitcode" "{{.*}}libsycl-crt.bc"
// SYCL_DEVICE_LIB_ASAN_PVC-SAME: {{.*}}libsycl-cmath.bc
// SYCL_DEVICE_LIB_ASAN_PVC-SAME: {{.*}}libsycl-imf.bc
Expand Down Expand Up @@ -100,19 +85,12 @@
/// test behavior of linking libsycl-asan-dg2 for DG2 target AOT compilation when asan flag is applied.
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10 --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2 --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_12_55_8 --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_acm_g10 --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -### 2>&1 | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend "-device dg2" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend=spir64_gen "-device dg2" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xs "-device dg2" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_DG2
// SYCL_DEVICE_LIB_ASAN_DG2: clang{{.*}} "-mlink-builtin-bitcode" "{{.*}}libsycl-crt.bc"
// SYCL_DEVICE_LIB_ASAN_DG2-SAME: {{.*}}libsycl-cmath.bc
// SYCL_DEVICE_LIB_ASAN_DG2-SAME: {{.*}}libsycl-imf.bc
Expand All @@ -121,11 +99,8 @@
/// ###########################################################################
/// test behavior of linking libsycl-asan for multiple targets AOT compilation
/// when asan flag is applied.
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend "-device pvc,dg2" -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_MUL
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen --offload-new-driver %s --sysroot=%S/Inputs/SYCL \
// RUN: -Xarch_device -fsanitize=address -Xsycl-target-backend=spir64_gen "-device pvc,dg2" -### 2>&1 \
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_pvc,intel_gpu_dg2 --offload-new-driver %s \
// RUN: --sysroot=%S/Inputs/SYCL -Xarch_device -fsanitize=address -### 2>&1 \
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_ASAN_MUL
// SYCL_DEVICE_LIB_ASAN_MUL: clang{{.*}} "-mlink-builtin-bitcode" "{{.*}}libsycl-crt.bc"
// SYCL_DEVICE_LIB_ASAN_MUL-SAME: {{.*}}libsycl-cmath.bc
Expand Down
6 changes: 3 additions & 3 deletions clang/test/Driver/sycl-device-post-link-opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// RUN: %clangxx -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -Xdevice-post-link "foo" -### %s 2>&1 | \
// RUN: FileCheck %s -check-prefix CHECK-SINGLE-TARGET

// RUN: %clangxx -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -Xdevice-post-link=spir64_gen "foo" -### %s 2>&1 | \
// RUN: %clangxx -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -Xdevice-post-link=intel_gpu_pvc "foo" -### %s 2>&1 | \
// RUN: FileCheck %s -check-prefix CHECK-SINGLE-TARGET-UNUSED --implicit-check-not 'sycl-post-link{{.*}} "foo"'

// RUN: %clangxx -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64,spir64_gen -Xdevice-post-link=spir64_gen "foo" -Xdevice-post-link=spir64 "bar" -### %s 2>&1 | \
// RUN: %clangxx -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64,intel_gpu_pvc -Xdevice-post-link=intel_gpu_pvc "foo" -Xdevice-post-link=spir64 "bar" -### %s 2>&1 | \
// RUN: FileCheck %s -check-prefix CHECK-MULTIPLE-TARGET --implicit-check-not 'sycl-post-link{{.*}} "foo" "bar"'

// Each token is forwarded as its own --sycl-post-link-options occurrence.
Expand All @@ -20,7 +20,7 @@

// CHECK-SINGLE-TARGET: clang-linker-wrapper{{.*}} {{.*}}--sycl-post-link-options={{.*}}foo{{.*}}

// CHECK-SINGLE-TARGET-UNUSED: argument unused during compilation: '-Xdevice-post-link=spir64_gen foo'
// CHECK-SINGLE-TARGET-UNUSED: argument unused during compilation: '-Xdevice-post-link=intel_gpu_pvc foo'

// CHECK-MULTIPLE-TARGET: clang-linker-wrapper{{.*}} {{.*}}"--sycl-post-link-options=sycl:spir64-unknown-unknown=bar"{{.*}}"--sycl-post-link-options=sycl:spir64_gen-unknown-unknown=foo"

Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/sycl-device-traits-macros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// definition, one for host and one for each of the two devices.
// RUN: %clang -fsycl --no-offload-new-driver -fsycl-targets=spir64,spir64_gen -### %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-SYCL-TARGETS %s
// RUN: %clang -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64,spir64_gen -### %s 2>&1 \
// RUN: %clang -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64,intel_gpu_pvc -### %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-SYCL-TARGETS %s
// CHECK-SYCL-TARGETS-COUNT-3: "-D__SYCL_ANY_DEVICE_HAS_ANY_ASPECT__=1"

Expand Down
4 changes: 2 additions & 2 deletions clang/test/Driver/sycl-foffload-fp32-prec-div.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Test SYCL -foffload-fp32-prec-div

// RUN: %clang -### -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL \
// RUN: -fsycl-targets=spir64_gen -foffload-fp32-prec-div %s 2>&1 \
// RUN: -fsycl-targets=intel_gpu_pvc -foffload-fp32-prec-div %s 2>&1 \
// RUN: | FileCheck -check-prefix=AOT %s

// RUN: %clang -### -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL \
// RUN: -foffload-fp32-prec-div %s 2>&1 \
// RUN: | FileCheck -check-prefix=JIT %s

// AOT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts=-options -ze-fp32-correctly-rounded-divide-sqrt{{.*}}"
// AOT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts={{.*}}-options -ze-fp32-correctly-rounded-divide-sqrt{{.*}}"

// JIT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64-unknown-unknown,arch={{.*}}compile-opts={{.*}}-foffload-fp32-prec-div"
4 changes: 2 additions & 2 deletions clang/test/Driver/sycl-foffload-fp32-prec-sqrt.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Test SYCL -foffload-fp32-prec-sqrt

// RUN: %clang -### -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL \
// RUN: -fsycl-targets=spir64_gen -foffload-fp32-prec-sqrt %s 2>&1 \
// RUN: -fsycl-targets=intel_gpu_pvc -foffload-fp32-prec-sqrt %s 2>&1 \
// RUN: | FileCheck -check-prefix=AOT %s

// RUN: %clang -### -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL \
// RUN: -foffload-fp32-prec-sqrt %s 2>&1 \
// RUN: | FileCheck -check-prefix=JIT %s

// AOT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts=-options -ze-fp32-correctly-rounded-divide-sqrt{{.*}}"
// AOT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts={{.*}}-options -ze-fp32-correctly-rounded-divide-sqrt{{.*}}"

// JIT: llvm-offload-binary{{.*}} "--image=file={{.*}}.bc,triple=spir64-unknown-unknown,arch={{.*}}compile-opts={{.*}}-foffload-fp32-prec-sqrt"
4 changes: 2 additions & 2 deletions clang/test/Driver/sycl-fsyclbin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@
/// For AOT spir64_gen, -fsyclbin=input/object additionally implies
/// -library-compilation in the backend options so symbols stay
/// externally visible for runtime cross-image resolution.
// RUN: %clangxx -fsyclbin=object -fsycl-targets=spir64_gen \
// RUN: %clangxx -fsyclbin=object -fsycl-targets=intel_gpu_pvc \
// RUN: --offload-new-driver --sysroot=%S/Inputs/SYCL %s -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK_LIBCOMP_IMPLIED
// CHECK_LIBCOMP_IMPLIED: -library-compilation

// RUN: %clangxx -fsyclbin=executable -fsycl-targets=spir64_gen \
// RUN: %clangxx -fsyclbin=executable -fsycl-targets=intel_gpu_pvc \
// RUN: --offload-new-driver --sysroot=%S/Inputs/SYCL %s -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK_LIBCOMP_NOT_IMPLIED
// CHECK_LIBCOMP_NOT_IMPLIED-NOT: -library-compilation
Expand Down
4 changes: 2 additions & 2 deletions clang/test/Driver/sycl-ftarget-compile-fast.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Test -ftarget-compile-fast behaviors

// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL \
// RUN: -fsycl-targets=spir64_gen -ftarget-compile-fast %s 2>&1 \
// RUN: -fsycl-targets=intel_gpu_pvc -ftarget-compile-fast %s 2>&1 \
// RUN: | FileCheck -check-prefix=TARGET_COMPILE_FAST_GEN %s
// RUN: %clang_cl -### --target=x86_64-pc-windows-msvc -fsycl --offload-new-driver /clang:--sysroot=%S/Inputs/SYCL \
// RUN: -fsycl-targets=spir64_gen -ftarget-compile-fast %s 2>&1 \
// RUN: -fsycl-targets=intel_gpu_pvc -ftarget-compile-fast %s 2>&1 \
// RUN: | FileCheck -check-prefix=TARGET_COMPILE_FAST_GEN %s

// TARGET_COMPILE_FAST_GEN: llvm-offload-binary
Expand Down
Loading
Loading