Skip to content

Commit

Permalink
Rename internal functions in SLATE singletons.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgates3 committed Jan 11, 2025
1 parent b2b0d0a commit daf4122
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/slate/config.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ public:
/// @see bool gpu_aware_mpi()
static bool value()
{
return get().gpu_aware_mpi_;
return instance().gpu_aware_mpi_;
}

/// @see void gpu_aware_mpi( bool )
static void value( bool val )
{
get().gpu_aware_mpi_ = val;
instance().gpu_aware_mpi_ = val;
}

private:
/// @return GPU_Aware_MPI singleton.
/// Uses thread-safe Scott Meyers' singleton to query on first call only.
static GPU_Aware_MPI& get()
static GPU_Aware_MPI& instance()
{
static GPU_Aware_MPI singleton;
return singleton;
static GPU_Aware_MPI instance_;
return instance_;
}

/// Constructor checks $SLATE_GPU_AWARE_MPI.
Expand Down

0 comments on commit daf4122

Please sign in to comment.