Skip to content

Commit

Permalink
OpenMP: Add OpenMP link flag for Cray compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkumar Gayatri committed Sep 13, 2024
1 parent b5509ab commit de3eea7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,14 @@ IF(KOKKOS_ARCH_INTEL_PVC)
CHECK_MULTIPLE_INTEL_ARCH()
ENDIF()

IF (KOKKOS_ENABLE_OPENMP)
IF(KOKKOS_CLANG_IS_CRAY)
COMPILER_SPECIFIC_LINK_OPTIONS(
Clang -fopenmp
)
ENDIF()
ENDIF()

IF (KOKKOS_ENABLE_OPENMPTARGET)
SET(CLANG_CUDA_ARCH ${KOKKOS_CUDA_ARCH_FLAG})
IF (CLANG_CUDA_ARCH)
Expand Down

0 comments on commit de3eea7

Please sign in to comment.