forked from LLNL/Caliper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework mpi module initialization (LLNL#281)
* Rework mpi submodule initialization * Remove obsolete init hook list * Fix mpi log prefix setup
- Loading branch information
Showing
11 changed files
with
110 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) 2020, Lawrence Livermore National Security, LLC. | ||
// See top-level LICENSE file for details. | ||
|
||
#include "caliper/caliper-config.h" | ||
|
||
#include "../services/Services.h" | ||
|
||
namespace cali | ||
{ | ||
|
||
#ifdef CALIPER_HAVE_MPI | ||
namespace mpi | ||
{ | ||
|
||
extern void setup_mpi(); | ||
extern void add_mpi_controllers_and_services(); | ||
|
||
} | ||
#endif | ||
|
||
void add_submodule_controllers_and_services() | ||
{ | ||
services::add_default_service_specs(); | ||
#ifdef CALIPER_HAVE_MPI | ||
mpi::add_mpi_controllers_and_services(); | ||
#endif | ||
} | ||
|
||
void init_submodules() | ||
{ | ||
#ifdef CALIPER_HAVE_MPI | ||
mpi::setup_mpi(); | ||
#endif | ||
add_submodule_controllers_and_services(); | ||
} | ||
|
||
} // namespace cali |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2020, Lawrence Livermore National Security, LLC. | ||
// See top-level LICENSE file for details. | ||
|
||
#include "caliper/caliper-config.h" | ||
|
||
#include "../services/Services.h" | ||
|
||
namespace cali | ||
{ | ||
|
||
void add_submodule_controllers_and_services() | ||
{ | ||
services::add_default_service_specs(); | ||
} | ||
|
||
void init_submodules() | ||
{ | ||
add_submodule_controllers_and_services(); | ||
} | ||
|
||
} // namespace cali |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters