e***@gmail.com
2008-12-01 17:11:21 UTC
Greetings,
Is there any way to detect the presence of mpiexec/mpirun from my
program?
I have a code which needs to run both in parallel under MPI and under
a single process, not spawned from MPI. I'd like to be able to swap
out MPI-specific routines as needed. I'd like to avoid maintaining two
copies of the code or having to toggle inputs in a file if possible.
The only thing I see right now is that the command line arguments are
slightly different (at least under MPICH2) but I presume that is not
universal under every implementation.
Thanks,
Philip
Is there any way to detect the presence of mpiexec/mpirun from my
program?
I have a code which needs to run both in parallel under MPI and under
a single process, not spawned from MPI. I'd like to be able to swap
out MPI-specific routines as needed. I'd like to avoid maintaining two
copies of the code or having to toggle inputs in a file if possible.
The only thing I see right now is that the command line arguments are
slightly different (at least under MPICH2) but I presume that is not
universal under every implementation.
Thanks,
Philip