This page contains information regarding compiling and running C and FORTRAN code on the UCSC beowulf, UpsAnd. UpsAnd is a 120 node beowulf cluster, with each node consisting of two 1.4 GHz Athlon processors and 1 GB of RAM.
Logging onto UpsAnd is done via ssh:
Copying files from/to UpsAnd is done via scp: while on UpsAnd,
The following is a list of PI's, their email, and the current node division.
| PI | Nodes | |
| Asphaug | asphaug@emerald.ucsc.edu | None |
| Glatzmaier | glatz@emerald.ucsc.edu | n111 - n116, n121 - n126, n131 - n136, n141 - n146 |
| Lin | lin@ucolick.org | n211 - n216, n221 - n226, n231 - n236, n241 - n246 |
| Primack | joel@scipp.ucsc.edu | n311 - n316, n321 - n326, n331 - n336, n341 - n346 |
| Woosley | woosley@ucolick.org | n411 - n416, n421 - n426, n431 - n436, n441 - n446 |
Another good email to have is Shawfeng Dong, dong@ucolick.org. Shaw administrates the beowulf and is responsible for keeping it up and running, updating and installing software and pretty much all the details.
On the frontend UpsAnd each user has a home directory (/home1/userid or /home2/userid), which is also NFS mounted by all the nodes. The home directories locate on two RAID hard disk arrays, with a capacity of 700 GB each.
Warning !: You are advised to back up your data frequently. The RAID arrays only provide minimum protection against one hard disk failure.
Warning !: The home directories sometimes get inconveniently full, so much so that simulations have crashed. Please keep your directory under 50 GB. Check your disk use periodically by doing a "du -k" from your home directory.
Although not recommended, if you need to write files local to the compute nodes write them to /scratch, which is a bit under 32 GB on each compute node. To get files off a compute node that have been written into /scratch, do the following on the frontend UpsAnd:
This will copy the file called yourfile.dat from /scratch on n112 to the directory you are in on the frontend.
We recommend you to use PGI compilers to compile your code. PGI High-Performance Compilers and Tools (version 5.1) are installed on UpsAnd. Please refer to the following links for online documentation:
Using MPI (Message Passing Interface) is the only supported method to write and run parallel programs on UpsAnd. ScaMPI, Scali's optimized implementation of MPI, is installed on UpsAnd. For technical details, please refer to the following online documentation:
You may also want to check the directory /opt/scali/examples/src or /opt/scali/doc/ on UpsAnd for various examples and information.
Below I include a sample Makefile used to compile the C program GADGET on UpsAnd (courtesy Thomas Cox), another sample Makefile for the Fortran program NBODY5, and a command line for the compilation of Gary's FORTRAN code. These tools will be valuable references for editing your makefiles and/or creating scripts to compile your C or FORTRAN code.
There are two methods of submitting and running programs on the cluster: mpimon and OpenPBS.
For technical details, please refer to ScaMPI User's Guide (PDF). In general the command to submit your MPI job with mpimon is:
In the above command, the 2 after nxxx tells mpi to run 2
mpi tasks on one node. Each node has 2 processors. If you want to run only
one process per node, leave off the 2's after each nxxx.
Here we include two examples for running programs on UpsAnd:
We have also installed ScaOPBS on UpsAnd. ScaOPBS is the Scali binary packaging of OpenPBS, which provides an easy way for submitting, monitoring, modifying and deleting MPI jobs. For technical details, please refer to the following links for online documentation:
In general the command to submit your MPI job using ScaOPBS is:
This example will start a total of 4 processes, two processes per node.
A brief summary of ScaOPBS/OpenPBS commands:
Please see man pages for each command for detailed description and options.
Since users play an active role in selecting the nodes for their jobs and monitoring their jobs while they are running there exists several tools to view the current status of the beowulf.
There is a visualization machine called twopiter. Please contact Shawfeng Dong (dong@ucolick.org) for information regarding twopiter.
Q: How do I change my login shell?
A: To change shell type, "chsh", at the current shell prompt and
type the appropriate responses.
Q: What about graphics and visualization?
A: No graphics are allowed on the compute nodes due to throughput and
security considerations. Thus there are no graphics applications or
X11 libraries on the compute nodes. Forwarding of packets from the
compute nodes on the internal network is not allowed beyond the
frontend. X11 forwarding is not allowed. Visualization is to be done
on the Visualization workstation so kindly provided by Joel Primack.
Please contact Shawfeng Dong for information regarding this facility
(dong@ucolick.org).
Q: Can I put some 3rd party software on UpsAnd?
A: Due to manpower considerations installation and maintenance of
3rd party software are the responsibility of the user. The software
and supporting libraries must be installable in the user's own
directory. Installation of plotting, graphics viewers, and other visualization
packages are not encouraged, even on the frontend, since this leads
to performance issues that impact the activity of other users.