Skip to main content

more options


mpiexec (Linux)

mpiexec is used to initiate MPI jobs.

How do you specify the machines on which your program will be run?

The simplest way is to call vsched -m to produce a file called machines, which consists of a list of the machines your batch job has allocated.

vsched -machines

Next start up the mpds on each machine. Use the -f flag to specify the complete path to the machines file.

mpdboot -n 2 -f $HOME/machines

Use mpiexec to run the parallel job.

run executable: mpiexec -n 2 myexe
            or
run script: mpiexec -n 2 myscript

Options

-n (or -np) specifies the number of tasks to run

-wdir specifies the working directory to be used by the MPI processes. It is only necessary if your current directory and desired working directory are not the same

-l labels standard out and standard error (stdout and stderr) with the rank of the process

For more options: type man mpiexec or mpiexec at a prompt.

mpiexec is used to initiate MPI jobs.

How do you specify the machines on which your program will be run?

The simplest way is to call vsched -m to produce a file called machines, which consists of a list of the machines your batch job has allocated.

vsched -machines

Next start up the mpds on each machine. Use the -f flag to specify the complete path to the machines file.

mpdboot -n 2 -f $HOME/machines

Use mpiexec to run the parallel job.

run executable: mpiexec -n 2 myexe
            or
run script: mpiexec -n 2 myscript

Options

-n (or -np) specifies the number of tasks to run

-wdir specifies the working directory to be used by the MPI processes. It is only necessary if your current directory and desired working directory are not the same

-l labels standard out and standard error (stdout and stderr) with the rank of the process

For more options: type man mpiexec or mpiexec at a prompt.