Skip to content

Commit

Permalink
Build libhip_hcc.so as a fat binary
Browse files Browse the repository at this point in the history
Change-Id: Ie4f334d8f9576edf5df0f917f72083d7842eb193
  • Loading branch information
mangupta committed Feb 10, 2017
1 parent 28871dd commit 75133e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ if(HIP_PLATFORM STREQUAL "hcc")
src/math_functions.cpp)

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L${HCC_HOME}/lib -lmcwamp -Wl,-Bsymbolic -Wl,-rpath ${HCC_HOME}/lib")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --amdgpu-target=gfx701 --amdgpu-target=gfx801 --amdgpu-target=gfx802 --amdgpu-target=gfx803")
add_library(hip_hcc SHARED ${SOURCE_FILES_RUNTIME})
target_link_libraries(hip_hcc c++ c++abi hc_am)
add_library(hip_hcc_static STATIC ${SOURCE_FILES_RUNTIME})
Expand Down

0 comments on commit 75133e8

Please sign in to comment.