Skip to content

Commit

Permalink
Only set KOKKOS_ARCH_AMD_GPU if a AMD GPU architecture is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Aug 17, 2023
1 parent 04d5c55 commit 682ca69
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 @@ -994,8 +994,8 @@ ENDFOREACH()

#Regardless of version, make sure we define the general architecture name
FOREACH(ARCH IN LISTS SUPPORTED_AMD_ARCHS)
SET(KOKKOS_ARCH_AMD_GPU ON)
IF (KOKKOS_ARCH_${ARCH})
SET(KOKKOS_ARCH_AMD_GPU ON)
STRING(REGEX MATCH "(VEGA)" IS_VEGA ${ARCH})
IF(IS_VEGA)
SET(KOKKOS_ARCH_VEGA ON)
Expand Down

0 comments on commit 682ca69

Please sign in to comment.