Skip to content

Commit

Permalink
src/KokkosKernels_Macros.hpp: Skip pragma omp simd for gcc 7.2.0 + C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Jun 2, 2021
1 parent cda3f87 commit 4199e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/KokkosKernels_Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
// 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
Expand Down

0 comments on commit 4199e54

Please sign in to comment.