[SYCL][HIP][AMD] Using DPC++ with HIP AMD support in CMake based projects
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
I have a question about using DPC++ with HIP AMD support in CMake based projects. One of the requirements is to have ROCm installed. ROCm contains its own clang compiler. ROCm packages provide CMake config files that rely on the clang compiler, for example, when I do `find_package(rocblas)` the corresponding CMake module does `find_package(hip)`, which adds `clang_rt.builtins-x86_64` library to the link line. The library is supposed to be taken from the clang compiler that is distributed with ROCm. Such behavior may lead to unexpected errors. Also, those modules may add a lot of different flags that are not needed, which may also cause some issues.
So the question is, how DPC++ with HIP AMD support is meant to be used in CMake based projects to avoid mixing different compilers?
The only viable option that I can see now is to implement custom CMake modules for locating all dependencies the project needs to have full control over them.
Contributor guide
Assessment
This issue has not been assessed yet.