#include <APPSPACK_GCI.hpp>
Definition at line 62 of file APPSPACK_GCI.hpp.
Static Public Member Functions | |
Initialization and exit | |
int | init () |
For PVM, returns PVM taskid. Otherwise, throws an error. | |
int | init (int &argc, char **&argv) |
For PVM or MPI, returns process rank. Otherwise, throws an error. | |
void | catchOutput (bool flag=true) |
For PVM, set this process to catch all the output. Otherwise, prints a warning. | |
int | spawn (const string name, const string host, char *argv[]=NULL) |
For PVM, spawn a task. Otherwise, throws an error. | |
void | kill (int tid) |
For PVM, kills the specified taskid. Otherwise, prints a warning. | |
void | exit () |
Exit the communications interface for both PVM and MPI. Otherwise, prints a warning. | |
Status and notify | |
int | getMyTid () |
Return PVM taskid or MPI rank. | |
int | getNumProcs () |
Return the number of processes. | |
bool | isOrphan () |
For PVM, returns true is the process was spawned from the command line or the PVM console. Otherwise, returns false if it was spawned from another PVM process. | |
int | parent () |
For PVM, returns the taskid of the parent. */. | |
int | tidToHost (int tid) |
For PVM, returns the hostid of the given task. */. | |
void | notify (int msgtag, int taskid) |
For PVM, sets notify to send a message with the given msgtag with the task specified by taskid exits. The body of the message will contain the taskid. | |
void | notify (int msgtag) |
For PVM, sets notify to send a message with the given msgtag whenever any host dies. The body of the message will contain the hostid. | |
Send, Recv, and Related Commands | |
void | initSend () |
For PVM or MPI, initialize send (must be called before pack and send). | |
void | send (int msgtag, int taskid) |
For PVM or MPI, send a message with the specified message tag to the specified task. | |
void | broadcast (int msgtag, const vector< int > &taskid) |
bool | recv (int msgtag=-1, int taskid=-1) |
For PVM or MPI, blocking receive. | |
bool | nrecv (int msgtag=-1, int taskid=-1) |
For PVM or MPI, non-blocking receive. | |
bool | probe (int msgtag=-1, int taskid=-1) |
For PVM or MPI, non-blocking probe. | |
void | bprobe (int msgtag=-1, int taskid=-1) |
For MPI, blocking probe. | |
void | bufinfo (int &msgtag, int &taskid) |
Pack and Unpack primitives. | |
void | pack (int i) |
Pack an integer. | |
void | pack (char i) |
Pack a char. | |
void | pack (double d) |
Pack a double. | |
void | pack (float f) |
Pack a float. | |
void | pack (bool b) |
Pack a bool. | |
void | pack (const string s) |
Pack a string. | |
void | pack (const vector< int > &v) |
Pack integer vector. | |
void | pack (const vector< double > &v) |
Pack double vector. | |
void | pack (const vector< float > &v) |
Pack float vector. | |
void | pack (const vector< vector< double > > &v) |
Pack a vector of vectors of doubles. | |
void | pack (const vector< string > &v) |
Pack a vector of string. | |
void | pack (const vector< bool > &v) |
Pack a vector of bools. | |
void | pack (int length, const char *array) |
Pack a char array. | |
void | pack (int length, const int *array) |
Pack an integer array. | |
void | pack (int length, const double *array) |
Pack a double array. | |
void | pack (int length, const float *array) |
Pack a float array. | |
void | unpack (int &i) |
Unpack an integer. | |
void | unpack (char &c) |
Unpack a char. | |
void | unpack (double &d) |
Unpack a double. | |
void | unpack (float &f) |
Unpack a float. | |
void | unpack (bool &b) |
Unpack a book. | |
void | unpack (string &s) |
Unpack a string. | |
void | unpack (vector< int > &v) |
Unpack a vector of integers. | |
void | unpack (vector< double > &v) |
Unpack a vector of doubles. | |
void | unpack (vector< vector< double > > &v) |
Unpack a vector of a vector of doubles. | |
void | unpack (vector< string > &v) |
Unpack a vector of strings. | |
void | unpack (vector< bool > &v) |
Unpack a vector of bools. | |
void | unpack (int &length, char *&array) |
Unpack a char array. | |
void | unpack (int &length, int *&array) |
Unpack an integer array. | |
void | unpack (int &length, double *&array) |
Unpack a double array. | |
void | unpack (int &length, float *&array) |
Unpack a float array. | |
Host Information | |
int | resetHostInfo () |
For PVM, reset host information by asking PVM to update hostp - the data structure that contains the host information. Return the number of hosts. | |
int | getHostTid (int i) |
For PVM. get the hostid of the i-th host. | |
int | getHostSpeed (int i) |
For PVM,get the speed of the i-th host. | |
char * | getHostName (int i) |
For PVM, get a pointer to name of the i-th host. |
|
For PVM, returns PVM taskid. Otherwise, throws an error. Definition at line 73 of file APPSPACK_GCI.cpp. Referenced by main(). |
|
For PVM or MPI, returns process rank. Otherwise, throws an error. Definition at line 80 of file APPSPACK_GCI.cpp. References getMyTid(). |
|
For PVM, set this process to catch all the output. Otherwise, prints a warning. Definition at line 171 of file APPSPACK_GCI.cpp. |
|
For PVM, spawn a task. Otherwise, throws an error. Definition at line 196 of file APPSPACK_GCI.cpp. |
|
For PVM, kills the specified taskid. Otherwise, prints a warning. Definition at line 270 of file APPSPACK_GCI.cpp. |
|
Exit the communications interface for both PVM and MPI. Otherwise, prints a warning. Definition at line 300 of file APPSPACK_GCI.cpp. Referenced by main(). |
|
Return PVM taskid or MPI rank. Definition at line 354 of file APPSPACK_GCI.cpp. Referenced by init(). |
|
Return the number of processes. Definition at line 395 of file APPSPACK_GCI.cpp. Referenced by main(), and APPSPACK::Executor::MPI::MPI(). |
|
For PVM, returns true is the process was spawned from the command line or the PVM console. Otherwise, returns false if it was spawned from another PVM process. Definition at line 420 of file APPSPACK_GCI.cpp. |
|
For PVM, returns the taskid of the parent. */. Definition at line 450 of file APPSPACK_GCI.cpp. |
|
For PVM, returns the hostid of the given task. */. Definition at line 486 of file APPSPACK_GCI.cpp. |
|
For PVM, sets notify to send a message with the given msgtag with the task specified by taskid exits. The body of the message will contain the taskid. Definition at line 515 of file APPSPACK_GCI.cpp. |
|
For PVM, sets notify to send a message with the given msgtag whenever any host dies. The body of the message will contain the hostid. Definition at line 546 of file APPSPACK_GCI.cpp. |
|
For PVM or MPI, initialize send (must be called before pack and send). Definition at line 582 of file APPSPACK_GCI.cpp. Referenced by main(), and APPSPACK::Executor::MPI::spawn(). |
|
For PVM or MPI, send a message with the specified message tag to the specified task. Definition at line 621 of file APPSPACK_GCI.cpp. Referenced by main(), and APPSPACK::Executor::MPI::spawn(). |
|
For PVM or MPI, broadcast message in buffer using tag msgtag to the n tasks listed in the taskid array. Definition at line 668 of file APPSPACK_GCI.cpp. |
|
For PVM or MPI, blocking receive. Blocking receive for a message with the given tag and task id. The inputs msgtag and msgtid default to -1 (wildcard). Returns the buffer id of the message (PVM) or 1 (MPI), if any, and 0 otherwise. Definition at line 716 of file APPSPACK_GCI.cpp. Referenced by main(), and APPSPACK::Executor::MPI::recv(). |
|
For PVM or MPI, non-blocking receive. Non-blocking receive for a message with the given tag and task id. The inputs msgtag and msgtid default to -1 (wildcard). Returns the buffer id of the message, if any, and 0 otherwise. Definition at line 787 of file APPSPACK_GCI.cpp. |
|
For PVM or MPI, non-blocking probe. Non-blocking probe for a message with the specified message tag and task id. Returns the buffer id of the message for PVM or 1 for MPI, if any, and 0 otherwise. The inputs msgtag and msgtid default to -1 (wildcard). Definition at line 824 of file APPSPACK_GCI.cpp. Referenced by APPSPACK::Executor::MPI::recv(). |
|
For MPI, blocking probe. Do a blocking probe for a message with tag msgtag and from process msgtid. The default values of msgtag and msgtid are both -1. Definition at line 882 of file APPSPACK_GCI.cpp. |
|
For PVM or MPI, determine the msgtag and msgtid for the most recently probed or received message. Definition at line 910 of file APPSPACK_GCI.cpp. Referenced by main(), and APPSPACK::Executor::MPI::recv(). |
|
Pack an integer. Definition at line 959 of file APPSPACK_GCI.cpp. Referenced by main(), APPSPACK::Parameter::List::pack(), APPSPACK::Parameter::Entry::pack(), pack(), and APPSPACK::Executor::MPI::spawn(). |
|
Pack a char. Definition at line 986 of file APPSPACK_GCI.cpp. |
|
Pack a double. Definition at line 1013 of file APPSPACK_GCI.cpp. |
|
Pack a float. Definition at line 1040 of file APPSPACK_GCI.cpp. |
|
Pack a bool. Definition at line 1103 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a string. Definition at line 1126 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack integer vector. Definition at line 1143 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack double vector. Definition at line 1151 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack float vector.
|
|
Pack a vector of vectors of doubles. Definition at line 1159 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a vector of string. Definition at line 1167 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a vector of bools. Definition at line 1175 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a char array. Definition at line 1189 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack an integer array. Definition at line 1222 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a double array. Definition at line 1255 of file APPSPACK_GCI.cpp. References pack(). |
|
Pack a float array. Definition at line 1289 of file APPSPACK_GCI.cpp. References pack(). |
|
Unpack an integer. Definition at line 1322 of file APPSPACK_GCI.cpp. Referenced by main(), APPSPACK::Executor::MPI::recv(), APPSPACK::Parameter::List::unpack(), APPSPACK::Parameter::Entry::unpack(), and unpack(). |
|
Unpack a char. Definition at line 1347 of file APPSPACK_GCI.cpp. |
|
Unpack a double. Definition at line 1372 of file APPSPACK_GCI.cpp. |
|
Unpack a float. Definition at line 1397 of file APPSPACK_GCI.cpp. |
|
Unpack a book. Definition at line 1459 of file APPSPACK_GCI.cpp. |
|
Unpack a string. Definition at line 1489 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a vector of integers. Definition at line 1532 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a vector of doubles. Definition at line 1541 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a vector of a vector of doubles. Definition at line 1550 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a vector of strings. Definition at line 1559 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a vector of bools. Definition at line 1569 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a char array. Definition at line 1584 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack an integer array. Definition at line 1613 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a double array. Definition at line 1642 of file APPSPACK_GCI.cpp. References unpack(). |
|
Unpack a float array. Definition at line 1671 of file APPSPACK_GCI.cpp. References unpack(). |
|
For PVM, reset host information by asking PVM to update hostp - the data structure that contains the host information. Return the number of hosts. Definition at line 1704 of file APPSPACK_GCI.cpp. |
|
For PVM. get the hostid of the i-th host. Definition at line 1730 of file APPSPACK_GCI.cpp. |
|
For PVM,get the speed of the i-th host. Definition at line 1746 of file APPSPACK_GCI.cpp. |
|
For PVM, get a pointer to name of the i-th host. Definition at line 1762 of file APPSPACK_GCI.cpp. |
© Sandia Corporation | Site Contact | Privacy and Security
Generated on Wed Dec 14 18:41:05 2005 for APPSPACK 4.0.2 by
1.3.8 written by Dimitri van Heesch,
© 1997-2002