Compiler error with gcc+hip
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 296
- Forks
- 66
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 1
Description
Hi,
Is it possible to split the hip compiler from the wrapper? The current hip build seems to only support clang.
https://github.com/LLNL/blt/blob/29eecef7652728ec37d9fe0b7d7f41e3184ac7eb/cmake/thirdparty/BLTSetupHIP.cmake#L83-L87
I'm trying to compile Ascent on Frontier using PrgEnv-gnu, but the gcc doesn't support hip yet.
```
g++: error: unrecognized command-line option '--rocm-path=/opt/rocm-5.3.0'
```
https://github.com/Alpine-DAV/ascent/issues/1192
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at cmake/thirdparty/BLTSetupHIP.cmake lines 83-87 and inspect how the HIP compiler and wrapper are configured. Reproduce the Ascent/Frontier PrgEnv-gnu command described in the issue; done means the HIP setup no longer passes the unsupported --rocm-path option to GCC while retaining the existing clang configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers, hpc
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100