Skip to content

Commit df9b840

Browse files
Omar AhmedKornevNikita
authored andcommitted
[SYCL][clang-linker-wrapper] Replace -lto-emit-asm option with -S for cuda pipeline (#18000)
`-lto-emit-asm` was used previously for cuda kernels pipeline when `-flto` was also used to generate ptx assembly. But after removing lto for cuda kernels, we don't need this option, instead we should use `-S` clang option to generate the ptx assembly for cuda kernels. Fixing issue [17812](#17812)
1 parent ffd1626 commit df9b840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args,
15511551
CmdArgs.push_back("-Wl,--no-undefined");
15521552

15531553
if (IsSYCLKind && Triple.isNVPTX())
1554-
CmdArgs.push_back("-Wl,--lto-emit-asm");
1554+
CmdArgs.push_back("-S");
15551555
for (StringRef InputFile : InputFiles)
15561556
CmdArgs.push_back(InputFile);
15571557

0 commit comments

Comments
 (0)