Skip to content

Commit

Permalink
fixed compilation issue w/num_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Apr 16, 2024
1 parent 4c110e6 commit 83bda5e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libs/core/openshmem_base/src/openshmem_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <hpx/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/resource_partitioner/detail/partitioner.hpp>
#include <hpx/thread.hpp>
#include <hpx/modules/logging.hpp>
#include <hpx/modules/openshmem_base.hpp>
#include <hpx/modules/runtime_configuration.hpp>
Expand Down Expand Up @@ -147,13 +147,10 @@ namespace hpx::util {
//
//segments.resize(hpx::threads::hardware_concurrency() * size());
//

auto& rp = hpx::resource::get_partitioner();

// get thread count
//
openshmem_environment::nthreads_ =
rp.get_num_threads();
hpx::get_worker_thread_num();

// get system page size
//
Expand Down

0 comments on commit 83bda5e

Please sign in to comment.