Skip to content

Commit

Permalink
Merge pull request #478 from ROCm/cgmillette-patch-2
Browse files Browse the repository at this point in the history
Fixes large binary rpath change failure
  • Loading branch information
cgmillette authored Dec 18, 2024
2 parents fc3a273 + d13b2f3 commit ada4c03
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,11 @@ endif()
include(CheckCXXCompilerFlag)
if (BUILD_OFFLOAD_COMPRESS)
check_cxx_compiler_flag("--offload-compress" CXX_COMPILER_SUPPORTS_OFFLOAD_COMPRESS)
if (NOT CXX_COMPILER_SUPPORTS_OFFLOAD_COMPRESS)
#TODO: Remove next line when rocm-cmake fix is available
set(CMAKE_NO_BUILTIN_CHRPATH ON)
elseif(CXX_COMPILER_SUPPORTS_OFFLOAD_COMPRESS)
set(CMAKE_NO_BUILTIN_CHRPATH OFF)
endif()
endif()

# TODO: Remove next line when rocm-cmake fix is available
# Currently fixes linking issues with large executables
set(CMAKE_NO_BUILTIN_CHRPATH ON)

# Variable GPU_TARGET must be a cached variable and must be specified before calling find_package(hip)
# This is because hip-config.cmake sets --offload-arch via GPU_TARGET cached variable __after__ setting
Expand Down

0 comments on commit ada4c03

Please sign in to comment.