260 likes | 374 Vues
Job Submission on WestGrid Feb 15 2005 on Access Grid. Introduction. Simon Sharpe, one member of the WestGrid support team The best way to contact us is to email support@westgrid.ca This seminar tells you; How to run, monitor, or cancel your jobs How to select the best site for your job
E N D
Introduction • Simon Sharpe, one member of the WestGrid support team • The best way to contact us is to email support@westgrid.ca • This seminar tells you; • How to run, monitor, or cancel your jobs • How to select the best site for your job • How to adapt your job submission for different sites • How to get your jobs running as quickly as possible • Feel free to interrupt if you have questions
Getting into the Queue • HPC Resources are valuable research tools • A batch queuing system is needed to • Match jobs to resources • Deliver maximum bang for the research buck • Distribute jobs and collect output across parallel CPUs • Ensure a fair sharing of resources
Getting into the Queue • WestGrid compute sites use TORQUE/Moab • Based on PBS (Portable Batch System) • You need just a few commands common to WestGrid machines • There are important differences in job submission among sites you need to know about • With the diversity of WestGrid, it is possible that there is more than one machine suitable for your job
A Simple Sample • This example show how to run a serial job on Glacier, which is a good choice for serial jobs • The qsub command tells TORQUE to run the job described in the script file serialhello.pbs • The script file serialhello.pbs tells TORQUE how to run the C program serialhello • When your job completes, TORQUE creates two new files in the current directory capturing; • error out from the job • standard out
End of Seminar • Thanks for coming • I wish it was that easy
HPC: One Size Does Not Fit All • When the only tool you have is a hammer, every job looks like a nail • Things that affect system selection; • System dictated by executable or licensing • MPI or OpenMP • Availability: How busy is the system? • Amount of RAM required • Speed or number of processors
HPC: One Size Does Not Fit All • Things that affect system selection (continued); • Scalability of your application • Inter-processor communication requirements • Queue limits (walltime, number of CPUs) • Inertia: It is where we’ve always run it http://www.westgrid.ca/support/System_Status http://www.westgrid.ca/support/Facilities http://www.westgrid.ca/support/software
MPI Submission on Glacier • We need to tell TORQUE how many processors we need • This asks for 2 nodes and 2 processors per node (4 CPUs) • Similar script to last time, but now calling program parallelized with MPI • Adding the walltime estimate helps TORQUE schedule the job • Note that we can pass directives; • on the command line or • in the script • This time we wait in the queue
Running MPI Jobs on Matrix For Matrix, use nodes and processors/node (ppn) to tell TORQUE how many CPUs your job needs Matrix machines have 2 CPUs/Node A minimal TORQUE script to run a parallel MPI job on Matrix Standard and Error output dropped into the directory we submitted from
Running MPI Jobs on Lattice For Lattice, use nodes and processors/node to set number of processors. Lattice has 4 processors on each node. In this case we ask for 2 CPUs on one box and 2 on another A minimal TORQUE script to run a parallel MPI job on Lattice Standard and error out dropped into the directory we submitted from
Sample Serial Job on Lattice • Lattice has a high-speed Quadrics interconnect • If your job is serial, it does not take advantage of the Quadrics interconnect • Glacier may be an alternative • Having said that, many serial jobs are run on Lattice
Running Serial Jobs on Lattice On Lattice, we tell TORQUE to run the job described in the script file serialhello.pbs A minimal TORQUE script to run a serial job on Lattice Standard and error out dropped into the directory we submitted from
Running Serial Jobs on Cortex On Cortex, we tell TORQUE to run the job described in the script file mpihello.pbs The script which describes how we want cortex to run the parallel program mpihello The standard output file, dropped into our working directory
Sample Parallel Job on Nexus • Nexus is a collection of SGI SMP machines • Several sizes serviced by different queues. • Test on smaller machines, heavy lifting on large ones • A good home for parallel jobs with intense communication requirements and/or large memory needs • More information at; http://www.ualberta.ca/AICT/RESEARCH/PBS/index.westgrid.html
Running OpenMP Jobs on Nexus You can try trivial OpenMP jobs from the command line. This job ran interactively on the head node. You should not use more than 2 processors for interactive jobs. To run jobs requiring real processing, you must submit them to TORQUE For Nexus, match ncpus with OMP_NUM_THREADS In this case we ask for 8 CPUs on the Helios machine (8-32 CPUs)
Sample Serial Job on Robson • Robson is a new 56 processor Power5 system • 64-bit Linux • Good for serial work, may be suitable for some parallel processing. • Message passing through MPI • More info at; http://www.westgrid.ca/support/robson
Running Serial Jobs on Robson This is a minimal serial job submission script for Robson. It runs the executable “hello” A more elaborate script example is available; http://www.westgrid.ca/support/robson Robson also runs MPI parallel jobs, as described on the above web page
Shortening HPC Cycle • Try your jobs at different sites • Test your process on small jobs • Give realistic walltimes, memory requirements • Apply for a larger Resource Allocation • http://www.westgrid.ca/manage_rac.html
Summary • HPC jobs have differing requirements • WestGrid provides an increasing variety of tools • Use the system that is best for your job • Start off simple and small • Find out how well your job scales • Getting help • Because of implementation differences, “man qsub” might not be your best source of help • Support pages as listed throughout this presentation • Email support@westgrid.ca