MPCXX_INITIALIZE(3) | MPCXX_INITIALIZE(3) |
#include <mpcxx.h>
void mpcxx_initialize(int argc, char **argv);
mpcxx_initialize()
function initializes the MTTL-ULT thread
library. All MTTL-related functions must be called after calling
mpcxx_initialize()
.
The arguments argc
and argv
must be the same
as those passed to the main()
function.
Only the thread on node 0 will return from the call to
mpcxx_initialize()
. The other threads will just wait for
messages from node 0.
When a thread calls the exit()
function, the entire parallel
process will be terminated. This is not the case for an MPC++ program
initialized using mpcxx_spmd_initialize()
.
mpcxx_initialize()
.
Sync
and GlobalPtr
objects are NOT
initialized until after mpcxx_initialize()
is called.
Those objects in a file scope are also NOT initialized. Further,
automatic objects in the main()
function are NOT initialized.
mpcxx_spmd_initialize
(3)