在cmake 中启用 enable_language(HIP) 时, dtk-22.10 的版本会报如下的错误:
-- Detecting HIP compiler ABI info
CMake Error at /public/share/ghfund2_a27/apps/python/3.11.0-gcc9/lib/python3.11/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "Findamd_comgr.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"amd_comgr", but CMake did not find one.
Could not find a package configuration file provided by "amd_comgr" with
any of the following names:
amd_comgrConfig.cmake
amd_comgr-config.cmake
Add the installation prefix of "amd_comgr" to CMAKE_PREFIX_PATH or set
"amd_comgr_DIR" to a directory containing one of the above files. If
"amd_comgr" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/public/software/compiler/rocm/dtk-22.10/lib/cmake/hip-lang/hip-lang-config.cmake:88 (find_dependency)
/public/share/ghfund2_a27/apps/python/3.11.0-gcc9/lib/python3.11/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeHIPInformation.cmake:146 (find_package)
/public/home/ghfund2_a27/codes/qiskit-aer/_skbuild/linux-x86_64-3.11/cmake-build/CMakeFiles/CMakeScratch/TryCompile-r5WdAL/CMakeLists.txt:5 (project)
CMake Error at /public/share/ghfund2_a27/apps/python/3.11.0-gcc9/lib/python3.11/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
/public/share/ghfund2_a27/apps/python/3.11.0-gcc9/lib/python3.11/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeTestHIPCompiler.cmake:29 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:46 (enable_language
而在 /public/software/compiler/rocm/dtk-22.10/lib/cmake/ 下的确没有 amd_comgr 文件夹。而 dtk-22.04.2 版本 则月相应的目录 /public/software/compiler/rocm/dtk-22.04.2/lib/cmake/amd_comgr 。 目前一直卡在这里。

暂无数据