Set ROCM_PATH correctly

This commit is contained in:
Daniele 2024-06-02 16:43:39 +00:00 committed by GitHub
parent 27d1431463
commit c90580438d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -551,9 +551,11 @@ if (LLAMA_HIPBLAS)
else() else()
set(ROCM_PATH /opt/rocm) set(ROCM_PATH /opt/rocm)
endif() endif()
else()
set(ROCM_PATH $ENV{ROCM_PATH})
endif() endif()
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH}) list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH})
list(APPEND CMAKE_PREFIX_PATH "$ENV{ROCM_PATH}/lib64/cmake") list(APPEND CMAKE_PREFIX_PATH "${ROCM_PATH}/lib64/cmake")
# CMake on Windows doesn't support the HIP language yet # CMake on Windows doesn't support the HIP language yet
if(WIN32) if(WIN32)