Skip to content

Commit

Permalink
fixed formatting issues; found an issue in a gasnet-init method
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaylor committed Jul 14, 2023
1 parent eefa3ae commit 88b15c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions libs/core/gasnet_base/src/gasnet_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ namespace hpx::util {
// create a number of segments equal to the number of hardware
// threads per machine (locality)
//
//segments.resize(hpx::threads::hardware_concurrency() * size());
//
gasnet_environment::segments = new gasnet_seginfo_t[size()];
gasnet_environment::segment_mutex = new hpx::mutex[size()];

Expand Down Expand Up @@ -402,14 +404,6 @@ namespace hpx::util {
}

this_rank = rank();
// need to figure this out to improve efficiency; create
// a number of segments equal to the number of hardware
// threads per machine (locality)
//
//segments.resize(hpx::threads::hardware_concurrency() * size());
//
gasnet_environment::segments = new gasnet_seginfo_t[size()];
gasnet_environment::segment_mutex = new hpx::mutex[size()];

#if defined(HPX_HAVE_NETWORKING)
if (this_rank == 0)
Expand Down
2 changes: 1 addition & 1 deletion libs/core/version/src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

#if (defined(HPX_HAVE_NETWORKING) && defined(HPX_HAVE_PARCELPORT_GASNET)) || \
defined(HPX_HAVE_MODULE_GASNET_BASE)
#include<gasnet.h>
#include <gasnet.h>
#endif

#include <hwloc.h>
Expand Down

0 comments on commit 88b15c5

Please sign in to comment.