I was trying to run the example openmp-helloworld with HIP 3.9.1 and an error occurred.
The compiler I was using is not in the default installation path /opt/rocm so I commented out the compiler setting statements in the original CMakeLists.txt. It seems like the target hip::device cmake found is still from the default installation of ROCm. This target comes with a flag -hc which breaks the build.
I was trying to run the example
openmp-helloworld
with HIP 3.9.1 and an error occurred.The compiler I was using is not in the default installation path
/opt/rocm
so I commented out the compiler setting statements in the original CMakeLists.txt. It seems like the targethip::device
cmake found is still from the default installation of ROCm. This target comes with a flag-hc
which breaks the build.