#include "atoll.h"
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <exception>
Include dependency graph for atollrun.h:

Go to the source code of this file.
Data Structures | |
| class | Atollrun |
| class | AtollrunException |
Defines | |
| #define | ATOLLRUN_INIT_SUCCESS 0 |
| #define | ATOLLRUN_INIT_ERROR -1 |
| #define | ATOLLPORT(rank) Atollrun_getPort(rank) |
| #define | ATOLLHANDLE(rank) Atollrun_getHandle(rank) |
Functions | |
| int | Atollrun_Init (int *pArgc, char **pArgv[]) |
| void | Atollrun_setEstablishConnectionsOnInit (int pAutoSetup) |
| void | Atollrun_setPerformConnectionTestOnInit (int pSelfTest) |
| void | Atollrun_setAcquirePortOnSingle (int pAcquireOnSingle) |
| int | Atollrun_getCommRank () |
| int | Atollrun_getCommSize () |
| port_id | Atollrun_getPort (int pRank) |
| atoll_handle | Atollrun_getHandle (int pRank) |
See also main
Definition in file atollrun.h.
|
|
shortcut macro for function Atollrun_getHandle() Definition at line 212 of file atollrun.h. |
|
|
shortcut macro for function Atollrun_getPort() Definition at line 209 of file atollrun.h. |
|
|
symbolic constant indicating the failure of the init function Definition at line 206 of file atollrun.h. |
|
|
symbolic constant indicating the success of the init function Definition at line 203 of file atollrun.h. |
|
|
Return my rank. It's similar to MPI_Comm_Rank() of MPI. Note: If calling this function before Atollrun_Init() or after a failed Atollrun_Init(), it prints a message to stderr and exits the program !!!
|
|
|
Return the size of the current process group. It's similar to MPI_Comm_Size() of MPI. Note: If calling this function before Atollrun_Init() or after a failed Atollrun_Init(), it prints a message to stderr and exits the program !!!
|
|
|
Return the ATOLL handle for communicating to a certain Rank ID Note: If calling this function before Atollrun_Init() or after a failed Atollrun_Init() or with an illegal rank as argument, it prints a message to stderr and exits the program !!!
|
|
|
Return the ATOLL port of a certain Rank ID Note: If calling this function before Atollrun_Init() or after a failed Atollrun_Init() or with an illegal rank as argument, it prints a message to stderr and exits the program !!!
|
|
||||||||||||
|
Initializes the network by communicating with 'atollrun.py'. It's similar to MPI_Init() of MPI. NOTE: It's essential that the user program did not write anything to the console before this function !!!
|
|
|
This function sets a flag for the Atollrun_Init() method. When set to true, on initialization the method opens a ATOLL port even when the current process is the only one and having nobody to communicate to. This flag only makes sense when setting it before calling Atollrun_Init()
|
|
|
This function sets a flag for the Atollrun_Init() method. When set to true, on initialization Atollrun_Init() establishes connections to all peers and performs a little communication test. If set to false, on initialization Atollrun_Init() will only open an ATOLL port, but nothing more. Settings this flag to false implies Atollrun_setPerformConnectionTestOnInit(false). This flag only makes sense when setting it before calling Atollrun_Init()
|
|
|
This functions sets a flag for the Atollrun_Init() method. When set to true, on initialization Atollrun_Init() performs a little connections test after establishing the connections. If set to false, on initialization Atollrun_Init() will not test the communication between the ports. Setting this flag to true implies Atollrun_setEstablishConnectionsOnInit(true). This flag only makes sense when setting it before calling Atollrun_Init()
|
1.3.5