Set ROCM_PATH correctly
This commit is contained in:
parent
27d1431463
commit
c90580438d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue