#include <src/vt/collective/collective_ops.h>
template<runtime:: RuntimeInstType instance = collective_default_inst>
CollectiveAnyOps struct
Public static functions
-
static auto initialize(int& argc,
char**& argv,
bool is_interop = false,
MPI_Comm* comm = nullptr,
arguments::
AppConfig const* appConfig = nullptr, bool print_startup_banner = true) -> RuntimePtrType - Initialize VT.
-
static auto initialize(int& argc,
char**& argv,
PhysicalResourceType const,
bool is_interop = false,
MPI_Comm* comm = nullptr,
arguments::
AppConfig const* appConfig = nullptr) -> RuntimePtrType -
static auto initializePreconfigured(std::unique_ptr<StartupConfig> startup_config,
MPI_Comm* comm = nullptr,
arguments::
AppConfig const* app_config = nullptr, bool print_startup_banner = true) -> RuntimePtrType - Initialize a VT runtime with arguments preconfigured.
- static void finalize(RuntimePtrType in_rt = nullptr)
- static void scheduleThenFinalize(RuntimePtrType in_rt = nullptr)
- static void setCurrentRuntimeTLS(RuntimeUnsafePtrType in_rt = nullptr)
- static void abort(std::string const str = "", ErrorCodeType const code = 0)
- static void output(std::string const str = "", ErrorCodeType const code = 1, bool error = false, bool decorate = true, bool formatted = false, bool abort_out = false)
Function documentation
template<runtime:: RuntimeInstType instance>
static RuntimePtrType vt:: CollectiveAnyOps<instance>:: initialize(int& argc,
char**& argv,
bool is_interop = false,
MPI_Comm* comm = nullptr,
arguments:: AppConfig const* appConfig = nullptr,
bool print_startup_banner = true)
Initialize VT.
Parameters | |
---|---|
argc in | (to modify) |
argv in | (to modify) |
is_interop in | use interop mode (don't initialize MPI) |
comm in | optional communicator |
appConfig | |
print_startup_banner in | (optional) whether to print startup banner |
Returns | runtime pointer |
template<runtime:: RuntimeInstType instance>
static RuntimePtrType vt:: CollectiveAnyOps<instance>:: initializePreconfigured(std::unique_ptr<StartupConfig> startup_config,
MPI_Comm* comm = nullptr,
arguments:: AppConfig const* app_config = nullptr,
bool print_startup_banner = true)
Initialize a VT runtime with arguments preconfigured.
Parameters | |
---|---|
startup_config in | startup config returned from preconfigure |
comm in | the communicator for VT to use |
app_config in | the app config for overriding the config |
print_startup_banner in | (optional) whether to print startup banner |
Returns | the runtime pointer |