|
MADNESS 0.10.1
|
Messages too large for an MPI count of bytes, sent as the argument of a remote task. More...
#include <cstdint>#include <cstdlib>#include <iostream>#include <limits>#include <string>#include <vector>#include <madness/world/MADworld.h>#include <madness/world/safempi.h>

Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Messages too large for an MPI count of bytes, sent as the argument of a remote task.
A message longer than MAD_BUFFER_SIZE takes RMI's huge-message protocol, and one of more than INT_MAX bytes must further be given to MPI either by its large-count functions (MPI 4) or, where MPI has none, described by a derived datatype ( SafeMPI::ByteCount ). This is the body of two tests, each a source file that includes it:
INT_MAX , which takes no memory.MADNESS_TEST_RMI_HUGE_LARGE and sends one message of more than INT_MAX bytes at the default setting (and, where MPI has large counts, once more by the derived datatype); that takes about 9 GiB, so it carries the "large" label.Needs at least 2 ranks to send anything; with 1 the tasks are local.
| int main | ( | int | argc, |
| char ** | argv ) |
References madness::WorldGopInterface::fence(), madness::finalize(), madness::World::gop, SafeMPI::ByteCount::have_large_count(), madness::initialize(), madness::RMI::max_msg_len(), ok(), madness::World::rank(), SafeMPI::ByteCount::set_max_plain_count(), SafeMPI::ByteCount::set_use_large_count(), madness::World::size(), and SafeMPI::ByteCount::use_large_count().