SCORE_INITIALIZE(3)
SCORED LIBRARY (C)
SCORE_INITIALIZE(3)
NAME
score_initialize - initialize a user process

SYNOPSIS
#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;

DESCRIPTION
score_initialize() initializes the parallel process execution environment for a user process. score_pmnet is initialized to contain a set of pmContexts. The number of pmContexts 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.

NOTE
Output to standard output is NOT allowed prior to calling score_initialize().

SEE ALSO
PM(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.