diff --git a/core/src/OpenMP/Kokkos_OpenMP_Parallel.hpp b/core/src/OpenMP/Kokkos_OpenMP_Parallel.hpp index ebd586a3b2..f818429d68 100644 --- a/core/src/OpenMP/Kokkos_OpenMP_Parallel.hpp +++ b/core/src/OpenMP/Kokkos_OpenMP_Parallel.hpp @@ -214,10 +214,12 @@ class ParallelFor, public: inline void execute() const { +#ifndef KOKKOS_COMPILER_INTEL if (execute_in_serial(m_iter.m_rp.space())) { exec_range(0, m_iter.m_rp.m_num_tiles); return; } +#endif #ifndef KOKKOS_INTERNAL_DISABLE_NATIVE_OPENMP execute_parallel(); @@ -543,6 +545,7 @@ class ParallelReduce, ReducerType, typename Analysis::Reducer final_reducer( &ReducerConditional::select(m_iter.m_func, m_reducer)); +#ifndef KOKKOS_COMPILER_INTEL if (execute_in_serial(m_iter.m_rp.space())) { const pointer_type ptr = m_result_ptr @@ -560,6 +563,7 @@ class ParallelReduce, ReducerType, return; } +#endif enum { is_dynamic = std::is_same