From d13b2f38c9b8c2a1ad07a1ef603d5b2c356b6d7e Mon Sep 17 00:00:00 2001 From: Christopher Millette <63608002+cgmillette@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:45:24 -0700 Subject: [PATCH] Update CMakeLists.txt Test to see if linking issues fixed --- CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bb14aef..eced8d86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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