mpi - How can my program detect, whether it was launch via mpirun -
how can mpi program detect, if launched standalone application or via mpirun?
considering answer , comments semiuseless , hristo iliev, there no general , portable way this. workaround, can check environment variables set mpirun. see e.g.:
http://www.open-mpi.org/faq/?category=running#mpi-environmental-variables
Comments
Post a Comment