-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL][TEST] Skip free_function_host_compiler.cpp when using libcxx
#19696
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU `g++` host compiler doesn't work with libcxx.
Contributor
Author
|
Hopefully would address Nightly failure https://github.com/intel/llvm/actions/runs/16713388295/job/47302088328 |
Contributor
Actually you can get it to work and it's really annoying and we don't support it really. But yeah either way just skip the test |
sarnex
approved these changes
Aug 4, 2025
againull
approved these changes
Aug 4, 2025
Contributor
Author
is unrelated, but tagging @sergey-semenov and @KseniyaTikhomirova for awareness. |
AlexeySachkov
pushed a commit
to AlexeySachkov/llvm
that referenced
this pull request
Aug 28, 2025
…x` (intel#19696) GNU `g++` host compiler doesn't work with libcxx without some voodoo magic.
AlexeySachkov
added a commit
that referenced
this pull request
Aug 28, 2025
This is a joined cherry-pick of: --- [SYCL] Free function host compilation bugfix (#19541) The `KernelInfoData` struct is specialized in the integration header for free function kernels and results in compilation errors when using other host compilers to compile code for example while using `-fsycl-host-compiler=g++` . This PR removes its generation for free function kernels in the integration header altogether since it is not used anywhere. For more info about the bug tackled by this PR: `KernelInfoData` struct is specialized in the integration header for unnamed kernels such as free function kernels with the primary definition located in `kernel_desc.hpp`. The primary definition however seems to be conditional upon the fact that the unnamed lambda extension must be enabled which is not the case with other host compilers and we end up with an error of specialization without a primary template. Furthermore setting `-fsycl-unnamed-lambda` doesn't do the trick as apparently it is not allowed to be used together with `-fsycl-host-compiler`. Since it seems unreasonable to disallow using other host compilers with free function kernels, this seemed one of the easier solutions at the moment. Another approach would be to potentially remove the ifdefs in kernel_desc.hpp that conditionally include/exclude `KernelInfo `and `KernelInfoData` and have them both available unconditionally. Tagging @bader for some input about this alternative approach. Patch-by: Lorenc Bushi <[email protected]> Co-authored-by: Tom Honermann <[email protected]> --- [SYCL][TEST] Skip free_function_host_compiler.cpp when using libcxx (#19696) GNU `g++` host compiler doesn't work with libcxx without some voodoo magic. Patch-by: Andrei Elovikov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GNU
g++host compiler doesn't work with libcxx without some voodoo magic.