[mpich-discuss] Error 123
SULLIVAN David (AREVA)
David.Sullivan at areva.com
Tue Mar 15 12:37:02 CDT 2011
Fred,
I use a program that takes command line arguments. For example a typical call would be:
mpiexec -n 12 -f nodefile mcnp5.mpi -i input -o output wwinp=wwfile
I have never run into the problems you have describe.
Dave
-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Phelan Jr., Frederick R. Dr.
Sent: Tuesday, March 15, 2011 1:17 PM
To: Nicolas Rosner
Cc: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] Error 123
There is now question that what is happening here is related the seeming inability of the mpiexec to run a program that requires command line arguments, which in some cases involves use of the < symbol. However, -i can also be used in place of < ... the results is the same.
At this point I have tried every conceivable variation:
a) C:\LAMMPS\example\micelle>"C:\Program Files\MPICH2\bin\mpiexec" -n 2 -dir c:\lammps\example\micelle\ c:\bin\lmp_win_mpi.exe < c:\lammps\example\micelle\in.micelle
Result: Does not recognize data redirection and lammps exits
b) C:\LAMMPS\example\micelle>"C:\Program Files\MPICH2\bin\mpiexec" -n 2 -dir c:\lammps\example\micelle\ "c:\bin\lmp_win_mpi.exe < c:\lammps\example\micelle\in.micelle"
Result: Error 123
c) C:\LAMMPS\example\micelle>"C:\Program Files\MPICH2\bin\mpiexec" -n 2 -dir c:\lammps\example\micelle\ c:\bin\lmp_win_mpi.exe -i c:\lammps\example\micelle\in.micelle
Result: Does not recognize command line arguments and lammps exits
d) C:\LAMMPS\example\micelle>"C:\Program Files\MPICH2\bin\mpiexec" -n 2 -dir c:\lammps\example\micelle\ "c:\bin\lmp_win_mpi.exe -i c:\lammps\example\micelle\in.micelle"
Result: Error 123
Does anyone have a working example of running using mpich that runs a program that makes use of command line arguments?
Thanks,
Fred
-----Original Message-----
From: Nicolas Rosner [mailto:nrosner at gmail.com]
Sent: Tuesday, March 15, 2011 12:43 PM
To: Phelan Jr., Frederick R. Dr.
Subject: Re: [mpich-discuss] Error 123
This part of your command line looks problematic:
> ... "c:\bin\lmp_win_mpi.exe < c:\lammps\example\micelle\in.micelle"
I'm neither a Windows nor a LAMMPS user, but at least on most Linux/Unix shells, quoting a redirection symbol prevents the shell from interpreting it as such, e.g.
"program name" "foo bar" < "input file"
looks quite reasonable, while
"program name" "foo bar < input file"
seems odd, since that would pass the whole 2nd string (incl. `<') as an argument to the program.
Hope this helps,
Nicolás
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list