Skip to content

Commit

Permalink
Fix amdclang++ compilation (kokkos#6857)
Browse files Browse the repository at this point in the history
* Fix amdclang++ compilation

* Add guards for hipcc
  • Loading branch information
tpadioleau committed Mar 5, 2024
1 parent 52c41e6 commit 99c7e1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ IF (KOKKOS_ENABLE_HIP)
COMPILER_SPECIFIC_FLAGS(
DEFAULT -fgpu-rdc
)
IF (NOT KOKKOS_CXX_COMPILER_ID STREQUAL HIPCC)
COMPILER_SPECIFIC_LINK_OPTIONS(
DEFAULT --hip-link
)
ENDIF()
ELSE()
COMPILER_SPECIFIC_FLAGS(
DEFAULT -fno-gpu-rdc
Expand Down

0 comments on commit 99c7e1b

Please sign in to comment.