[mpich-discuss] Runtime config file

Saurabh T saurabh at hotmail.com
Wed Feb 16 13:39:09 CST 2011



- I can make an alias (yes, even with the letter m). Problem is making sure all users use this or a similar alias or 
make the calls right.

- Some users still wont do it right (and I dont blame them). This will lead to a time sink on their part and mine. 

- Automated testing scripts which should only need mpirun to be in PATH, have to worry about where to get this config file from, for various
 combinations of architectures and installation prefixes.

For those who are interested, my current solution is to add "system" 
config files to prefix/etc, and replace the mpiexec, mpirun softlinks in
 prefix/bin with a shell script that calls the real executable with the 
config options.



saurabh



----------------------------------------
> Date: Wed, 16 Feb 2011 12:32:09 -0600
> Subject: Re: [mpich-discuss] Runtime config file
> From: jhammond at mcs.anl.gov
> To: saurabh at hotmail.com
> CC: mpich-discuss at mcs.anl.gov
>
> If typing "-configfile " is a bottleneck for your work, I
> question your need for parallel computing. Are you bothered because
> you don't want to type out "mpiexec -configfile  ..." every time
> you launch MPI? Try this: alias mympiexec="mpiexec -configfile
> " in Bash. You can save even more characters by replacing
> mympiexec with something shorter, like the letter m. Alternatively,
> scripts can automate a variety of command-line tasks, including
> parallel job launching. You could write a script that looks at
> ~/.mpichrc to learn that it should launch mpiexec with "-configfile
> ", in which case you'd have exactly the behavior you want.
>
> Jeff
>
> On Wed, Feb 16, 2011 at 12:15 PM, Saurabh T  wrote:
> >
> > Well it's still a fairly large argument to be passed all the time. I am talking of the ability to look up a configuration file (say prefix/etc/something.conf) automatically. Seems like MPICH doesnt support this.
> >
> > saurabh
> >
> > ----------------------------------------
> >> Date: Wed, 16 Feb 2011 09:32:19 -0600
> >> From: balaji at mcs.anl.gov
> >> To: mpich-discuss at mcs.anl.gov
> >> CC: saurabh at hotmail.com
> >> Subject: Re: [mpich-discuss] Runtime config file
> >>
> >>
> >> You can use mpiexec -configfile .
> >>
> >> -- Pavan
> >>
> >> On 02/16/2011 08:55 AM, Saurabh T wrote:
> >> >
> >> > Hi,
> >> > Does MPICH support a runtime configuration file at the system level, so users dont have to (a) set a whole bunch of environment variables, or (b) always pass a whole set of arguments to mpirun? What I am looking for is the equivalent of OpenMPI's etc/openmpi-mca-params.conf file. I am using Hydra process manager. Thank you.
> >> >
> >> > saurabh
> >> >
> >> > _______________________________________________
> >> > mpich-discuss mailing list
> >> > mpich-discuss at mcs.anl.gov
> >> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> >>
> >> --
> >> Pavan Balaji
> >> http://www.mcs.anl.gov/~balaji
> >
> > _______________________________________________
> > mpich-discuss mailing list
> > mpich-discuss at mcs.anl.gov
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> >
>
>
>
> --
> Jeff Hammond
> Argonne Leadership Computing Facility
> jhammond at alcf.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
 		 	   		  


More information about the mpich-discuss mailing list