|
MPI can only be run on the Roadrunner compute nodes through
PBS. You can use the "mpirun" script to run an MPI job. The
script has the following syntax
mpirun -np n full_path/executable
-np n - Number of nodes
to start program on
full_path/executable
- Executable including full path name
Roadrunner uses the Portable Batch System (PBS) to manage parallel
job scheduling. Users can run batch or interactive jobs on the
Roadrunner Supercluster through PBS. Batch jobs are described
in command files which are submitted to PBS for execution.
PBS Queue Limits
|
| Maximum Job Length*: |
6 hours |
* Job length can be extended for special requests.
Please contact help@alliance.unm.edu
PBS Command Files
The PBS job command file defines the number of nodes you are
requesting and contains the shell commands you wish to be executed.
One or two processes per node can be started. Some samples are
listed below for a job to run the executable complete_path/test_prog
on N nodes:
For Myrinet jobs (one process per node)
#PBS -l nodes=N
gmpiconf $PBS_NODEFILE
mpirun complete_path/test_prog
For MPI jobs to run using Myrinet, the "gmpiconf" command
must be used to create a configuration file ($HOME/.gmpi/conf).
To run two processes per node, use the gmpiconf2
command and double the number of processes (-np 2*n)
for the mpirun command as shown below:
For Myrinet jobs (two processes per node)
#PBS -l nodes=N
gmpiconf2 $PBS_NODEFILE
mpirun -np 2*N complete_path/test_prog
For Ethernet jobs (one process per node)
#PBS -l nodes=N
mpirun complete_path/test_prog
For Ethernet jobs (two processes per node)
#PBS -l nodes=N
mpirun -np 2*N complete_path/test_prog
The "#PBS -l nodes=N" line defines how many nodes
are being requested. The PBS environment variables which are
used in the script above are defined below. These variables
are set when PBS allocates nodes for a user.
Example script (sample.cmd): 32-node Myrinet using two processes
per node:
#PBS -l nodes=32
gmpiconf2 $PBS_NODEFILE
mpirun -np 64 /users/wilson/solve_run.exe
PBS Environment Variables
- PBS_O_WORKDIR - user's current directory
when "qsub" command was issued
- PBS_NODEFILE - file containing the list
of nodes the user was allocated
Submiting jobs to PBS
qsub [flags] (script_name)
Submit a batch job listed in scriptname.pbs file
qsub scriptname.pbs
Displaying the queue contents and status
qstat [flags]
i.e., qstat -s (displays
status and elapsed time of job)
|