![]() |
|
Linux Supercluster Reference Card The University of New Mexico & National Computational Science Alliance
AccessDepending on your allocation, login to the appropriate Linux Supercluster using secure-shell (ssh):
Transfer files to the Linux Superclusters from your home machine using secure copy protocol (scp):
Your AccountChange password on the Linux Superclusters:
% yppasswd
Change default shell on the Linux Superclusters:
% ypchsh
You need to forward your mail to your local system. To forward mail, create or modify the .forward file with:
CompilersIf you are interested in debugging your Fortran program, try the NAG compiler first. If you are interested in performance, try all compilers since each are optimized differently. MPI C++ is only supported on Ethernet and may work on Myrinet.
Programming Tools
Selecting a MPI Library
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
C |
% mpicc –o exec [options] filename(s).c |
|
C++ |
% mpiCC –o exec [options] filename(s).C |
|
Fortran77 |
% mpif77 –o exec [options] filename(s).f |
|
Fortran90 |
% mpif90 -o exec [options] filename(s).f90 |
PBS and LRM/Maui support two types of modes for running your job – batch and interactive. With interactive, a session is automatically started on one of the compute nodes assigned to you through the Job Manager. In the following scripts, ppn = process(es) per node and n = number of nodes requested.
Portable Batch System (PBS)
|
PBS Batch Mode Sample Scripts: |
||
|
|
Myrinet |
Ethernet |
|
1 ppn |
#PBS –l nodes=n gmpiconf $PBS_NODEFILE mpirun
-np n |
#PBS –l nodes=n mpirun -np n
|
|
2 ppn |
#PBS –l nodes=n gmpiconf2 $PBS_NODEFILE mpirun –np 2*n <prog>.exec |
#PBS –l nodes=n mpirun –np 2*n <prog>.exec |
Standard output and error files will be written to your working directory. To submit the script to PBS, use the following command:
% qsub <pbs_script>
PBS Interactive Mode Sample Session:
Request an interactive session with n
nodes:
% qsub –I –l nodes=n <pbs_script>
Change directory to:
$PBS_O_WORKDIR (your working directory).
Run your program as follows:
| Myrinet | Ethernet | |
| 1 ppn | If Myrinet 1 ppn:
% gmpiconf $PBS_NODEFILE %
mpirun
-np n |
If Ethernet 1 ppn %
mpirun
-np n
|
| 2 ppn |
If Myrinet 2 ppn: % gmpiconf2 $PBS_NODEFILE % mpirun –np 2*n <prog>.exec |
If Ethernet 2 ppn % mpirun –np 2*n <prog>.exec |
Release your nodes when finished by typing:
% exit
Display contents and status of queue:
% qstat
Remove job from queue:
% qdel <job_id>
Linux Resource Manager (LRM) and Maui Scheduler - LosLobos
If you want to run an executable only, compose a script like the following
table:
|
LRM Batch Mode Sample Scripts: |
||
|
|
Myrinet |
Ethernet |
|
1 ppn |
WCLimit == <WCLimit> JobType == "mpi.ch_gm" Tasks == n Nodes == n TaskPerNode == 1 Output == "<script>.out" Err == "<script>.err" Log == "<script>.log" Exec == "<prog>.exec" |
WCLimit == <WCLimit> JobType == "mpi.ch_p4" Tasks == n Nodes == n TaskPerNode == 1 Output == "<script>.out" Err == "<script>.err" Log == "<script>.log" Exec == "<prog>.exec" |
|
2 ppn |
WCLimit == <WCLimit> JobType == "mpi.ch_gm" Tasks == 2*n Nodes == n TaskPerNode == 2 Output == "<script>.out" Err == "<script>.err" Log == "<script>.log" Exec == "<prog>.exec" |
WCLimit == <WCLimit> JobType == "mpi.ch_p4" Tasks == 2*n Nodes == n TaskPerNode == 2 Output == "<script>.out" Err == "<script>.err" Log == "<script>.log" Exec == "<prog>.exec" |
*WCLimit (Wall Clock Limit) is in seconds.
Standard output and error files will be written to your working directory. To submit the script to LRM/Maui, use the following command:
% submitjob <lrm_script>
|
*If you want to execute your program inside of a secondary script (that would allow running of multiple executables, setup other environmental variables, etc.), in your LRM script use the following:
To submit your job:
Sample secondary LRM script:
|
LRM/Maui Interactive Mode Sample Session:
Request an interactive session with n
nodes:
% submitjob –I nodes = n
Run your program as follows:
|
|
Myrinet |
Ethernet |
|
1 ppn |
%
gmpiconf $NODE_FILE |
%
mpirun
-np n |
|
2 ppn |
%
gmpiconf2 $NODE_FILE |
% mpirun –np 2*n <prog>.exec |
Release your nodes when finished by typing:
% exit
|
*You can submit jobs to LRM with a LRM script or with a PBS script and specify a PBS job type. Submit PBS scripts to LRM with the following command:
|
Display contents and status of queue:
% showq
Remove job from queue:
% canceljob <job_id>

| The
University of New Mexico Albuquerque High Performance Computing Center Galles Building - 1601 Central Avenue, NE Albuquerque, NM 87131 Phone # 505.277.8249000000Fax # 505.277.8235 |
Last Modified: December 1, 2000
|