From e734acbca0061917e84a8c06b50f0d987ece4a7f Mon Sep 17 00:00:00 2001 From: Daine McNiven <51674140+daineAMD@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:36:05 -0600 Subject: [PATCH] Remove workaround for amdgpu_targets for static builds. (#882) (#884) --- CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 977df052..ffe96a82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,12 +92,6 @@ if(DEFINED USE_CUDA) endif() # Hip headers required of all clients; clients use hip to allocate device memory -if( NOT BUILD_SHARED_LIBS ) - # potentially a bug in hip, if AMDGPU_TARGETS is not set, it uses amdgpu-arch to find - # archs on the machine, but doesn't work with static builds - # trying this workaround out for now - set (AMDGPU_TARGETS "gfx000") -endif() find_package( hip CONFIG PATHS ${HIP_DIR} ${ROCM_PATH} /opt/rocm ) # support for cuda backend with hip < 6.0