| MPCXX_SPMD_INITIALIZE(3) | MPCXX_SPMD_INITIALIZE(3) |
#include <mpcxx.h>
void mpcxx_spmd_initialize(int argc, char **argv);
mpcxx_spmd_initialize() function initializes the MTTL-ULT
thread library. All MTTL-related functions must be called after calling
mpcxx_spmd_initialize().
The arguments argc and argv must be the same
as those passed to the main() function.
Unlike mpcxx_initialize(),
mpcxx_spmd_initialize() returns to the main() thread
on every node.
A user-parallel process will be terminated only when exit()
is called on every node. This is not the case for an MPC++ program
initialized using mpcxx_initialize().
mpcxx_spmd_initialize().
Sync and GlobalPtr objects are NOT
initialized until after mpcxx_spmd_initialize() is called.
Those objects in a file scope are also NOT initialized. Further,
automatic objects in the main() function are NOT initialized.
mpcxx_initialize(3)