-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[CUDA 12] clang error: no template named 'texture' #61340
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
Comments
I believe that's already been fixed in recent clang: 8173405 |
@Artem-B Thanks for the info. Any chance of backporting it to clang 15, or do I have to wait for version 16 to be released? What is the general policy? |
It's a low-risk fix which should be OK to cherry-pick, though I don't know the current state of the release process. |
/cherry-pick 8173405 |
Error: Command failed due to missing milestone. |
Failed to cherry-pick: 8173405 https://github.com/llvm/llvm-project/actions/runs/4409411801 Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
|
Failed to cherry-pick: 8173405 https://github.com/llvm/llvm-project/actions/runs/4409418263 Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
|
Oh, we don't need any cherry-picks. The change is already in 16.x. |
@Artem-B What about 15.x? Or is 16.0 expected to come out soon? |
16.0 should be released soon, though I don't know the exact date. |
I see the same error with Clang 17.0.6 and CUDA 12.4:
|
That code is guarded with
My guess is that something is broken w/ CUDA installation in your setup and clang picks up wrong/inconsistent CUDA headers somehow. Considering that you didn't specify I would suggest running compilation with |
Thanks Artem! Your suggestion to compile with |
For a trivial
foo.cu
:Running
clang++ foo.cu
results in:The platform is Arch Linux:
The text was updated successfully, but these errors were encountered: