Common methods for MPI examples. More...
#include <iomanip>
#include <sstream>
#include <ios>
Go to the source code of this file.
Classes | |
class | ns3::SinkTracer |
Namespaces | |
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. More... | |
#define | RANK0COUTAPPEND(x) |
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.
#define RANK0COUT | ( | x | ) |
Write to std::cout only from rank 0.
Number line for sorting output of parallel runs.
x | The output operators. |
Definition at line 55 of file mpi-test-fixtures.h.
#define RANK0COUTAPPEND | ( | x | ) |
Definition at line 67 of file mpi-test-fixtures.h.