On Quarry, how do I run multiple MPI jobs using a TORQUE script?
MPI libraries available through SoftEnv
The MPICH1 and OpenMPI libraries are installed on Quarry at
Indiana University. To display the MPI libraries available on Quarry,
use the softenv command and use grep to
search for mpi , as follows:
Submitting a parallel job on Quarry
To submit parallel MPICH1 jobs on Quarry:
- Add the MPICH1 key to SoftEnv.
Add
@mpich1 ## Some more keys you may have @quarry@mpich1to your~/.softfile. Your~/.softfile should look similar to this:If you are not familiar with the SoftEnv system, see On Big Red and Quarry at IU, how can I use SoftEnv to customize my software environment? You may also enter
man softenv-introat the prompt on Big Red. - Compile your MPI code: [jdoe@Quarry] mpicc -o myprog myprog.c
- Submit the parallel job to TORQUE (also called PBS).
To submit a parallel job that runs your MPI program, first edit the sample script shown below,
#PBS -l nodes=2:ppn=8,walltime=5:00 #PBS -m ae #PBS -N job_myprog mpirun -machine $PBS_NODEFILE -np 16 ${HOME}/simple_quarry_jobs/myprogsubmit_parallel.sh(or create your own) with the correct number of nodes and tasks, the appropriate output/error files, and so forth:Then use
qsub submit_parallel.shqsubto submit the program:
If you are not familiar with job submission on Quarry, refer to What is TORQUE/PBS?




