[mpich-discuss] Error 123

Phelan Jr., Frederick R. Dr. frederick.phelan at nist.gov
Tue Mar 15 15:55:26 CDT 2011


I ran this with the WMPIEXEC program and the -verbose option. The lammps program never executes. Is the output file in anyway meaningful as to why?

Fred



-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of SULLIVAN David (AREVA)
Sent: Tuesday, March 15, 2011 1:37 PM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] Error 123

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
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpiexec-lammps.out
Type: application/octet-stream
Size: 31274 bytes
Desc: mpiexec-lammps.out
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110315/906fa8bb/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpiexec-lammps.mpi
Type: application/octet-stream
Size: 182 bytes
Desc: mpiexec-lammps.mpi
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110315/906fa8bb/attachment-0003.obj>


More information about the mpich-discuss mailing list