Common methods for MPI examples. More...
#include <iomanip>
#include <ios>
#include <sstream>
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. | |
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.