This sample contains a potential deadlock. The communication pattern is as follows:
Process 0 Process 1
MPI_Buffer_attach()
MPI_Bsend()
MPI_Buffer_detach()
MPI_Barrier() MPI_Barrier()
MPI_Recv()
MPI_Buffer_detach()
will block until the message is
transferred into the network. There is no guarantee that
this is possible because the recipient is not entering
its MPI_Recv()
until barrier occurs.
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.