[mpich-discuss] Error 123
Phelan Jr., Frederick R. Dr.
frederick.phelan at nist.gov
Tue Mar 15 12:17:00 CDT 2011
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
More information about the mpich-discuss
mailing list