Skip to content

Commit

Permalink
Merge pull request #1004 from e10harvey/issue1003
Browse files Browse the repository at this point in the history
Fix nightly build errors in KokkosBlas3_Gemm_impl.hpp
  • Loading branch information
e10harvey authored Jun 14, 2021
2 parents e010406 + 4199e54 commit 0b3bbfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/KokkosKernels_Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@

#if !defined(KOKKOS_ENABLE_CUDA) && !defined(KOKKOS_ENABLE_HIP) && \
defined(KOKKOS_ENABLE_OPENMP)
#if defined(KOKKOS_COMPILER_GNU)
// For clang OpenMP support, see
// https://clang.llvm.org/docs/OpenMPSupport.html#id1
#if defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG)
// GCC 4.8.5 and older do not support #pragma omp simd
#if (KOKKOS_COMPILER_GNU > 485)
// Do not enable when using GCC 7.2.0 + C++17 due to a bug in gcc
#if (KOKKOS_COMPILER_GNU > 485) && !(KOKKOS_COMPILER_GNU == 720 && defined(KOKKOS_ENABLE_CXX17))
#define KOKKOSKERNELS_ENABLE_OMP_SIMD
#endif
// TODO: Check for a clang version that supports #pragma omp simd
#else
// All other Kokkos-supported compilers support it.
#define KOKKOSKERNELS_ENABLE_OMP_SIMD
Expand Down

0 comments on commit 0b3bbfd

Please sign in to comment.