From 40b79e4ea62b5e2073fcde95c86a610960dc8086 Mon Sep 17 00:00:00 2001 From: Martin Hilgeman Date: Fri, 20 Dec 2024 15:36:06 +0100 Subject: [PATCH] Updated CMAKE_MODULE_PATH for HIP ROCm 6.x has cmake modules installed under ${ROCM_PATH}/lib/cmake. This fixes the cmake configure error: -- Found HIP: 6.2.41134 -- HIP PATH: /opt/COE_modules/rocm/rocm-6.2.2 CMake Error at CMakeLists.txt:380 (hip_add_library): Unknown CMake command "hip_add_library". --- QuEST/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuEST/CMakeLists.txt b/QuEST/CMakeLists.txt index 0ed65f97..af197ebf 100644 --- a/QuEST/CMakeLists.txt +++ b/QuEST/CMakeLists.txt @@ -132,7 +132,7 @@ if (GPUACCELERATED) endif() if(EXISTS "${HIP_PATH}") - set(CMAKE_MODULE_PATH "${HIP_PATH}/cmake" ${CMAKE_MODULE_PATH}) + set(CMAKE_MODULE_PATH "${HIP_PATH}/lib/cmake/hip" ${CMAKE_MODULE_PATH}) find_package(HIP REQUIRED) message(STATUS "Found HIP: " ${HIP_VERSION}) message(STATUS "HIP PATH: " ${HIP_PATH})