CARC web archive · Archived copy of alliance.unm.edu/Computing/AHPCC/Documentation/Linux_Ref_Card/linux_ref_card.html as captured by the Internet Archive on 11 July 2002. Links to pages that were not saved here go to the Wayback Machine. Icons the Internet Archive did not save were redrawn for this copy and are not originals (hover over one to see). Grey boxes mark images that were never archived. Wayback copy · All pages in this snapshot · Web archive index
 Education  (image not archived)

Linux Supercluster Reference Card

This page includes:

  • Access
  • Mail
  • Compilers
  • Your Account
  • Programming Tools
  • Selecting a MPI Library
  • Compiling with MPI
  • Job Managers

For assistance, please contact the Help Desk at help@ahpcc.unm.edu or (505)  277-8249 (Monday through Friday, 9 a.m. to 5 p.m. Mountain Time)

For additional documentation, please see: http://www.ncsa.uiuc.edu/SCD/Info/MoreHelp.html


Access

Depending on your allocation, login to the appropriate Linux Supercluster  using secure-shell (ssh):

    %  ssh roadrunner.alliance.unm.edu

    %  ssh loslobos.alliance.unm.edu

Transfer files to the Linux Superclusters from your home machine  using secure copy protocol (scp):

    %  scp <file> <user>@<Linux_Superluster>.alliance.unm.edu:dest


Your Account

Change password on the Linux Superclusters:

    %  yppasswd

Change default shell on the Linux Superclusters:

    %  ypchsh


Mail

You need to forward your mail to your local system. To forward mail,  create or modify the .forward file with:

    <username@host.domain>


Compilers

If 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.

C - GNU

%  gcc –o exec [options] filename(s).c

C - PGI

%  pgcc –o exec [options] filename(s).c

C++ - GNU

%  g++ –o exec [options] filename(s).C

C++ - PGI

%  pgCC –o exec [options] filename(s).C

Fortran77 - GNU

%  f77 –o exec [options] filename(s).f

Fortran77 - PGI

%  pgf77 –o exec [options] filename(s).f

Fortran90/95 - PGI

%  pgf90 –o exec [options] filename(s).f90

%  pghpf –o exec [options] filename(s).hpf

Fortran90/95 - NAG

%  f95 –o exec [options] filename(s).f95

Fortran90/95 - Absoft

%  f90 –YEXT_NAMES=LCS –YEXT_SFX=_ –o exec [options] filename(s).hpf


Programming  Tools

Source code debuggers:

GNU

%  gdb

%  xxgdb

PGI

%  pgdbg

 

Performance profiler:

PGI

%  pgprof

 

TotalView MPI Debugger:

Etnus

%  totalview


Selecting a MPI Library

There are 16 MPI libraries on the Linux Superclusters, a set of four  using Myrinet and four using Ethernet for each Linux Supercluster. Select  a library by setting the MPIHOME environment variable. You can set this  variable by removing the comment sentinel (#) from the beginning of the  line specifying the library that you want to use. Be sure that the beginning  of the lines for the other libraries start with the comment sentinel (#).  Refer to your .cshrc file for examples. Use the "which" command to verify your compile library.

For example:

    %  which mpicc

    /usr/parallel/ll/mpich-gm.pgi/bin/mpicc

shows that you are using GM with PGI compilers.


Compiling with  MPI

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


Job Managers

PBS supports 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 - 1 ppn

#PBS –l nodes=n
gmpiconf $PBS_NODEFILE
mpirun -np n.exec

 

Ethernet - 1 ppn

#PBS  –l nodes=n
mpirun  -np n.exec

 

Myrinet - 2 ppn

#PBS  –l nodes=n
gmpiconf2  $PBS_NODEFILE
mpirun  –np 2*n <prog>.exec

 

Ethernet - 2 ppn

#PBS  –l nodes=n
mpirun -np 2*n -machinefile $PBS_NODEFILE <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:

MyrinetEthernet1 ppn

If Myrinet 1 ppn:

% gmpiconf $PBS_NODEFILE
% mpirun  -np n.exec

 

If Ethernet 1 ppn

% mpirun  -np n.exec

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>

[Home] [Inside Us] [Computing] [Research] [Education] [SiteMap]

Please contact our Webmaster with questions or comments.
© Copyright 2001 Albuquerque High Performance Computing Center.  All rights reserved.