Skip to content

Commit

Permalink
Updated CMAKE_MODULE_PATH for HIP
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
mhilgema-amd authored Dec 20, 2024
1 parent d4f75f7 commit 40b79e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuEST/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 40b79e4

Please sign in to comment.