MPI initialization exits ungracefully #3123
Labels
I: No breaking change
Previously written code will work as before, no one should note anything changing (aside the fix)
S: Normal
Handle this with default priority
stale
Automatic marker for inactivity, please have another look here
T: Discussion
Still searching for the right way to proceed / suggestions welcome
Projects
Describe the bug
When you run
mpirun python ...
andimport nest
built without MPI support, the following message is displayed and the process exits abruptly:This causes many problems associated with abrupt exits (open file handles, killed threads, ...) and in my case led to a segmentation fault because of an open
MPI.recv
call on another thread, which obscured the original cause of the error.Expected behavior
NEST should raise an exception instead, and this should be propagated to the Python layer, like other NEST exceptions.
Desktop/Environment (please complete the following information):
(PS: A collaborator of mine had the same type of ungraceful exit when NEST is built with MUSIC support, but MPI has already been initialized by another software, such as
mpi4py
. Could anyone do a quick double check whether this could be solved the same way?)The text was updated successfully, but these errors were encountered: