Skip to content

Commit

Permalink
Fixup deprecated code 3 code path OpenMP::impl_thread_pool_size
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Feb 2, 2023
1 parent 5ea96bc commit 5bb7e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/OpenMP/Kokkos_OpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bool OpenMP::in_parallel(OpenMP const &exec_space) noexcept {

int OpenMP::impl_thread_pool_size() const noexcept {
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_3
return OpenMP::in_parallel(exec_space)
return OpenMP::in_parallel()
? omp_get_num_threads()
: (Impl::t_openmp_instance
? Impl::t_openmp_instance->m_pool_size
Expand Down

0 comments on commit 5bb7e0a

Please sign in to comment.