Commit 6db161d1 authored by Ben Hazelwood's avatar Ben Hazelwood
Browse files

formatting tweaks

parent c14f8f52
......@@ -6,30 +6,30 @@ This wrapper adds functionality to MPI enabling replication and team based execu
The library re-defines the weak symbols declared by MPI. This means the replication is transparent to the application.
Replication is achieved by splitting MPI_COMM_WORLD into a fixed number of "team" communicators.
Replication is achieved by splitting `MPI_COMM_WORLD` into a fixed number of "team" communicators.
Each team then sends messages completely independent of other teams.
Unlike other similar libraries, the replicas are free to proceed completely asynchronously from other replicas.
They communicate progress and error information via a "heartbeat". A heartbeat is inserted into user code via
an MPI_Sendrecv(...,MPI_COMM_SELF) call. At each heartbeat, the replicas mark this point on a timeline and
an `MPI_Sendrecv(...,MPI_COMM_SELF)` call. At each heartbeat, the replicas mark this point on a timeline and
compare there progress against the other replicas. If a buffer is provided to the heartbeat then the hashcode
is also compared with the other replicas.
### How do I get set up? ##
To build the library:
1. Run make in the lib directory
2. set the number of teams with the "TEAMS" environment variable (default: 2)
1. Run `make` in the lib directory
2. set the number of teams with the `TEAMS` environment variable (default: 2)
To use some example provided miniapps:
1. run make in the applications folder
1. run `make` in the applications folder
2. run each application in the bin folder with the required command line parameters (documented in each application folder)
To use with an existing application:
1. Link with -ltmpi -L"path to tmpi"
2. Add "path to tmpi" to LD_LIBRARY_PATH
1. Link with `-ltmpi -L"path to tmpi"`
2. Add "path to tmpi" to `LD_LIBRARY_PATH`
### Example Heartbeat Usage ###
This application models many scientific applications. Per loop, the two MPI_Sendrecv call acts as heartbeats.
This application models many scientific applications. Per loop, the two `MPI_Sendrecv` calls act as heartbeats.
The first starts the timer for this rank and the second stops it. Additionally the second heartbeat passes
the data buffer for comparison with other teams. Only a hash of the data is sent.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment