use send rather than ssend to avoid lockup #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I'm using Ubuntu 20.04, with the OS openmpi package, mpi4py 3.1.5, and schwimmbad 0.3.2. This is on the "symmetry" cluster at Perimeter Institute.
The behavior I'm seeing is that when creating an MPIPool(), I see each worker getting one task, it finishes the task and sends the result back, and the boss receives the result, but the workers never proceed to the next task.
Via some sophisticated printf debugging, I found that the workers were never returning from the
self.comm.ssend()
call. My wise colleague suggested changing that toself.comm.send()
, and then it works perfectly!I don't think you need any of the synchronization implied by
ssend
, so this should be fine?My system details:
$ mpiexec --version
mpiexec (OpenRTE) 4.0.3
$ ls -l $(which mpiexec)
lrwxrwxrwx 1 root root 25 Aug 15 2023 /usr/bin/mpiexec -> /etc/alternatives/mpiexec
$ ls -l /etc/alternatives/mpiexec
lrwxrwxrwx 1 root root 24 Aug 15 2023 /etc/alternatives/mpiexec -> /usr/bin/mpiexec.openmpi