Skip to content

Conversation

@omarahmed1111
Copy link
Contributor

@omarahmed1111 omarahmed1111 commented Apr 14, 2025

-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

@omarahmed1111 omarahmed1111 changed the title [CLANG-OFFLOAD-WRAPPER] Replace -lto-emit-asm option with -S for cuda pipeline [SYCL][CLANG-LINKER-WRAPPER] Replace -lto-emit-asm option with -S for cuda pipeline Apr 14, 2025
@omarahmed1111 omarahmed1111 marked this pull request as ready for review April 14, 2025 13:09
@omarahmed1111 omarahmed1111 requested a review from a team as a code owner April 14, 2025 13:09
@omarahmed1111 omarahmed1111 reopened this Apr 15, 2025
@npmiller
Copy link
Contributor

ping @intel/dpcpp-tools-reviewers

Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the title can you make CLANG-LINKER-WRAPPER lowercase? thx

@omarahmed1111 omarahmed1111 changed the title [SYCL][CLANG-LINKER-WRAPPER] Replace -lto-emit-asm option with -S for cuda pipeline [SYCL][clang-linker-wrapper] Replace -lto-emit-asm option with -S for cuda pipeline Apr 18, 2025
@npmiller
Copy link
Contributor

@intel/llvm-gatekeepers this should be ready to merge, the Jenkins/precommit failure seems to be an unrelated CI issue

@sarnex sarnex merged commit 00cdfe5 into intel:sycl Apr 18, 2025
60 of 62 checks passed
npmiller added a commit to npmiller/llvm that referenced this pull request Apr 23, 2025
aelovikov-intel pushed a commit that referenced this pull request Apr 28, 2025
KornevNikita pushed a commit that referenced this pull request May 27, 2025
… 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants