extra command line arguments

Kevin Van Workum vanw at tticluster.com
Mon Apr 4 13:16:52 EDT 2005


Hi,

I have a user who is seeing the problems as described in #6 of the README
(below). Unfortunately, my user is using a commerical package for which we
don't have the source. Is there any way around besides using mpirun?

---from README---
6.  My program sees extra weird command line arguments.

    In the MPICH/p4 library, the only way to start processes is to
    provide them with command-line arguments specifying information about
    their environment: hostname and port number of the "master", own node
    ID, total number of nodes, etc.  These appear in main() in the argv[]
    array and are passed into MPI_Init() which interprets them to construct
    the parallel environment.  It then removes from argv[] the arguments
    it understands and leaves the rest for the main program.

    If your code tries to parse the arguments in argv[] _before_ calling
    MPI_Init(&argc, &argv), you will unfortunately see, and not understand,
    these extra arguments.  The best solution is to put the call to
    MPI_Init before any argument processing.


-- 
Kevin Van Workum, Ph.D.
Vice President
Senior System Administrator
www.clusterondemand.com
ONLINE COMPUTER CLUSTERS



More information about the mpiexec mailing list