Skip to main content

more options


mpirun (Windows)

mpirun is a .NET Assembly. It is used to launch MPI and non-MPI processes on local and remote computers.

SimpleMPIrun

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

mpirunpg

The simplest way is to call vsched -m. This command will produce a file called machines, which consists of a list of the machines your batch job has allocated. If a machines file is produced, do not use the -mach_file and -pg_file parameters for mpirun.

ctc001.tc.cornell.edu 4 demo.exe
ctc002.tc.cornell.edu 3 demoSub.exe
ctc003.tc.cornell.edu 2 demoSub2.exe

-np specifies the number of tasks to run

-wd specifies the working directory to be used by the MPI processes.

-h | -help displays the command line arguments for mpirun

-verbose prints verbose output for debugging purposes

-mpi_debug invokes extra checks on the input parameters and extra output if errors occur at runtime.

-mpi_verbose switch to verbose output mode for the MPI/Pro application. This information is different from that produced by the -verbose flag.

Example: mpirun -np 4 myexecutable.exe

In this example, the machines file and executable must be in the directory in which you issue the mpirun command.

mpirun is a .NET Assembly. It is used to launch MPI and non-MPI processes on local and remote computers.

SimpleMPIrun

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

mpirunpg

The simplest way is to call vsched -m. This command will produce a file called machines, which consists of a list of the machines your batch job has allocated. If a machines file is produced, do not use the -mach_file and -pg_file parameters for mpirun.

ctc001.tc.cornell.edu 4 demo.exe
ctc002.tc.cornell.edu 3 demoSub.exe
ctc003.tc.cornell.edu 2 demoSub2.exe

-np specifies the number of tasks to run

-wd specifies the working directory to be used by the MPI processes.

-h | -help displays the command line arguments for mpirun

-verbose prints verbose output for debugging purposes

-mpi_debug invokes extra checks on the input parameters and extra output if errors occur at runtime.

-mpi_verbose switch to verbose output mode for the MPI/Pro application. This information is different from that produced by the -verbose flag.

Example: mpirun -np 4 myexecutable.exe

In this example, the machines file and executable must be in the directory in which you issue the mpirun command.