intel / intel/llvm

Fatal PTX assembly error due to assert statement

Open
#12,991 3 comments 0 reactions 1 assignee Claimed by @ldrumm View on GitHub
bug cuda
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Describe the bug

```
ptxas /tmp/test_updater_pp_main-sm_80-85d371.s, line 3472; fatal : Parsing error near '.': syntax error
ptxas fatal : Ptx assembly aborted due to errors
clang++-18: error: ptxas command failed with exit code 255 (use -v to see invocation)
Ubuntu clang version 18.1.0 (++20240302042158+461274b81d86-1~exp1~20240302162229.64)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang++-18: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++-18: note: diagnostic msg: /tmp/test_updater_pp_main-a99dd3.cu
clang++-18: note: diagnostic msg: /tmp/test_updater_pp_main-sm_80-2bad03.cu
clang++-18: note: diagnostic msg: /tmp/test_updater_pp_main-a99dd3.sh
clang++-18: note: diagnostic msg:

********************

```

I see it with clang-17 also

### To reproduce

I've tried to create something minimal to reproduce this but it appears to be somewhat associated with the complexity of the project where it appears

I can offer guidance on how to compile, or I can investigate any actions proposed.

Commenting out [this](https://github.com/PhilipDeegan/PHARE/blob/mkn/src/core/numerics/pusher/boris_simpler.hpp#L33) assert will let me compile

### Environment

Docker nvidia setup with A100

```
clang-18 -v
Ubuntu clang version 18.1.0 (++20240302042158+461274b81d86-1~exp1~20240302162229.64)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda-12.3, version 12.3
```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.