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
There are two paths where FindHIP.cmake is installed: /opt/rocm/lib/cmake/hip/FindHIP.cmake and /opt/rocm/hip/cmake/FindHIP.cmake. In the latter case, _IMPORT_PREFIX gets resolved to /opt/rocm/hip, which indeed contains bin/hipconfig. In the former case though, it gets resolved to /opt/rocm/lib/cmake, which does not, and so find_package(HIP) fails when using this config file.
This is a regression from ROCm 5.2, though I believe that the line in question was always wrong. It broke after this commit. It can be worked around by using the other module by setting -DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake.
The text was updated successfully, but these errors were encountered:
When no environment variables are set, FindHIP.cmake attempts to find the HIP root directory from its installed path:
https://github.com/ROCm-Developer-Tools/HIP/blob/24c0cb92b38688b4db8cf80198752f2e8e03e248/cmake/FindHIP.cmake#L51
https://github.com/ROCm-Developer-Tools/HIP/blob/24c0cb92b38688b4db8cf80198752f2e8e03e248/cmake/FindHIP.cmake#L58-L68
There are two paths where FindHIP.cmake is installed:
/opt/rocm/lib/cmake/hip/FindHIP.cmake
and/opt/rocm/hip/cmake/FindHIP.cmake
. In the latter case,_IMPORT_PREFIX
gets resolved to/opt/rocm/hip
, which indeed containsbin/hipconfig
. In the former case though, it gets resolved to/opt/rocm/lib/cmake
, which does not, and sofind_package(HIP)
fails when using this config file.This is a regression from ROCm 5.2, though I believe that the line in question was always wrong. It broke after this commit. It can be worked around by using the other module by setting
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake
.The text was updated successfully, but these errors were encountered: