Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call concurrency(), not impl_thread_pool_size() #1666

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions sparse/impl/KokkosSparse_spmv_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,21 +512,7 @@ static void spmv_beta_transpose(typename YVector::const_value_type& alpha,
#if defined(KOKKOS_ENABLE_SERIAL) || defined(KOKKOS_ENABLE_OPENMP) || \
defined(KOKKOS_ENABLE_THREADS)
{
int impl_thread_pool_size(0);
#if defined(KOKKOS_ENABLE_SERIAL)
if (std::is_same<execution_space, Kokkos::Serial>::value)
impl_thread_pool_size = 1;
#endif
#if defined(KOKKOS_ENABLE_OPENMP)
if (std::is_same<execution_space, Kokkos::OpenMP>::value)
impl_thread_pool_size = Kokkos::OpenMP::impl_thread_pool_size();
#endif
#if defined(KOKKOS_ENABLE_THREADS)
if (std::is_same<execution_space, Kokkos::Threads>::value)
impl_thread_pool_size = Kokkos::Threads::impl_thread_pool_size();
#endif

if (impl_thread_pool_size == 1) {
if (execution_space().concurrency() == 1) {
/// serial impl
typedef typename AMatrix::non_const_value_type value_type;
typedef Kokkos::Details::ArithTraits<value_type> ATV;
Expand Down