Prevent NEST from running under mpirun-control if not built with MPI #2381
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
T: Enhancement
New functionality, model or documentation
If NEST is built without MPI support, invoking NEST with
mpirun -np N
will create N independent NEST instances. This is a behaviour the user most likely does not desire. When writing to files, there is considerable risk that these instances will write to the same output files simultaneously, creating a mess at best.Therefore, it would be good if an MPI-free NEST could report an error if it is run from
mpirun
or similar.Unfortunately, this discussion on StackOverflow suggest this might not be solvable in general.
I still suggest we explore and close this issue if we conclude that there is no possibility to implement this feature.
The text was updated successfully, but these errors were encountered: