Skip to content

Commit

Permalink
Remove workaround for amdgpu_targets for static builds. (#882) (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
daineAMD authored Jun 27, 2024
1 parent c8c7231 commit e734acb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e734acb

Please sign in to comment.