A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
mpi-test-fixtures.h File Reference

Common methods for MPI examples. More...

#include <iomanip>
#include <ios>
#include <sstream>
+ Include dependency graph for mpi-test-fixtures.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::SinkTracer
 Collects data about incoming packets. More...
 

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define RANK0COUT(x)
 Write to std::cout only from rank 0.
 
#define RANK0COUTAPPEND(x)
 Append to std::cout only from rank 0.
 

Detailed Description

Common methods for MPI examples.

Since MPI output is coming from multiple processors it is the ordering between the processors is non-deterministic. For regression testing the output is sorted to force a deterministic ordering. Methods include here add line number to support this sorting.

Testing output is also grepped so only lines with "TEST" are included. Some MPI launchers emit extra text to output which must be excluded for regression comparisons.

Definition in file mpi-test-fixtures.h.