MPCXX_SPMD_INITIALIZE(3)
MTTL-ULT LIBRARY (C)
MPCXX_SPMD_INITIALIZE(3)
NAME
mpcxx_spmd_initialize - initialize MTTL-ULT thread library

SYNOPSIS
#include <mpcxx.h>

void mpcxx_spmd_initialize(int argc, char **argv);

DESCRIPTION
The 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().

NOTES
Do not print out messages to standard output before calling mpcxx_spmd_initialize().

BUGS
All 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.

SEE ALSO
MPC++ Getting Started, MPC++ Multi-Threaded Template Library, mpcxx_initialize(3)

CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.