The buffer becomes available for another buffered send only when the oldest messages have been transmitted to the recipient. The application developer should make sure that this happens before a buffered send that reuses the buffer.
This program simulates a race condition by forcing the recipient to wait until the second, faulty buffered send occurrs at the sender.
Linux*:
Ensure that the corresponding compiler, Intel® MPI Library, and Intel® Trace Analyzer and Collector are already in your PATH
, and complete these steps:
Build the sample:
$ make
Run the sample:
$ make run
Review the output.
Ensure that the corresponding compilers, Microsoft* Visual Studio*, Intel® MPI Library, and Intel® Trace Analyzer and Collector are already in your PATH
, and complete these steps:
Build the sample:
> build.bat release
Run the sample:
> build.bat run
Review the output.