Help - Search - Members - Calendar
Full Version: mpiexec help
Linuxhelp > Support > Technical Support
Hi all,

I am submitting parallel jobs like so:

mpiexec -np 12 -machinefile < nodes.inp ./myprogram

The nodes.inp file contains the list of nodes to be used. But the mpiexec thinks the ./myprogram is also a file to be read by -machinefile so mpiexec tells me that I haven't given it an executable but indeed "myprograms" is an executable. How can I tell linux to only input just one file to -machinefile (or any linux program for that matter, doesnt have to be mpiexec), obviously "<" is not working. Any suggestions could be awesome! Thanks!
mpiexec -np 12 -machinefile < nodes.inp ./myprogram

After looking at the man pages for mpiexec I do not see a reason to use <. Have you tried.
mpiexec -np 12 -machinefile nodes.inp myprogram
Thanks a lot, MichaelK.

I had indeed tried that but I get another error, part of which is:

mpiexec: spawn failed with errno=-11

I googled this and it seems I should get rid of the -machinefile part of my mpiexec command. That works, problem is the code is designed to submit executables on these nodes again and again before the job is suppose to terminate. Those executables must know which nodes I have reserved for them to run so I have to use the -machinefile option (unless someone knows a better way to do this). So if I get rid of the -machinefile part the first part of the code works but once a further executable is submitted, it doesn't know the nodes to submit to and terminates. Any thoughts? Thanks again!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.