-
Notifications
You must be signed in to change notification settings - Fork 12k
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
OpenCL (CLC++2021) compilation to SPIR-V fails #68305
Comments
Hi @davidrohr! The error does not appear in the SPIR-V backend, but rather the Khronos SPIR-V LLVM Translator which is installed in your system and depends on LLVM. |
ok, clang told me to file a bug report, which I did here since it seemed natural. |
I just tried again the same with Also that fails with an error.
|
For reference, I just tried the same with clang 18.1, and it fails in the same way |
For reference, the related problem I had with the spirv-llvm-translater (KhronosGroup/SPIRV-LLVM-Translator#2193) is now worked around / fixed. I can compile the code to SPIR-V using clang 18.1.4 with #90048 and using the translator. While the same code still fails using the internal spirv backend with |
Any progress on this? There was no activity in the last 7 months. |
For reference, I retried with LLVM 19, and it is still failing with very similar error message. I am attaching the testcase and the console output.
|
Compilation with clang 17.0.2 (on Gentoo Linux) fails with the below error message. I was using clang 15 before, which didn't fail. I also tried clang 16 now, which failed with the same error, I didn't try other versions.
I am attaching a tarball with my .cl file, and with the 2 files in /tmp that clang asked me to attach to the bug report:
bugreport.tar.gz
Command to reproduce:
Error message:
The text was updated successfully, but these errors were encountered: