Skip to content

Commit

Permalink
Update kokkos_arch.cmake
Browse files Browse the repository at this point in the history
Disable NEON on ARM if CUDA is enabled since nvc can not compile that.
  • Loading branch information
diehlpk authored Jul 25, 2024
1 parent be4c315 commit 089f2a8
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 @@ -550,6 +550,11 @@ IF (KOKKOS_CXX_HOST_COMPILER_ID STREQUAL NVHPC)
SET(KOKKOS_ARCH_AVX512XEON OFF)
ENDIF()

# FIXME_NVHPC nvc++ doesn't seem to support Arm Neon.
IF(KOKKOS_CXX_COMPILER_ID STREQUAL NVIDIA)
SET(KOKKOS_ARCH_ARM_NEON OFF)
ENDIF()

IF (NOT KOKKOS_COMPILE_LANGUAGE STREQUAL CUDA)
IF (KOKKOS_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE)
COMPILER_SPECIFIC_FLAGS(
Expand Down

0 comments on commit 089f2a8

Please sign in to comment.