Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the usage of -flto and use -lto-emit-asm instead #16884

Conversation

omarahmed1111
Copy link
Contributor

@omarahmed1111 omarahmed1111 commented Feb 4, 2025

This reverts this PR and add another solution to that problem mentioned in this issue. This was the result of llvm upstream discussion here

@omarahmed1111
Copy link
Contributor Author

@mdtoguchi @AlexeySachkov The PR is failing in some tests due to not finding clang-nvlink-wrapper tool. I saw locally that the tool should be built by default with other clang tools and it works normally. Do you have an idea where the PATH is initialized on CI or how to debug that?

@AlexeySachkov
Copy link
Contributor

@mdtoguchi @AlexeySachkov The PR is failing in some tests due to not finding clang-nvlink-wrapper tool. I saw locally that the tool should be built by default with other clang tools and it works normally. Do you have an idea where the PATH is initialized on CI or how to debug that?

My guess is that dependency is missing here:

list(APPEND SYCL_E2E_TEST_DEPS
sycl-toolchain
FileCheck
not
)

clang-nvlink-wrapper is not a part of our sycl-toolchain - if it should be (i.e. that is not a test-only dependency), then the following CMakeLists.txt should be updated:

add_custom_target(sycl-compiler

Hope this helps

@omarahmed1111 omarahmed1111 force-pushed the readd-lto-and-fix-the-pipeline-to-generate-ptx branch from 97248a9 to 554f8c6 Compare February 10, 2025 15:17
@asudarsa
Copy link
Contributor

LGTM. Can we merge this?
Adding @sarnex for comment. cmake changes look good.

Thanks

Copy link
Contributor

@asudarsa asudarsa left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@omarahmed1111
Copy link
Contributor Author

@intel/llvm-reviewers-runtime Please review, Thanks!

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

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

Changes in sycl/CMakeLists.txt LGTM

@omarahmed1111
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge, Thanks!

@kbenzie kbenzie merged commit fdea2cb into intel:sycl Feb 14, 2025
15 checks passed
dm-vodopyanov pushed a commit that referenced this pull request Feb 21, 2025
…7035)

This is a small follow-up PR on this
[PR](#16884) as `clang-nvlink-wrapper`
tool need to be added as a dependency for `sycl-toolchain`.
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.

6 participants