-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[CUDA] device side asserts crash clang when using -g #101819
Comments
PTX doesn't accept .global .align 1 .b8 __PRETTY_FUNCTION___$__Z4testi[15] = {118, 111, 105, 100, 32, 116, 101, 115, 116, 40, 105, 110, 116, 41};
...
.b64 __PRETTY_FUNCTION__._Z4testi See |
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Ognyan Mirev (OgnianM)
```
$ clang++ -g -x cuda -c test.cu
ptxas /tmp/test-sm_52-55e123.s, line 841; fatal : Parsing error near '.': syntax error
ptxas fatal : Ptx assembly aborted due to errors
clang++: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 20.0.0git (https://github.com/llvm/llvm-project.git 5bd38a9)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
#include <cassert> global void test(int x) { assert(x > 10); } int main() {
|
I can take a look at this, please assign it to me |
test.cu:
The text was updated successfully, but these errors were encountered: