Skip to content

Commit

Permalink
Updated HIP Bin prefix Path to rocm_path (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindcheru authored Jul 29, 2022
1 parent 037f7bf commit 97d6ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_package(Git REQUIRED)

# Workaround until hcc & hip cmake modules fixes symlink logic in their config files.
# (Thanks to rocBLAS devs for finding workaround for this problem!)
list(APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm)
list(APPEND CMAKE_PREFIX_PATH /opt/rocm /opt/rocm/hip)

# ROCm cmake package
find_package(ROCM 0.7.3 QUIET CONFIG PATHS ${CMAKE_PREFIX_PATH})
Expand Down
4 changes: 2 additions & 2 deletions toolchain-linux.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

if (DEFINED ENV{ROCM_PATH})
set(rocm_bin "$ENV{ROCM_PATH}/hip/bin")
set(rocm_bin "$ENV{ROCM_PATH}/bin")
else()
set(rocm_bin "/opt/rocm/hip/bin")
set(rocm_bin "/opt/rocm/bin")
endif()

set(CMAKE_CXX_COMPILER "${rocm_bin}/hipcc")
Expand Down

0 comments on commit 97d6ef2

Please sign in to comment.