Mamba User Notes

The Mamba Cluster is a new HPC resource that is dedicated to supporting student access associated with class assignments. Mamba is available to students in a designated set of courses.

Access to Mamba

Mamba can be accessed via SSH to “” using NinerNET credentials (username and password).    This will connect the user to the Mamba Interactive/Submit host which should be used to perform tasks such as transferring data using SCP or SFTP, and for code development.

From this node, a user can submit jobs requesting the following resources:

General Compute Nodes (4 x 16 cores ea = 64 procs)

GPU Compute Nodes (2 x 2 GPUS ea = 4 GPUs)

Jobs should always be submitted to the “mamba” queue unless directed otherwise by your instructor.

Mamba Storage

Each student is given a default storage quota of 150 GBs for their home directory located at /users/<username>.   This volume is BACKED Up nightly.  Users can check their current quota usage using the command “urcquota”.

Each class also has a shared folder located at /projects/class/<course id> which instructors may use to share information or data with class members.

Accessing Software

Mamba uses environment modules to set up the user environment to use specific software packages. Additional details on modules can be found at


Mamba has access to three compiler suites:  Gnu, Intel and PGI each of which can be accessed via the corresponding environment module.  For example,

$ module load intel
$ icc myprogram.c

Some instructors may require students to complete assignments using a specific compiler suite.

Submitting Jobs

Mamba uses a batch scheduling environment to manage access to the computational resources. To submit a job to the scheduler, users must prepare a “submit script”.   At its simplest, a submit script ( would look like this:

#! /bin/bash
# ==== Main ======

And would be submitted to the cluster as follows:

qsub –N “MyJob” –q mamba

Submit scripts may also load any needed environment modules and set additional parameters specifying details of the desired execution environment (e.g. number of required processes, memory size, gpu access, etc.)

Additional details on job submission are available at  and additional example submit scripts are available for most applications in the folder /apps/torque/examples/.

Parallel Processing with OpenMPI

Mamba supports parallel processing via message passing.  To access OpenMPI ,load the desired modules: e.g.

$ module load intel openmpi
$ mpicc myprogram.c

And include a request for multiple processes in the submit script:

#! /bin/bash
# ===== PBS OPTIONS =====
### Set the job name
#PBS -N “MyJob”
### Run in the queue named “mamba”
#PBS -q mamba
### Specify the number of cpus for your job.
#PBS -l nodes=4:ppn=4
# ==== Main ======
module load intel openmpi
mpirun /users/<username>/myprogram

and submit with qsub:

$ qsub

The pbs options may also be set on the qsub command line as follows

$ qsub –N “MyJob” –q mamba –l nodes=4:ppn=4

In this example, the resource request is for 4 cores (or processes) on each of 4 compute nodes for a total of 16 processes.

GPU access

The mamba cluster includes two nodes with Nvidia K80 GPUs.  These resources may also be requested on the qsub command line:

$ qsub –l nodes=2:ppn=1:gpus=1

which would request one core and one gpu on each of 2 compute nodes.