在 cmake 中使用 find_package(hip),报错信息如下:
CMake Error at /public/software/compiler/rocm/dtk-21.10.1/lib/cmake/hip/hip-targets.cmake:82 (message):
The imported target "hip::galaxyhip" references the file
"/public/software/compiler/rocm/dtk-22.04.1/hip/lib/libgalaxyhip.so.4.3.22042.877-eb6bfe3"
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
"/public/software/compiler/rocm/dtk-21.10.1/lib/cmake/hip/hip-targets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/public/software/compiler/rocm/dtk-21.10.1/lib/cmake/hip/hip-config.cmake:138 (include)
CMakeLists.txt:34 (find_package)
另外, dtk-22也是有报错,请问如何解决。

暂无数据
您好,可以换一个低版本的cmake试一下,或者不用cmake