Skip to content

Commit

Permalink
Add search paths for assembler used in hcc (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 authored and Daniel Lowell committed Jan 28, 2020
1 parent 8e096a4 commit b4676d2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,15 @@ endif()
# Online assembler
find_program(MIOPEN_AMDGCN_ASSEMBLER
NAMES clang
PATHS ${MIOPEN_AMDGCN_ASSEMBLER_PATH} ${CMAKE_INSTALL_PREFIX}
PATH_SUFFIXES /opencl/bin/x86_64
PATHS
${MIOPEN_AMDGCN_ASSEMBLER_PATH}
/opt/rocm
/opt/rocm/hcc
${CMAKE_INSTALL_PREFIX}
${CMAKE_INSTALL_PREFIX}/hcc
PATH_SUFFIXES
/opencl/bin/x86_64
/bin
NO_DEFAULT_PATH
)
message(STATUS "AMDGCN assembler: ${MIOPEN_AMDGCN_ASSEMBLER}")
Expand Down

0 comments on commit b4676d2

Please sign in to comment.