Skip to content

Commit

Permalink
Fix CMake deduplication issue when linking with hip::device
Browse files Browse the repository at this point in the history
Fixes #5898

Signed-off-by: Etienne Malaboeuf <eti.malaboeuf@gmail.com>
  • Loading branch information
etiennemlb committed Feb 22, 2023
1 parent 948c6c6 commit dff272f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ GLOBAL_SET(KOKKOS_AMDGPU_OPTIONS)
IF(KOKKOS_ENABLE_HIP)
SET(AMDGPU_ARCH_FLAG "--offload-arch")
IF(NOT KOKKOS_CXX_COMPILER_ID STREQUAL HIPCC)
GLOBAL_APPEND(KOKKOS_AMDGPU_OPTIONS -x hip)
GLOBAL_APPEND(KOKKOS_AMDGPU_OPTIONS -xhip)
IF(DEFINED ENV{ROCM_PATH})
GLOBAL_APPEND(KOKKOS_AMDGPU_OPTIONS --rocm-path=$ENV{ROCM_PATH})
ENDIF()
Expand Down

0 comments on commit dff272f

Please sign in to comment.