You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to compile this with hsa headers located in /opt/rocm/include/hsa.
It will not compile, failing to find said headers. This is due to clr/hipamd/src/hip_embed_pch.sh, which forces a bunch of hard-coded compiles instead of using a cmakelists file. It ignores -DCMAKE_CXX_FLAGS, forgetting to pass them on.
It's missing options to set where ROCM headers are or ignores it entirely when called via cmake. Either way, does not compile out of the box. Variables are forgotten and the thing just assumes the defaults are defined and work (which they aren't, paths to libraries can vary!)
Operating System
Anything linux that is not ubuntu 24
CPU
Any CPU
GPU
AMD Instinct MI300X, AMD Instinct MI300A, AMD Instinct MI250X, AMD Instinct MI250, AMD Instinct MI210, AMD Instinct MI100, AMD Radeon Pro W7900, AMD Radeon Pro W6800, AMD Radeon Pro V620, AMD Radeon Pro VII, AMD Radeon RX 7900 XTX, AMD Radeon RX 7900 XT, AMD Radeon VII
ROCm Version
ROCm 6.1.0, ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
This is how to reproduce, assuming we have the dependencies;
Note; variable values;
Note 2: Assuming llvm,roctracer, rocprofiler, hsaprofile, rocr-runtime, rocprofiler-register,rocm-runtime-libs are already compiled.
It looks like there is an issue with the compiler looking inside of the wrong directory for the hsa related header files. It may be related to the compiler trying to look for hsa/hsa.h within HSA_PATH so it may be trying to include hsa/hsa/hsa.h instead of hsa/hsa.h.
I was however able to build HIP from source instead by following the instructions available here: Build HIP From Source. One thing to mention is that it is missing the dependency for llvm so run: sudo apt install rocm-llvm-dev. Could you give these instructions a try and let me know if you run into any issues? Thanks!
Problem Description
Try to compile this with hsa headers located in /opt/rocm/include/hsa.
It will not compile, failing to find said headers. This is due to clr/hipamd/src/hip_embed_pch.sh, which forces a bunch of hard-coded compiles instead of using a cmakelists file. It ignores -DCMAKE_CXX_FLAGS, forgetting to pass them on.
It's missing options to set where ROCM headers are or ignores it entirely when called via cmake. Either way, does not compile out of the box. Variables are forgotten and the thing just assumes the defaults are defined and work (which they aren't, paths to libraries can vary!)
Operating System
Anything linux that is not ubuntu 24
CPU
Any CPU
GPU
AMD Instinct MI300X, AMD Instinct MI300A, AMD Instinct MI250X, AMD Instinct MI250, AMD Instinct MI210, AMD Instinct MI100, AMD Radeon Pro W7900, AMD Radeon Pro W6800, AMD Radeon Pro V620, AMD Radeon Pro VII, AMD Radeon RX 7900 XTX, AMD Radeon RX 7900 XT, AMD Radeon VII
ROCm Version
ROCm 6.1.0, ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
This is how to reproduce, assuming we have the dependencies;
Note; variable values;
Note 2: Assuming llvm,roctracer, rocprofiler, hsaprofile, rocr-runtime, rocprofiler-register,rocm-runtime-libs are already compiled.
Expected output: compilation. Got output;
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: