SCORE_INITIALIZE(3)
SCORED LIBRARY (C)
SCORE_INITIALIZE(3)
名前
score_initialize - ユーザプロセスの初期化

形式
#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() はユーザプロセスの並列プロセス実行環境を 初期化します。 score_pmnetpmContexts の集合を含むために 初期化されます。 pmContext の数は score_num_pmnet 変数によって 設定されます。 ユーザの並列プログラムは score_pmnet にしまっておかれた pmContext を使って他のノードと通信することが出来ます。 pmContext のデバイスタイプは常に PM_COMPOSITE です。 それで SMP ホスト上での PM 通信操作は 相互に排他的です。

並列プロセスでのホストの数とホスト番号 (ID) はそれぞれ score_num_hostscore_self_host に設定されます。 ユーザ プログラムが実行されているホスト上でのプロセスの数と、 その ID は それぞれ score_num_procscore_self_proc に設定されます。 並列プロセスのノード数とノード ID はそれぞれ score_num_nodescore_self_node に設定されます。

注意
score_initialize() を呼ぶ前に標準出力に出力することは許されません。

関連項目
PM(3)

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