[mpich-discuss] MPI_Comm_spawn without mpiexec

Roland Schulz roland at utk.edu
Sat Jun 16 13:40:12 CDT 2012


Hi,

is it possible to create a binary which can be run directly without mpiexec
but which can use MPI_Comm_spawn? I have a small test program which uses
MPI_Comm_spawn and it works currently if I execute it with mpiexec. But if
I execute it directly I get:
mpiexec was unable to launch the specified application as it could not find
an executable:
Executable: -pmi_args

Even if a solution would require some internal API, I would be interested
in it. If that is not possible, what is the best way to query whether the
application was started with or without mpiexec? Should one just analyze
the argv before MPI_Init is called or does mpich have some API for that use?

I would like to be able to create a binary which doesn't need to be
executed with mpiexec to make it more user friendly so that a user which
just wants to run on a single node can just execute the binary but the
application uses all cores by default.

Roland

-- 
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120616/e205ced4/attachment.html>


More information about the mpich-discuss mailing list