Skip to content

Commit 5fb96d2

Browse files
[SYCL-JIT] Update un-supported argument list. (#20221)
`-fsycl-targets=` is now an alias for `--offload-targets=` and hence `--offload-targets=` must also be added to the unsupported arg list as the Clang driver code checks for matching ID for `--offload-targets=` as well. Fixes #20127
1 parent 8f70ba3 commit 5fb96d2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,12 @@ jit_compiler::parseUserArgs(View<const char *> UserArgs) {
819819
// Check for options that are unsupported because they would interfere with
820820
// the in-memory pipeline.
821821
Arg *UnsupportedArg =
822-
AL.getLastArg(OPT_Action_Group, // Actions like -c or -S
823-
OPT_Link_Group, // Linker flags
824-
OPT_o, // Output file
825-
OPT_fsycl_targets_EQ, // AoT compilation
826-
OPT_fsycl_link_EQ, // SYCL linker
822+
AL.getLastArg(OPT_Action_Group, // Actions like -c or -S
823+
OPT_Link_Group, // Linker flags
824+
OPT_o, // Output file
825+
OPT_fsycl_targets_EQ, // AoT compilation
826+
OPT_offload_targets_EQ, // AoT compilation
827+
OPT_fsycl_link_EQ, // SYCL linker
827828
OPT_fno_sycl_device_code_split_esimd, // invoke_simd
828829
OPT_fsanitize_EQ // Sanitizer
829830
);

sycl/test-e2e/KernelCompiler/sycl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// XFAIL: run-mode
10-
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/20127
119
// REQUIRES: sycl-jit, aspect-usm_device_allocations
1210

1311
// RUN: %{build} -o %t.out

0 commit comments

Comments
 (0)