1
1
openmpi/ompi/mpi
Nathan Hjelm e968ddfe64 start bug fixes (#1729)
* mpi/start: fix bugs in cm and ob1 start functions

There were several problems with the implementation of start in Open
MPI:

 - There are no checks whatsoever on the state of the request(s)
   provided to MPI_Start/MPI_Start_all. It is erroneous to provide an
   active request to either of these calls. Since we are already
   looping over the provided requests there is little overhead in
   verifying that the request can be started.

 - Both ob1 and cm were always throwing away the request on the
   initial call to start and start_all with a particular
   request. Subsequent calls would see that the request was
   pml_complete and reuse it. This introduced a leak as the initial
   request was never freed. Since the only pml request that can
   be mpi complete but not pml complete is a buffered send the
   code to reallocate the request has been moved. To detect that
   a request is indeed mpi complete but not pml complete isend_init
   in both cm and ob1 now marks the new request as pml complete.

 - If a new request was needed the callbacks on the original request
   were not copied over to the new request. This can cause osc/pt2pt
   to hang as the incoming message callback is never called.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>

* osc/pt2pt: add request for gc after starting a new request

Starting a new receive may cause a recursive call into the pt2pt
frag receive function. If this happens and the prior request is
on the garbage collection list it could cause problems. This commit
moves the gc insert until after the new request has been posted.

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
2016-06-02 20:22:40 -04:00
..
c start bug fixes (#1729) 2016-06-02 20:22:40 -04:00
cxx datatype: Fix incorrect predefined datatype names and other datatype bugs (#1537) 2016-04-12 20:17:46 +02:00
fortran use-mpi extensions do not have a .la lib, so the fortran module should not depend on them. 2016-05-03 11:54:35 -04:00
java java: replace deprecated hindexed call 2016-04-10 19:56:22 +02:00
man In case, we do not build Fortran, Fortran 2008 or CXX, the regexp in make_manpage.pl will delete all 2016-05-17 14:21:35 +02:00
tool mpi/tool: Fix an incorrect type cast. 2015-11-04 11:28:43 +09:00
help-mpi-api.txt help-mpi-api.txt: remove now-stale help messages 2015-10-15 12:39:16 -04:00
Makefile.am trim man pages if no c++/f08/fortran 2015-10-13 10:21:42 +09:00