|
Public Member Functions |
| | ClassName ("Pstream") |
| | Pstream (const label bufSize=0) |
| | Construct given optional buffer size.
|
Static Public Member Functions |
| static void | addValidParOptions (HashTable< string > &validParOptions) |
| | Add the valid option this type of communications library.
|
| static bool | init (int &argc, char **&argv) |
| | Initialisation function called from main.
|
| static bool | parRun () |
| | Is this a parallel run?
|
| static label | nProcs () |
| | Number of processes in parallel run.
|
| static bool | master () |
| | Am I the master process.
|
| static int | masterNo () |
| | Process index of the master.
|
| static int | myProcNo () |
| | Number of this process (starting from masterNo() = 0).
|
| static const List< int > & | procIDs () |
| | Process IDs.
|
| static int | procID (int procNo) |
| | Process ID of given process index.
|
| static int | firstSlave () |
| | Process index of first slave.
|
| static int | lastSlave () |
| | Process index of last slave.
|
| static const List< commsStruct > & | linearCommunication () |
| | Communication schedule for linear all-to-master (proc 0).
|
| static const List< commsStruct > & | treeCommunication () |
| | Communication schedule for tree all-to-master (proc 0).
|
| static int | msgType () |
| | Message tag of standard messages.
|
| static void | exit (int errnum=1) |
| | Exit program.
|
| static void | abort () |
| | Abort program.
|
| template<class T, class BinaryOp> |
| static void | gather (const List< commsStruct > &comms, T &Value, const BinaryOp &bop) |
| | Gather data. Apply bop to combine Value.
|
| template<class T, class BinaryOp> |
| static void | gather (T &Value, const BinaryOp &bop) |
| | Like above but switches between linear/tree communication.
|
| template<class T> |
| static void | scatter (const List< commsStruct > &comms, T &Value) |
| | Scatter data. Distribute without modification. Reverse of gather.
|
| template<class T> |
| static void | scatter (T &Value) |
| | Like above but switches between linear/tree communication.
|
| template<class T, class CombineOp> |
| static void | combineGather (const List< commsStruct > &comms, T &Value, const CombineOp &cop) |
| template<class T, class CombineOp> |
| static void | combineGather (T &Value, const CombineOp &cop) |
| | Like above but switches between linear/tree communication.
|
| template<class T> |
| static void | combineScatter (const List< commsStruct > &comms, T &Value) |
| | Scatter data. Reverse of combineGather.
|
| template<class T> |
| static void | combineScatter (T &Value) |
| | Like above but switches between linear/tree communication.
|
| template<class T, class CombineOp> |
| static void | listCombineGather (const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop) |
| template<class T, class CombineOp> |
| static void | listCombineGather (List< T > &Value, const CombineOp &cop) |
| | Like above but switches between linear/tree communication.
|
| template<class T> |
| static void | listCombineScatter (const List< commsStruct > &comms, List< T > &Value) |
| | Scatter data. Reverse of combineGather.
|
| template<class T> |
| static void | listCombineScatter (List< T > &Value) |
| | Like above but switches between linear/tree communication.
|
| template<class T> |
| static void | gatherList (const List< commsStruct > &comms, List< T > &Values) |
| | Gather data but keep individual values separate.
|
| template<class T> |
| static void | gatherList (List< T > &Values) |
| | Like above but switches between linear/tree communication.
|
| template<class T> |
| static void | scatterList (const List< commsStruct > &comms, List< T > &Values) |
| | Scatter data. Reverse of gatherList.
|
| template<class T> |
| static void | scatterList (List< T > &Values) |
| | Like above but switches between linear/tree communication.
|
Static Public Attributes |
| static bool | floatTransfer |
| | Should compact transfer be used in which floats replace doubles.
|
| static int | nProcsSimpleSum |
| | Number of processors at which the sum algorithm changes from linear.
|
| static bool | scheduledTransfer |
| | Switch for scheduled vs non-scheduled transfer.
|
Protected Member Functions |
| void | enlargeBuffer (size_t count) |
| | Increase the size of the transfer buffer.
|
Protected Attributes |
| List< char > | buf_ |
| | Transfer buffer.
|
| int | bufPosition_ |
| | Current buffer read/write location.
|
Classes |
| class | commsStruct |