-
Notifications
You must be signed in to change notification settings - Fork 156
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
libc++ unsupported, inconsistent errors are raised #1357
Comments
I think a prerequisite is that both For the other compilation flows, it's a problem in clang CUDA/HIP although we could ensure that better warnings are generated (and document this limitation as you suggest). |
Current documentation has a small note on standard library use under the table here: https://github.com/AdaptiveCpp/AdaptiveCpp/blob/develop/doc/installing.md#advanced-installation |
Bug summary
CUDA does not support libc++ on x86 officially. It seems the situation with HIP is the same, although there's no explicit check. And, from the looks of it,
generic
target does not work all that well either (at lease when AdaptiveCpp and LLVM themselves are compiled with libstdc++). However, the errors produced are super unhelpful except for SMCP with CUDA.To Reproduce
With a simple file just including
#include <sycl/sycl.hpp>
:CUDA multipass does not work, but shows a helpful error:
HIP multipass does not work, but shows a confusing error after replacing the
__local
function name with an address space cast:SSCP compiles the code, but the program crashes immediately:
Expected behavior
Either libc++ is supported (significant effort) or a consistent compile-time error is emitted.
Describe your setup
Additional context
Not critical. Just making a public note about a confusing behavior.
The text was updated successfully, but these errors were encountered: