SCORE_INITIALIZE(3) | SCORE_INITIALIZE(3) |
#include <score.h>
void score_initialize( int argc, char **argv );
int score_num_pmnet;
pmContext **score_pmnet;
int score_num_host;
int score_self_host;
int score_num_proc;
int score_self_proc;
int score_num_node;
int score_self_node;
score_initialize()
initializes the parallel process execution
environment for a user process. score_pmnet
is initialized to
contain a set of pmContext
s.
The number of pmContext
s is set in the
score_num_pmnet
variable. The user parallel program can
communicate with other nodes using the pmContext
(s)
stored in score_pmnet
. The device type of the
pmContext
is always PM_COMPOSITE
, so that
PM communication operation is mutually exclusive on a SMP host.
The number of hosts and host number (ID) in the parallel process are set in
score_num_host
and score_self_host
,
respectively. The number of processes in the host where the user
program is running and its identification are set in
score_num_proc
and score_self_proc
,
respectively. The number of nodes and node identification of the
parallel process are set in score_num_node
and
score_self_node
, respectively.
score_initialize()
.
PM
(3)