Software & Applications

Application guides, software environments, and compilation on CUNY HPCC.

Software Applications

Software Applications

Finding and Running Applications

Finding Software

CUNY HPCC uses Lmod to make applications and their dependencies available. Search for a package and examine the available versions before choosing one:

module avail
module spider <application>
module spider <application>/<version>

Load the version required by your workflow with module load <application>/<version>. Module names, versions, and availability can differ across systems. Use the output of module spider to identify prerequisites and the executable supplied by a module.

Running an Application

Prepare input and a Slurm script on Arrow. Include the required module commands in the script, request resources appropriate to the application, and run the application on allocated compute nodes. Stage the input to scratch and preserve output in appropriate storage. Add the correct --wckey when you have more than one project.

The application guides in this book introduce common workflows. Check module names and versions on the system assigned to you, and contact HPCC support if a required module or version is unavailable.

Software Applications

Python and R

Python

Use module spider python to find available Python environments. Load the appropriate version before running Python or installing packages so that the interpreter and packages match. Check the active interpreter with which python and python --version.

For a Python batch job, load the same module in the Slurm script and run your script with srun python analysis.py. Install project dependencies in a user-controlled environment appropriate to the selected Python version. Confirm package and network access requirements with HPCC support.

R

Use module spider R to locate R and load the appropriate module. A noninteractive script can be run in an allocated Slurm job with srun Rscript analysis.R. Install user packages in an appropriate user library and load them with library() in the script.

Before Running

Stage input files to scratch, include the partition, QoS, and project WCKey as appropriate, and request sufficient time and memory. Check the module system for available Python and R versions.

Software Applications

GROMACS

Overview

GROMACS is a molecular dynamics package used for simulations of molecular systems. Depending on the build and workload, it can use CPU threads, MPI processes, and GPUs. The best resource allocation depends on the simulation, the GROMACS version, and the available hardware.

Preparing a Job

  1. Find the available build with module spider gromacs and load the appropriate module.
  2. Prepare the simulation input using the tools and documentation for that version.
  3. Stage the input to scratch and submit the run using Slurm. Request GPUs only for a GPU-enabled build and workload.
  4. Keep application thread and MPI settings consistent with the resources requested in the job script.

Test a representative simulation with different CPU, MPI, and GPU allocations before scaling up. GROMACS command options and acceleration capabilities vary between versions; consult the installed version's help and contact HPCC support for the recommended build.

Software Applications

LAMMPS

Overview

LAMMPS runs molecular dynamics simulations from input scripts describing the model and run. Depending on its build, it can use MPI, CPU threads, and GPU acceleration. Available packages and executable names depend on how LAMMPS was built.

Running a Simulation

Find the installed module with module spider lammps, load the appropriate version, and check the module's instructions for the executable and supported packages. Stage the input script and data to scratch. Submit the application with Slurm, matching the number of MPI tasks, CPU cores, and GPUs to the build and input.

Begin with a small test and inspect the LAMMPS log before running a larger simulation. GPU and MPI settings depend on the node, build, and simulation.

Software Applications

NWChem and Gaussian

NWChem

NWChem supports computational chemistry workflows and can use parallel resources. Find the available installation with module spider nwchem and load the version appropriate to the calculation. Prepare an input file and submit the executable through Slurm using the launcher and task count appropriate to the installed build.

The NWChem input's memory settings and the job's Slurm memory request must be planned together. Check whether application memory limits are expressed per process for your calculation and allow room for the full job.

Gaussian

Find available Gaussian modules with module spider gaussian. Gaussian calculations use input files and may create large scratch files. Set up the working and scratch locations according to the installed module's instructions, request the CPUs and memory needed by the calculation, and submit through Slurm. Preserve required results and clean temporary files after the job finishes.

Software versions, licensing, executable names, and supported node configurations can change. Consult module help or HPCC support for the installation you plan to use.

Software Applications

WRF and ADCIRC

WRF

WRF workflows commonly include preprocessing with WPS, running the model, and post-processing its output. Each stage has its own input data, software requirements, and resource needs. Find the available build with module spider WRF, consult the module's instructions, and use Slurm for computational stages.

ADCIRC

ADCIRC supports coastal modeling and may be used in serial or parallel configurations depending on the build and problem. Find the available module with module spider ADCIRC; prepare the required model inputs and submit an appropriate serial or MPI job through Slurm.

Planning the Workflow

Stage required data to scratch, use small representative tests to validate the executable and inputs, and retain outputs in persistent storage. Confirm module names and launch instructions for your assigned system.

Software Applications

Other Scientific Applications

Available Packages

HPCC application documentation covers computational chemistry, biology, genomics, engineering, and statistics. Examples include AUGUSTUS, BEAST, Bowtie2, CP2K, GAMESS, GPAW, Mathematica, MrBayes, NAMD, OpenFOAM, ORCA, QIIME, RAxML, SAMtools, STRUCTURE, and Trinity. Availability and access vary by system and version.

Finding Current Instructions

Use module spider <application> to find a current module and module spider <application>/<version> for details. Consult the application's documentation for required input files, supported parallel and GPU modes, citation requirements, and resource needs. Load the necessary modules in your Slurm script and test with a small input.

If an application or version is missing, contact HPCC support with the software name, version, project, and intended workload. The List of Available Lmod Modules is an inventory reference; use the live module system to check current availability.

Compiling and Developing Programs

Compiling and Developing Programs

Compiling C, C++, and Fortran Programs

Choosing a Compiler

Compilers translate source code into executable programs. HPCC provides software through Lmod; use module spider to find available compiler suites and versions. The compiler used to build an application should be compatible with its libraries and the target compute environment.

Example: Serial Compilation

After loading an appropriate GNU compiler module, examples include:

gcc -O2 -o myprogram myprogram.c
g++ -O2 -o myprogram myprogram.cpp
gfortran -O2 -o myprogram myprogram.f90

These commands are examples; use the options and libraries required by your code. Compile and test small programs on the login environment, then run computational workloads through Slurm. Retain source code and important executables in appropriate persistent storage and stage what the job needs to scratch.

Compiler versions and flags vary by installation. Check module help and compiler documentation for available options.

Compiling and Developing Programs

Compiling OpenMP and MPI Programs

OpenMP

OpenMP programs use multiple threads within a process. With a compatible GNU compiler, enable OpenMP when compiling and linking, for example:

gcc -O2 -fopenmp -o omp_program omp_program.c

For the Slurm job, request one task and the desired number of CPUs per task, and set OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK. The program must actually use OpenMP to benefit from the additional cores.

MPI

MPI programs exchange messages between processes and may run on multiple nodes. Load a compatible compiler and MPI module, then use the compiler wrapper supplied by that MPI installation, for example:

mpicc -O2 -o mpi_program mpi_program.c

Submit the executable as a Slurm job with the required task and node counts. Use the MPI launch method documented for the installed build. Do not mix an executable built with one MPI implementation with an incompatible runtime. See Parallel and Multithreaded Jobs and Distributed (Multi-Node) Jobs in Slurm & Job Scheduling.

Compiling and Developing Programs

GPU Programming and Scientific Libraries

GPU Programs

GPU applications require a compatible accelerator, software environment, and build. Locate the available CUDA or other toolchain modules with module spider and follow the compiler instructions for the installed version. Build for the GPU architectures supported by the selected toolchain and nodes. Request GPU resources in Slurm before running a GPU program.

Scientific Libraries

Scientific libraries include FFTW, GNU Scientific Library (GSL), Intel MKL, and IMSL. Libraries provide numerical routines; availability, licensing, module names, include paths, and link flags depend on the installation. Use module spider <library> and module help to locate versions and dependencies.

Match compiler, MPI implementation, and library builds. Check the library's documentation for the correct include and link options, then test a small executable before submitting a larger workload. Contact HPCC support if a required library or version is unavailable.

Compiling and Developing Programs

COARRAY FORTRAN AND UNIFIED PARALLEL C (PGAS) PROGRAM COMPILATION AND SLURM JOB SUBMISSION (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

CoArray Fortran and Unified Parallel C (PGAS) Program Compilation and SLURM Job Submission

As part of its plan to offer CUNY HPCC users a unique variety of HPC parallel programming alternatives (beyond even those described above), the HPC Center support a two cabinet 2816 core Cray XE6m system called SALK. This system supports two newer and similar, language-integrated and highly scalable approaches to parallel programming, CoArray Fortran (CAF) and Unified Parallel C (UPC). Both are extensions of their parent languages, Fortran and C respectively, and offer a symbolically concise alternative to the de facto standard, message-passing model, MPI. CAF and UPC are so-called Partitioned Global Address Space (PGAS) parallel programming models. Unlike MPI, CAF and UPC are not based on a subroutine library call API.

Both MPI and the PGAS approach to parallel programming rely on a Single Program Multiple Data (SPMD) model. In the SPMD parallel programming model, identical collaborating programs (with fully separate memory spaces, or program images) are executed by different processors that may or may not be separated by a network. Each processor-program produces different parts of the result in parallel by working on different data and taking conditionally different paths through the same code. The PGAS approach differs from MPI in that it abstracts away as much as possible, reducing the way that communication is expressed to minimal built-in extensions to the base language, in our case C and Fortran. In large part, CAF and UPC are free of extension-related, explicit library calls. With the underlying communication layer abstracted away, PGAS languages appear to provide a singular, global memory space spanning its processes.

In addition, communication among processes in a PGAS program is one-sided in the sense that any process can read and/or write into the memory of any other process without informing it of its actions. Such one-sided communication has the advantage of being economical, lowering the latency (first byte delay) that is part of the cost of communication among different parallel processes. Lower latency parallel programs are generally more scalable because they waste less time in communication, especially when the data to be moved are small in size, in finer-grained communication patterns.

Summarizing, PGAS languages such as CAF and UPC offer the following potential advantages over MPI:

1. Explicit communication is abstracted out of the PGAS programming model.

2. Process memory is logically unified into a global address space.

3. Parallel work is economically expressed through simple extensions
    to a base language, rather than through a library-call-based API.

4. Parallel coding is easier and more intuitive.

5. Performance and scalability are better because communication latency is lower.

6. Implementation of fine-grained communication patterns is faster, easier.

The primary drawbacks of PGAS programming models include much less wide-spread support than MPI on common case HPC system architectures such as traditional HPC clusters, and the need for special hardware support to get best-case performance out of the PGAS model. Here at the CUNY HPCC, the Cray XE6m system, SALK, has a custom interconnect (Gemini) that supports both UPC and CAF. These PGAS languages can be run on standard clusters, but the performance is not typically as good. The HPC Center supports Berkeley UPC and Intel CAF on top standard cluster interconnects without the advantage of PGAS hardware support.

An Example CoArray Fortran (CAF) Code

The following simple example program includes some of the essential features of the CoArray Fortran (CAF) programming model, including multiple processor, image-spanning co-array variable declaration; one-sided data transfer between CAF's memory-space-distinct images via simple assignment statements; and the use of critical regions and synchronization barriers. No attempt is made here to tutor the reader in all of the features of the CAF; rather, the goal is to give the reader a feel for the CAF extensions adopted in the Fortran 2008 programming language standard that now includes CoArrays. This example, which computes PI by numerical integration, can be cut and pasted into a file and run on SALK.

A tutorial on the CAF parallel programming model can be found here [1], a more formal description of the language specifications here [2], and the actual CAF standard document as defined and adopted by the Fortran standard's committee for Fortran 2008 here [3].

! 
!  Computing PI by Numerical Integration in CAF
!

program int_pi()
!
implicit none
!
integer :: start, end
integer :: my_image, tot_images
integer :: i = 0, rem = 0, mseg = 0, nseg = 0
!
real :: f, x
!

! Declare two CAF scalar CoArrays, each with one copy per image

real :: local_pi[*], global_pi[*]

! Define integrand with Fortran statement function, set result
! accuracy through the number of segments

f(x) = 1.0/(1.0+x*x)
nseg = 4096

! Find out my image name and the total number of images

my_image   = this_image()
tot_images = num_images()

! Each image initializes its part of the CoArrays to zero

local_pi  = 0.0
global_pi = 0.0

! Partition integrand segments across CAF images (processors)

rem = mod(nseg,tot_images)

mseg  = nseg / tot_images
start = mseg * (my_image - 1)
end   = (mseg * my_image) - 1

if ( my_image .eq. tot_images ) end = end + rem

! Compute local partial sums on each CAF image (processor)

do i = start,end
  local_pi = local_pi + f((.5 + i)/(nseg))

! The above is equivalent to the following more explicit code:
!
! local_pi[my_image]= local_pi[my_image] + f((.5 + i)/(nseg))
!

enddo

local_pi = local_pi * 4.0 / nseg

! Add local, partial sums to single global sum on image 1 only. Use
! critical region to prevent read-before-write race conditions. In such
! a region, only one image at a time may pass.

critical
 global_pi[1] = global_pi[1] + local_pi
end critical

! Ensure all partial sums have been added using CAF 'sync all' barrier
! construct before writing out results

sync all

! Only CAF image 1 prints the global result

if( this_image() == 1) write(*,"('PI = ', f10.6)") global_pi

end program

This sample code computes PI in parallel using a numerical integration scheme. Taking its key CAF-specific features in order, first we find the declaration of two simple scalar co-arrays (local_pi and global_pi) using CAF's square-bracket notation for the co-array, (e.g. sname[*], vname(1:100)[*], or vname(1:8,1:4)[1:4,*]). The square bracket notation follows the standard Fortran array notation rules, except that the last dimension is always indicated with a asterisk (*) that is expanded to ensure that the number of co-arrays co-dimensioned is equal to the number of images (processes) the application has launched.

Next, the example uses the this_image() and num_images() intrinsic functions to determine each image's image ID (a number from 1 to the number of processors requested) and the total number of images or processes requested by the job. These functions return values are stored in typical, image-local, Fortran integer variables and are used later in the example to partition the work among the processors and define image-specific paths through the code. After the integral segments are partitioned among the CoArray images or processes (using the start and end variables), each image computes its piece of the integral in what is a a standard Fortran do loop. However, the variable local_pi, as noted above, is a co-array. Two notations, one implicit and one explicit (but commented out) are presented. The implicit code, with it square-bracket notation dropped, is allowed (and encouraged for optimization reasons) when only the image-local part of a co-array is referenced by a given image. The explicit code makes it clear through the square-bracket extension [my_image] that each image is working with a local element of the local_pi co-array. When the practice of dropping the []s is adopted as a notational covention, all remote, co-array references (which are more time consuming operations) in are immediately, visually identifiable by square-bracket suffixes in present the code. Optimal coding practice should seek to minimize the use of square-bracketed references where possible.

With the local, partial sums computed by each image and placed in their piece of the local_pi[*] co-array, a global sum is then safely computed and written out only on image 1 with the help of a CAF critical region. Within a critical region, only one image (process) may pass at a time. This ensures that global_pi[1] is accurately summed from each local_pi[my_image] avoiding mistakes that might be caused by simultaneous reads of the same still partially summed global_pi[1] before each image-specific increments were written. Here, we see the variable global_pi[1] with the square-bracket notation which is a reminder that each image (process) is writing its result into the memory space on image 1. This is a remote write for all images, except image 1.

The last section of the code synchronizes (sync all) the images to ensure all partial sums have been added, and then has image 1 write out the global result. Note that, as writtenhere, only image 1 has the global result. For a more detailed treatment of the CoArray Fortran language extension, now part of the Fortran 2008 standard, please see the web references included above.


The CUNY HPCC supports CoArray Fortran on both its Cray XE6 system, SALK, (which has custom hardware and software support for the UPC and CAF PGAS languages) and on its other systems where the Intel Cluster Studio provides a beta-level implementation of CoArray Fortran layered on top of Intel's MPI library, an approach that offers CAF's coding simplicity, but no performance advantage over MPI.

Here, the process of compiling a CAF program both for Cray's CAF on SALK, and for Intel's CAF on the HPC Center's other systems is described. On the Cray, compiling a CAF program, such as the example above, simply requires adding an option to the Cray Fortran compiler, as follows:

salk:
salk: module load PrgEnv-cray
salk:
salk: ftn -h caf -o int_PI.exe int_PI.f90
salk:
salk: ls
int_PI.exe
salk:

In the sequence above, first the Cray programming environment is loaded using the 'module' command; then the Cray Fortran compiler is invoked with the -h caf option to include the CAF features of the Fortran compiler. The result is a CAF-enabled executable that can be run with Cray's parallel job initiation command 'aprun'. This compilation was done in dynamic mode so that any number of processors (CAF images) can be selected at run time using the -n ## option to Cray's 'aprun' command. The required form of the 'aprun' command is shown below in the section on CAF program job submission using SLURM on the Cray.

To compile for a fixed number of processors (a static compile) or CAF images use the -X ## option on the Cray, as follows:

salk:
salk: ftn -X 32 -h caf -o int_PI_32.exe int_PI.f90
salk:
salk: ls
int_PI_32.exe
salk:

In this example, the PI example program has been compiled for 32 processors or CAF images, and therefore must be invoked with that many processors on the 'aprun' command line:

aprun -n 32 -N 16 ./int_PI_32.exe

On the HPC Center's other systems, compilation is conceptually similar, but uses the Intel Fortran compiler 'ifort' and requires a CAF configuration file to be defined by the user. Here is a typical configuration file to compile statically for 16 CAF images followed by the compilation command. This compilation requests a distributed mode compilation in which distinct CAF images are not expected to be on the same physical node.

andy$cat cafconf.txt
-rr -envall -n 16 ./int_PI.exe
andy$
andy$ifort -o int_PI.exe -coarray=distributed -coarray-config-file=cafconf.txt int_PI.f90

The Intel CAF compiler is relatively new and has had limited testing on CUNY HPCC systems. It also makes use of Intel's MPI rather than the CUNY HPCC default, OpenMPI, which means that Intel CAF jobs will not be properly account for. As such, we recommend that Intel CAF compiler be used for development and testing only, while production CAF codes be run on SALK using Cray's CAF compiler. An upgrade is planned for the Intel Compiler Suite in the near future, and this should improve the performance and functionality of Intel's CAF compiler release. Additional documentation on using Intel CoArray Fortran is available here.

Submitting CoArray Fortran Parallel Programs Using SLURM

Finally, two SLURM scripts that will run the above CAF executable. First, one for the Cray XE6 system, SALK:

#!/bin/bash
#SLURM -q production
#SLURM -N CAF_example
#SLURM -l select=64:ncpus=1:mem=2000mb
#SLURM -l place=free
#SLURM -o int_PI.out
#SLURM -e int_PI.err
#SLURM -V

cd $SLURM_O_WORKDIR

aprun -n 64 -N 16 ./int_PI.exe

Above, the dynamically compiled executable is run on 64 SALK, Cray XE6 cores (-n 64) with 16 cores packed to a physical node (-N 16). More detail is presented below on SLURM job submission to the Cray and on the use of of the Cray's 'aprun' command. On the Cray, 'man aprun' provides an important and detailed account of the 'aprun' command-line options and their function. One cannot fully understand job control and submission on the Cray (SALK) without understanding the 'aprun' command.

A SLURM script for the example code compiled dynamically (or statically) for 16 processors with the Intel compiler (ifort) for execution on one of the HPC Center's more traditional HPC clusters looks like this:

#!/bin/bash
#SLURM -q production
#SLURM -N CAF_example
#SLURM -l select=16:ncpus=1:mem=1920mb
#SLURM -l place=scatter
#SLURM -V

echo ""
echo -n "The primary compute node hostname is: "
hostname
echo ""
echo -n "The location of the SLURM nodefile is: "
echo $SLURM_NODEFILE
echo ""
echo "The contents of the SLURM nodefile are: "
echo ""
cat  $SLURM_NODEFILE
echo ""
NCNT=`uniq $SLURM_NODEFILE | wc -l - | cut -d ' ' -f 1`
echo -n "The node count determined from the nodefile is: "
echo $NCNT
echo ""

# Change to working directory
cd $SLURM_O_WORKDIR

echo "You are using the following 'mpiexec' and 'mpdboot' commannds: "
echo ""
type mpiexec
type mpdboot
echo ""

echo "Starting the Intel 'mpdboot' daemon on $NCNT nodes ... "
mpdboot -n $NCNT --verbose --file=$SLURM_NODEFILE -r ssh
echo ""

mpdtrace
echo ""

echo "Starting an Intel CAF job requesting 16 cores ... "

./int_PI.exe

echo "CAF job finished ... "
echo ""

echo "Making sure all mpd daemons are killed ... "
mpdallexit
echo "SLURM CAF script finished ... "
echo ""

Here, the SLURM script requests 16 processors (CAF images). It simply names the executable itself to setup the Intel CAF runtime environment, engage the 16 processors, and initiate execution. This script is more elaborate because it include the procedure for setting up and breaking down the Intel MPI environment on the nodes that SLURM has selected to run the job.

An Example Unified Parallel C (UPC) Code

The following simple example program includes the essential features of the Unified Parallel C (UPC) programming model, including shared (globally distributed) variable declaration and blocking, one- sided data transfer between UPC's memory-space distinct threads via simple assignment statements, and synchronization barriers. No attempt is made here to tutor the reader in all of the features of the UPC; rather the goal is to give the reader a feel for basic UPC extensions to the C programming language. A tutorial on the UPC programming model can be found here [4], a user guide here [5], and a more formal description of the language specifications here [6]. Cray also has its own documentation on UPC [7]

// 
//  Computing PI by Numerical Integration in UPC
//

// Select memory consistency model (default).

#include<upc_relaxed.h> 

#include<math.h>
#include<stdio.h>

// Define integrand with a macro and set result accuracy

#define f(x) (1.0/(1.0+x*x))
#define N 4096

// Declare UPC shared scalar, shared vector array, and UPC lock variable.

shared float global_pi = 0.0;
shared [1] float local_pi[THREADS];
upc_lock_t *lock;

void main(void)
{
   int i;

   // Allocate a single, globally-shared UPC lock. This 
   // function is collective, intial state is unlocked.

   lock = upc_all_lock_alloc();

   // Each UPC thread initializes its local piece of the
   // shared array.

   local_pi[MYTHREAD] = 0.0;

   // Distribute work across threads using local part of shared
   // array 'local_pi' to compute PI partial sum on thread (processor)

   for(i = 0; i <  N; i++) {
       if(MYTHREAD == i%THREADS) local_pi[MYTHREAD] += (float) f((.5 + i)/(N));
   } 

   local_pi[MYTHREAD] *= (float) (4.0 / N);

   // Compile local, partial sums to single global sum.
   // Use locks to prevent read-before-write race conditions.

   upc_lock(lock);
   global_pi += local_pi[MYTHREAD];
   upc_unlock(lock);

   // Ensure all partial sums have been added with UPC barrier.

   upc_barrier;

   // UPC thread 0 prints the results and frees the lock.

   if(MYTHREAD==0) printf("PI = %f\n",global_pi);
   if(MYTHREAD==0) upc_lock_free(lock);

}

This sample code computes PI in parallel using a numerical integration scheme. Taking the key UPC-specific features present in this example in order, first we find the declaration of the memory consistency model to be used in this code. The default choice is relaxed which is selected explicitly here. The relaxed choice places the burden of ensuring that shared memory operations in the code that are dependent and must be order on the programmer through the use of barriers, fences, and locks. This code includes explicit locks and barriers to ensure memory operations are complete and processor have been synchronized.

Next, three declarations outside the main body of the application demonstrate the use of UPC's shared type. First, a scalar shared variable global_pi is declared. This variable can be read from and written to by any of the UPC threads (processors) allocated by the runtime environment to the application it is executed. It will hold the final result of the calculation of PI in this example. Shared scalar variables are singular and always reside in the shared memory of THREAD 0 in UPC.

Next, a shared one dimensional array local_pi with a block size of one (1) and a size of THREADS is declared. The THREADS macro is always set to the number of processors (UPC threads) requested by the job at runtime. All elements in this shared array are accessible by all THREADS allocated to the job. The block size of one means that array elements are distributed, one-per-thread, across the logically Partitioned Global Address Space (PGAS) of this parallel application. One is the default block size for shared arrays, but other sizes are possible.

Finally, a pointer to a special shared scalar variable to be used as a lock is declared. Because UPC defines both a shared and private memory spaces for each program image or THREAD, it must support four classes of pointers: private pointers to private, private pointers to shared, shared pointers to private, and shared pointers to shared. The pointer declared here is a shared pointer to shared which makes the lock's memory location available to all threads. In the body of the code, the lock's memory is allocated and placed in the unlocked state with the call to upc_all_lock_alloc().

Next, each thread initializes its piece of the shared array local_pi to zero with the help of the MYTHREAD macro, which contains the thread identifier of the particular thread that does the assignment. In this case, each UPC thread initializes only the part of the share array the is in its portion of shared PGAS memory. The standard C for-loop that follows divides the work of integration among the different UPC threads so that each thread works on its only local portion of the shared array local_pi. UPC provides a work-sharing loop construct upc_forall that accomplishes the same thing implicitly.

Processor-local (UPC thread) partial sums are then summed globally and in a memory consistent fashion with the help of the UPC lock function upc_lock() and upc_unlock(). Without the explicit locking code here, there would be nothing to prevent two UPC threads from reading the most current value in memory before it had been updated with a latest partial sum. This would produce an incorrect under-summing of the result. Next, a upc_barrier ensures all the summing is completed before the result is printed and the lock's memory is freed.

This example includes some of the more important UPC PGAS-parallel extensions to the C programming language, but a complete review of the UPC parallel extension to C is provide in the web documentation referenced above.

As suggested above, the CUNY HPCC supports UPC on both its Cray XE6 system, SALK, (which has custom hardware and software support for the UPC and CAF PGAS languages) and on its other systems where Berkeley UPC is installed and uses the GASNET library to support the PGAS memory abstraction on top of a number standard underlying cluster interconnects. At the HPC Center this would include Ethernet and/or InfiniBand depending on the CUNY HPCC cluster system being used.

Here, the process of compiling a UPC program both for Cray's UPC on SALK, and for Berkeley UPC on the HPC Center's other systems is described. On the Cray, compiling a UPC program, such as the example above, simply requires adding an option to the Cray C compiler, as follows:

salk:
salk: module load PrgEnv-cray
salk:
salk: cc -h upc -o int_PI.exe int_PI.c
salk:
salk: ls
int_PI.exe
salk:

First, the Cray programming environment is loaded using the 'module' command; then the Cray compiler is invoked with the -h upc option to include the UPC elements of the compiler. The result is an executable that can be run with Cray's parallel job initiation command 'aprun'. This compilation was done in dynamic mode so that any number of processors (UPC threads) can be selected at run time using the -n ## option to 'aprun'. The required form the 'aprun' line is shown below in the section on UPC program SLURM job submission.

To compile for a fixed number of processors (a static compile) or UPC threads use the -X ## option on the Cray, as follows:

salk:
salk: cc -X 32 -h upc -o int_PI_32.exe int_PI.c
salk:
salk: ls
int_PI_32.exe
salk:

In this example, the PI example program has been compiled for 32 processors or UPC threads, and therefore must be invoked with that many processors on the 'aprun' command line:

aprun -n 32 -N 16 ./int_PI_32.exe

On the HPC Center's other systems, compilation is conceptually similar, but uses the Berkeley UPC compiler driver 'upcc'.

andy:
andy: upcc  -o int_PI.exe int_PI.c
andy:
andy: ls
int_PI.exe
andy:

Similarly, the 'upcc' compiler driver from Berkeley allows for static compilations using its -T ## option:

andy:
andy: upcc -T 32  -o int_PI_32.exe int_PI.c
andy:
andy: ls
int_PI_32.exe
andy:

The Berkeley UPC compiler driver has a number of other useful options that are described in its 'man' page. In particular, the -network= option will target the executable for the GASNET communication conduit of the user's choosing on systems that have multiple interconnects (Ethernet and InfiniBand, for instance) or target the default version of MPI as the communication layer. Type 'man upcc' for details.

In general, users can expect better performance from Cray's UPC compiler on SALK, but having UPC on the HPC Center's traditional cluster architectures provides another location for development and supports the wider use of UPC and an alternative to MPI. In theory, well-written UPC code should perform as well as MPI on a standard cluster, while reducing the number of lines of code to achieve that performance. In practice, this is still not always the case; more development and hardware support is still needed to get the best performance from PGAS languages on commodity cluster environments.

Submitting UPC Parallel Programs Using SLURM

Finally, two SLURM scripts that will run the above UPC executable. First, one for the Cray XE6 system, SALK:

#!/bin/bash
#SLURM -q production
#SLURM -N UPC_example
#SLURM -l select=64:ncpus=1:mem=2000mb
#SLURM -l place=free
#SLURM -o int_PI.out
#SLURM -e int_PI.err
#SLURM -V

cd $SLURM_O_WORKDIR

aprun -n 64 -N 16 ./int_PI2.exe

Here the dynamically compiled executable is run on 64 Cray XE6 cores (-n 64), 16 cores packed to a physical node (-N 16). More detail is presented below on SLURM job submission on the Cray and the use of of the Cray's 'aprun' command. On the Cray 'man aprun' provides an important and detailed account of the 'aprun' command-line options and their function. One cannot fully understand job control on the Cray (SALK) without understanding 'aprun'.

A similar SLURM script for the example code compiled dynamically (or statically) for 32 processors with the Berkeley UPC compiler (upcc) for execution on one of the HPC Center's more traditional HPC cluster looks like this:

#!/bin/bash
#SLURM -q production
#SLURM -N UPC_example
#SLURM -l select=32:ncpus=1:mem=1920mb
#SLURM -l place=free
#SLURM -o int_PI.out
#SLURM -e int_PI.err
#SLURM -V

cd $SLURM_O_WORKDIR

upcrun -n 32 ./int_PI2.exe

Here, the SLURM script requests 32 processors (UPC threads). It uses the 'upcrun' command to setup the Berkeley UPC runtime environment, engage the 32 processors, and initiate execution. Please type 'man upcrun' for details on the 'upcrun' command and its options.

Compiling and Developing Programs

PROGRAM COMPILATION (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Program Compilation and Job Submission (In REVIEW)

Serial Program Compilation

The CUNY HPCC supports four different compiler suites at this time; those from Cray, Intel, The Portland Group, and GNU. Basic serial programs in C, C++, and Fortran can be compiled with any of these offerings, although the Cray compilers are available only on SALK. Man pages (e.g. for Cray, man cc, for Intel, man icc; for PGI, man pgcc; for GNU, man gcc) and manuals exist for each compiler in each suite and provide details on specific compiler flags. Optimized performance on a particular system with a particular compiler often depends on the compiler options chosen. Identical flags are accepted by the MPI-wrapped versions of each compiler (mpicc, mpif90, etc. [NOTE: SALK does not use mpi-prefixed MPI compile and run tools; it has its own]). Program debuggers and performance profilers are also part of each of these suites.

Intel's Cluster Studio (ICS) compilers, debuggers, profilers, and libraries are available on all HPC Center cluster systems.
The GNU compilers, debuggers, profilers, and libraries are available on all HPC Center cluster systems although unlike the other compilers mention, the default and mix of installed versions may not be the same on each system. This is because the HPC Center runs different version of Linux (SUSE and CentOS) at different release levels.

The Intel Compiler Suite

Intel's Cluster Studio (ICS) compilers, debuggers, profilers, and libraries are available on all HPC Center cluster systems. Note that icc suite is phased out by Intel and will be removed soon from HPCC environment.

To check for the default version installed on systems:

icc  -V

Compiling a serial C program on systems other than SALK:

icc  -O3 -unroll mycode.c

The line above invokes Intel's C compiler (also used by the default OpenMPI 'mpicc' wrapper for icc). It requests level 3 optimization and asks that loops be unrolled for performance. To find out more about 'icc', type 'man icc'.

Similarly for Intel Fortran and C++.

Compiling a serial Fortran program on systems other than SALK:

ifort -O3 -unroll mycode.f90

Compiling a serial C++ program on systems other than SALK:

icpc -O3 -unroll mycode.C

On SALK, Cray's generic wrappers (cc, CC, ftn) are used for each compiler suite (Intel, PGI, Cray, GNU). To map SALK's Cray wrappers to the Intel compiler suite, users must unload the default Cray compiler modules and load the Intel compiler modules, as follows:

module unload cce
module unload PrgEnv-cray
module load PrgEnv-intel
module load intel

This completes the following mappings and also sets the Cray environment to link to Cray's custom interconnect linked version of MPICH2, as well as other Intel-specific Cray library builds. Once the Intel modules are loaded, you may compile either serial or MPI parallel programs on SALK:

cc      ==>   icc
CC     ==>   icpc
ftn     ==>   ifort

Once the mapping is complete the mapped commands listed above will invoke the corresponding Intel compiler and recognize that compiler's Intel options. NOTE: Using the Intel compiler names directly on SALK will likely cause a problem as the Cray specific libraries (such as the Cray version of MPI) will not be included in the link phase, unless the intention is to run the executable only on the Cray login node.

So to compile a serial (or MPI parallel) C program on SALK after loading the Intel modules:

cc -O3 -unroll mycode.c

Doing the same on SALK for Intel Fortran and C++ programs is left as an exercise for the reader.

The GNU Compiler Suite

The GNU compilers, debuggers, profilers, and libraries are available on all HPC Center cluster systems although unlike the other compilers mention, the default and mix of installed versions may not be the same on each system. This is because the HPC Center runs different version of Linux (SUSE and CentOS) at different release levels.

To check for the default version installed:

gcc  -v

Compiling a serial C program on systems other than SALK:

gcc  -O3 -funroll-loops mycode.c

The line above invokes GNU's C compiler (also used by GNU mpicc). It requests level 3 optimization and that loops be unrolled for performance. To find out more about 'gcc', type 'man gcc'.

Similarly for Fortran and C++.

Compiling a serial Fortran program on systems other than SALK:

gfortran -O3 -funroll-loops mycode.f90

Compiling a serial C++ program (uses gcc) on systems other than SALK:

gcc -O3 -funroll-loops mycode.C

On SALK, Cray's generic wrappers (cc, CC, ftn) are used for each compiler suite (Intel, PGI, Cray, GNU). To map SALK's Cray wrappers to the GNU compiler suite, users must unload the default Cray compiler modules and load the GNU compiler modules, as follows:

module unload PrgEnv-intel
module load PrgEnv-gnu

This completes the following mappings and also sets the environment to link to Cray's custom interconnect linked version of MPICH2, as well as other GNU-specific Cray library builds. Once the GNU modules are loaded, you may compile either serial or MPI parallel programs on SALK:

cc      ==>   gcc
CC     ==>   g++
ftn     ==>   gfortran

Once the mapping is complete the mapped commands listed above will invoke the corresponding GNU compiler and recognize that compiler's GNU options. NOTE: Using the GNU names directly on SALK will likely cause a problem as the Cray specific libraries (such as the Cray version of MPI) will not be included in the link phase, unless the intention is to run the executable only on the Cray login node.

So to compile a serial (or MPI parallel) C program on SALK after loading the GNU modules:

cc -O3 -funroll-loops mycode.c

Doing the same on SALK for GNU Fortran and C++ programs is left as an exercise for the reader.

OpenMP, OpenMP SMP-Parallel Program Compilation, and SLURM Job Submission

All the compute nodes on all the the systems at the CUNY HPCC include at least 2 sockets and multiple cores. Some have 8 cores (ZEUS, ANDY), and some have 16 (SALK and PENZIAS). These multicore, SMP compute nodes offer the CUNY HPCC user community the option of creating parallel programs using the OpenMP Symmetric Multi-Processing (SMP) parallel programming model. The SMP parallel programming with the OpenMP model (and other SMP models) is the original parallel processing model because the earliest parallel HPC systems were built only with shared memories. The Cray-XMP (circa 1982) was among the first systems in this class. Shared memory, multi-socket and multi-core designs are now typical of even today's desktop and portable PC and Mac systems. As the CUNY HPCC systems, each compute node is similarly a shared-memory, symmetric multi-processing system that can compute in parallel using the OpenMP shared-memory model.

In the SMP model, multiple processors work simultaneously within a single program's memory space (image). This eliminates the need to copy data from one program (process) image to another (required by MPI) and simplifies the parallel run-time environment significantly. As such, writing parallel programs to the OpenMP standard is generally easier and requires many fewer lines of code. However, the size of the problem that can be addressed using OpenMP is limited by the amount of memory on a single compute node, and the similarly the parallel performance improvement to be gained is limited by the number of processors (cores) within that single node.

As of Q4 2012 at CUNY HPCC, OpenMP applications can run with a maximum of 16 cores (this is on SALK, the Cray XE6m system). Most of the HPC Center's other systems are limited to 8 core OpenMP parallelism.

Here, a simple OpenMP parallel version of the standard C "Hello, World!" program is set to run on 8 cores:

#include <omp.h>
#include <stdio.h>
#include <stdlib.h>

#define NPROCS 8

int main (int argc, char *argv[]) {

   int nthreads, num_threads=NPROCS, tid;

  /* Set the number of threads */
  omp_set_num_threads(num_threads);

  /* Fork a team of threads giving them their own copies of variables */
#pragma omp parallel private(nthreads, tid)
  {

  /* Each thread obtains its thread number */
  tid = omp_get_thread_num();

  /* Each thread executes this print */
  printf("Hello World from thread = %d\n", tid);

  /* Only the master thread does this */
  if (tid == 0)
     {
      nthreads = omp_get_num_threads();
      printf("Total number of threads = %d\n", nthreads);
     }

   }  /* All threads join master thread and disband */

}

An excellent and comprehensive tutorial on OpenMP with examples can be found at the Lawrence Livermore National Lab web site: (https://computing.llnl.gov/tutorials/openMP)

Compiling OpenMP Programs Using the Intel Compiler Suite

The intel C compiler requires the '-openmp' option, as follows:

icc  -o hello_omp.exe -openmp hello_omp.c

When run, the program above produces the following output:

$ ./hello_omp.exe
Hello World from thread = 0
Number of threads = 8
Hello World from thread = 1
Hello World from thread = 2 
Hello World from thread = 6
Hello World from thread = 4
Hello World from thread = 3
Hello World from thread = 5
Hello World from thread = 7

OpenMP is supported in Intel's C, C++, and Fortran compilers; as such, a Fortran version of the program above could be used to produce similar results. An important feature of OpenMP threads is that they are logical entities that are not by default locked to physical processors. The code above requesting 8 threads would run and produce similar results on a compute node with only 2 or 4 processors, or even 1 processor. In these cases, they would simply take more wall-clock time to complete.

When threads in excess of the physical number of processors present on the motherboad are requested they simply compete for access to actual number of physical cores available. Under such circumstaces, maximum program speed ups are limited to the number of unshared physical processors (cores) available to the OpenMP job less the overhead required to start OpenMP (this ignores Intel's 'hyperthreading' which allows two threads to share sub-resources not in simultaneous use within a single processor).

Compiling OpenMP Programs Using the GNU Compiler Suite

The GNU C compiler requires its '-fopenmp' option for OpenMP programs, as follows:

gcc  -o hello_omp.exe -fopenmp hello_omp.c

The program produces the same output, and again the order of the print statements cannot be predicted and will not necessarily be the same over repeated runs.

OpenMP is supported in both GNU's C, C++, and Fortran compilers; therefore a Fortran version of the program above could be used to produce similar results.

Submitting an OpenMP Program to the SLURM Batch Queueing System

All non-trivial jobs (development or production, parallel or serial) must be submitted to HPC Center system compute nodes from each system's head or login node using a SLURM script. Jobs run interactively on system head nodes that place a significant and sustained load on the head node will be terminated. Details on the use of SLURM are presented later in this document; however, here we present a basic SLURM script ('my_ompjob') that can be used to submit any OpenMP SMP program for batch processing on one of the CUNY HPCC compute nodes.

#!/bin/bash
#SLURM -q production
#SLURM -N openMP_job
#SLURM -l select=1:ncpus=8
#SLURM -l place=free
#SLURM -V

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORDIR variable is automatically filled with the path 
# to the directory you submit your job from

cd $SLURM_O_WORKDIR
echo ""

# The SLURM_NODEFILE file contains the compute nodes assigned
# to the job by SLURM.  Uncommenting the next line will show them.

cat $SLURM_NODEFILE
echo ""

# It is possible to set the number of threads to be used in
# an OpenMP program using the environment variable OMP_NUM_THREADS.
# This setting is not used here because the number of threads (8)
# was fixed inside the program itself in our example code.
# export OMP_NUM_THREADS=8

./hello_omp.exe

When submitted with 'qsub my_ompjob' a job ID XXXX is returned and the output will be written to the file 'openMP_job.oXXXX' where XXXX is the job ID, unless otherwise redirected on the command-line.

The key lines in the script are '-l select' and '-l place'. The first defines (1) resource chunk with '-l select=1' and assigns (8) cores to it with ':ncpus=8'. SLURM must allocate these (8) cores on a single node because they are all part of a single SLURM resource 'chunk' ('chunks' are atomic) to be used in concert by our OpenMP executable, hello_omp.exe.

Next, the line '-l place=free' instructs SLURM to place this chunk anywhere it can find 8 free cores. As mentioned, SLURM resource 'chunks' are indivisible across compute nodes; and therefore, this job can only be run on a single compute node. It would therefore never run on a system with only 4 cores per compute node and on those with only 8 core per node SLURM would have to find a node with no other jobs running on it. This is exactly what we want for an OpenMP job, a one-to-one mapping of physically free cores to OpenMP threads requested with no other jobs schedule by SLURM (or our of SLURM's purvey) to run and compete for those 8 cores.

Placement on a node with as many free physical cores as OpenMP threads is optimal for OpenMP jobs because each processor assigned to an OpenMP job works within that single program's memory space or image. If the processors assigned by SLURM were on another compute node they would not be usable; if they were assigned to another job on the same compute they would not be fully available to the OpenMP program and would delay its completion.

Here, the selection of 8 cores will consume all the cores available on a single compute node on ANDY. This forces SLURM to find and allocate an entire compute node to the OpenMP job. In this case, the OpenMP job will also have all of the memory the compute has at its disposal knowing that no other jobs will be assigned to it by SLURM. If fewer cores were selected (say 4), SLURM could place another job on the same ANDY compute node using as many as (4) cores. This job would compete for memory resources proportionally, but would have its own cores. SLURM offers the 'pack:excl' option to force exclusive placement even if the job uses less than all the cores on the physical node. One might wish to do this to run a single core job and have it use all the memory on the compute node.

One thing that should be kept in mind when defining SLURM resource requirements and in submitting any SLURM script is that jobs with resource requests that are impossible to fulfill on the system where the job is submitted will be queued forever and never run. In our case here, we must know that the system that we are submitting this job to has at least 8 processors (cores) available on a single physical compute node. At the HPC Center this job would run on either ANDY or SALK, but would be queued indefinitely on any system that has fewer than 8 cores per physical node. This resource mapping requirement applies to any resource that you might request in your SLURM script, not just cores. Resource definition and mapping is discussed in greater detail in the SLURM section later in this document.

Note that on SALK, the Cray XE6m system, the SLURM script would require the use of Cray's compute-node, job launch command 'aprun', as follows:

#!/bin/bash
#SLURM -q production
#SLURM -N openMP_job
#SLURM -l select=1:ncpus=16:mem=32768mb
#SLURM -l place=free
#SLURM -j oe
#SLURM -o openMP_job.out
#SLURM -V

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORDIR variable is automatically filled with the path 
# to the directory you submit your job from

cd $SLURM_O_WORKDIR
echo ""

# The SLURM_NODEFILE file contains the compute nodes assigned
# to the job by SLURM.  Uncommenting the next line will show them.

cat $SLURM_NODEFILE
echo ""

# It is possible to set the number of threads to be used in
# an OpenMP program using the environment variable OMP_NUM_THREADS.
# This setting is not used here because the number of threads (8)
# was fixed inside the program itself in our example code.
# export OMP_NUM_THREADS=8

aprun -n 1 -d 16 ./hello_omp.exe

Here, 'aprun' is requesting that one process be allocated to a compute ('-n 1') and that it be given all 16 cores available on a single SALK compute node. Because the production queue on SALK allows no jobs requesting fewer than 16 cores, the '-l select' was also changed. The define in the original C source code should also best be change to set the number of OpenMP threads to 16 so that no allocated cores are wasted on the compute node, as in:

#define NPROCS 16

MPI, MPI Parallel Program Compilation, and SLURM Batch Job Submission

The Message Passing Interface (MPI) is a hardware-independent parallel programming and communications library callable from C, C++, or Fortran. Quoting from the MPI standard:

MPI is a message-passing application programmer interface (API), together with protocol and semantic specifications for how its features must behave in any implementation.

MPI has become the de facto standard approach for parallel programming in HPC. MPI is a collection of well-defined library calls composing an Applications Program Interface (API) for transfering data (packaged as messages) between completely independent processes with independent address spaces. These processes might be running within a single physical node, as required above with OpenMP, or distributed across nodes connected by an interconnect such as GigaBit Ethernet or InfiniBand. MPI communication is generally two-sided with both the sender and receiver of the data actively participating in the communication events. Both point-to-point and collective communication (one-to-many; many-to-one; many-to-many) are supported. MPI's goals are high performance, scalability, and portability. MPI remains the dominant parallel programming model used in high-performance computing today, although it is sometimes criticized as difficult to program with.


The original MPI-1 release was not designed with any special features to support traditional shared-memory or distributed, shared-memory parallel architectures, and MPI-2 provides only limited distributed, shared-memory support with some one-sided, remote direct memory access routines (RDMA). Nonetheless, MPI programs are regularly run on shared memory computers because the MPI model is an architecture-neutral parallel programming paradigm. Writing parallel programs using the MPI model (as opposed to shared-memory models such as OpenMP described above) requires the careful partitioning of program data among the communicating processes to minimize the communication events that can sap the performance of parallel applications, especially when they are run at larger scale (with more processors).

The CUNY HPCC supports several versions of MPI, including proprietary versions from Intel, SGI, and Cray; however, with the exception of the Cray, CUNY HPCC systems by default have standardized on the public domain release of MPI called OpenMPI (not to be confused with OpenMP [yes, this is confusing]). While this version will not always perform as well as the proprietary versions mentioned above, it is a reliable version that can be run on most HPC cluster systems. Among the systems currently running at the CUNY HPCC, only the Cray (SALK) does not support OpenMPI. It instead uses a custom version of MPICH2 based on Cray's Gemini interconnect communication protocol. In the discussion below, we therefore emphasize OpenMPI (except in our treatment of MPI on the Cray) because it can be run on almost every system the CUNY HPCC supports. Details on how to use Intel's and SGI's proprietary MPIs, and on using MPICH, another public domain version of MPI will be added later.

OpenMPI (completely different from and not to be confused with OpenMP described above) is a project combining technologies and resources from several previous MPI projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) with the stated aim of building the best freely available MPI library. OpenMPI represents the merger between three well-known MPI implementations:

  • FT-MPI from the University of Tennessee
  • LA-MPI from Los Alamos National Laboratory
  • LAM/MPI from Indiana University

with contributions from the PACX-MPI team at the University of Stuttgart. These four institutions comprise the founding members of the OpenMPI development team which has grown to include many other active contributors and a very active user group.

These MPI implementations were selected because OpenMPI developers thought that each excelled in one or more areas. The stated driving motivation behind OpenMPI is to bring the best ideas and technologies from the individual projects and create one world-class open source MPI implementation that excels in all areas. The OpenMPI project names several top-level goals:

  • Create a free, open source software, peer-reviewed, production-quality complete MPI-2 implementation.
  • Provide extremely high, competitive performance (low latency or high bandwidth).
  • Directly involve the high-performance computing community with external development and feedback (vendors, 3rd party researchers, users, etc.).
  • Provide a stable platform for 3rd party research and commercial development.
  • Help prevent the "forking problem" common to other MPI projects.
  • Support a wide variety of high-performance computing platforms and environments.

At the CUNY HPCC, OpenMPI may be used to run jobs compiled with the Intel, or GNU compilers. Two simple MPI programs, one written in C and another in Fortran are shown below as examples. For details on programming in MPI, users should consider attending the CUNY HPCC MPI workshop (3 days in length), refer to the many online tutorials, or read one of books on the subject. A good online tutorial on MPI can be found at LLNL here [1]. A tutorial on parallel programming in general can be found here [2].

Parallel implementations of the "Hello world!" program in C and Fortran are presented here to give the reader a feel for the look of MPI code. These sample codes can be used as test cases in the sections below describing parallel application compilation and job submission. Again, refer to the tutorials mentioned above or attend the CUNY HPCC MPI workshop for details on MPI programming.

Example 1. C Example (hello_mpi.c)
#include <stdio.h>

/* include MPI specific data types and definitions */
#include <mpi.h>

int main (argc, argv)
int argc;
char *argv[];
{
 int rank, size;

/* set up the MPI runtime environment */
 MPI_Init (&argc, &argv);  

/* get current process id */
 MPI_Comm_rank (MPI_COMM_WORLD, &rank);

/* get number of processes */
 MPI_Comm_size (MPI_COMM_WORLD, &size);

 printf( "Hello world from process %d of %d\n", rank, size );

/* break down the MPI runtime environment */
 MPI_Finalize();

 return 0;

}


Example 2. Fortran example (hello_mpi.f90)
program hello

! include MPI specific data types and definitions
include 'mpif.h'

integer rank, size, ierror, tag, status(MPI_STATUS_SIZE)

! set up the MPI runtime environment
call MPI_INIT(ierror)

! get current process id
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)

! get number of processes
call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierror)

print*, 'Hello world from process ', rank, ' of ', size

! break down the MPI runtime environment
call MPI_FINALIZE(ierror)

end

An excellent and comprehensive tutorial on MPI with examples can be found at the Lawrence Berkeley National Lab web site: https://computing.llnl.gov/tutorials/mpi)

Sample Compilations and Production Batch Scripts

These examples could be used to compile the sample programs above and should run consistently on all CUNY HPCC systems except SALK, which as mentioned has its own compiler wrappers.

OpenMPI (Intel compiler) Parallel C code

Compilation (again, because the Intel-compiled version of OpenMPI is the default, the full path shown here is NOT required):

/share/apps/openmpi-intel/default/bin/mpicc -o hello_mpi.exe ./hello_mpi.c

OpenMPI (Intel compiler) Parallel FORTRAN code

Compilation (again, because the Intel-compiled version of OpenMPI is the default, the full path shown here is NOT required):

/share/apps/openmpi-intel/default/bin/mpif90 -o hello_mpi.exe ./hello_mpi.f90

OpenMPI (Intel compiler) SLURM Submit Script

The script below (my_mpi.job) requests that SLURM schedule an 8 processor (core) job and allows SLURM to freely distributed the 8 processors requested to any free nodes. For details on the meaning of all the options in this script please see the full section SLURM Pro section below.

#!/bin/bash
#SLURM -q production
#SLURM -N openmpi_intel
#SLURM -l select=8:ncpus=1
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)

echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORKDIR variable is automatically filled with the
# path to the directory you submit your job from

cd $SLURM_O_WORKDIR

# The SLURM_NODEFILE file contains the compute nodes assigned
# to your job by SLURM.  Uncommenting the next line will show them.

echo ">>>> SLURM Assigned these nodes to your job: "
echo ""
cat $SLURM_NODEFILE
echo ""

# Because OpenMPI compiled with the Intel compilers is the default,
# the full path here is NOT required.

/share/apps/openmpi-intel/default/bin/mpirun -np 8 -machinefile $SLURM_NODEFILE ./hello_mpi.exe

When submitted with 'qsub myjob' a job ID is returned and output will be written to the file called 'openmpi_intel.oXXXX' where XXXX is the job ID. Errors will be written to 'openmpi_intel.eXXXX' where XXXX is the job ID.

MPI hello world output:


>>>> SLURM Master compute node is: r1i0n6

>>>> SLURM Assigned these nodes to your job: 

r1i0n6
r1i0n7
r1i0n8
r1i0n9
r1i0n10
r1i0n14
r1i1n0
r1i1n1

Hello world from process 0 of 8
Hello world from process 7 of 8
Hello world from process 5 of 8
Hello world from process 4 of 8
Hello world from process 6 of 8
Hello world from process 3 of 8
Hello world from process 1 of 8
Hello world from process 2 of 8

OpenMPI (GNU compiler) Parallel C

Coming soon.

OpenMPI (GNU compiler) Parallel FORTRAN

Coming soon.

OpenMPI (GNU compiler) SLURM Submit Script

This script sends SLURM an 8 processor (core) job allowing SLURM to freely distributed the 8 processors to the least loaded nodes. (Note: the only real difference between this script and the Intel script above is in the path to the mpirun command.) For details on the meaning of all the options in this script please see the full SLURM Pro section below.

#!/bin/bash
#SLURM -q production
#SLURM -N openmpi_gnu
#SLURM -l select=8:ncpus=1
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)

echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORKDIR variable is automatically filled with the path 
# to the directory you submit your job from

cd $SLURM_O_WORKDIR

# The SLURM_NODEFILE file contains the compute nodes assigned
# to the job by SLURM.  Uncommenting the next line will show them.

echo ">>>> SLURM Assigned these nodes to your job: "
echo ""
cat $SLURM_NODEFILE
echo ""

# Because OpenMPI GNU is NOT the default, the full path is show here,
# but this does not guarantee a clean run. You must ensure that the
# environment has been toggled to GNU either in this batch script or
# within your init files (see section below).

/opt/openmpi/bin/mpirun -np 8 -machinefile $SLURM_NODEFILE ./hello_mpi.exe

When submitted with 'qsub myjob' a job ID is returned and output will be written to the file called 'openmpi_intel.oXXXX' where XXXX is the job ID. Errors will be written to 'openmpi_intel.eXXXX' where XXXX is the job ID.

MPI hello world output:


>>>> SLURM Master compute node is: r1i0n3

>>>> SLURM Assigned these nodes to your job:

r1i0n3
r1i0n7
r1i0n8
r1i0n9
r1i0n10
r1i0n14
r1i1n0
r1i1n1

Hello world from process 0 of 8
Hello world from process 7 of 8
Hello world from process 5 of 8
Hello world from process 4 of 8
Hello world from process 6 of 8
Hello world from process 3 of 8
Hello world from process 1 of 8
Hello world from process 2 of 8

NOTE: The paths used above for the gcc version of OpenMPI apply only to ZEUS, which has a GE interconnect. On BOB, the path to the InfiniBand version of the gcc OpenMPI commands and libraries is:

/usr/mpi/gcc/openmpi-1.2.8/[bin,lib]

Setting Your Preferred MPI and Compiler Defaults

As mentioned above the default version of MPI on the CUNY HPCC clusters is OpenMPI 1.5.5 compiled with the Intel compilers. This default is set by scripts in the /etc/profile.d directory (i.e. smpi-defaults.[sh,csh]). When the mpi-wrapper commands (mpicc, mpif90, mpirun, etc.) are used WITHOUT full path prefixes, these Intel defaults will be invoked. To use either of the other supported MPI environments (OpenMPI compiled with the PGI compilers, or OpenMPI compiled with the GNU compilers) users should set their local environment either in their home directory init files (i.e. .bashrc, .cshrc) or manually in their batch scripts. The script provided below can be used for this.

WARNING: Full path references by itself to non-default mpi-commands will NOT guarantee error free compiles and runs because of the way OpenMPI references the environment it runs in!!

CUNY HPCC staff recommend fully toggling the site default environment away from Intel to PGI or GNU when the non-default environments are preferred. This can be done relatively easily by commenting out the default and commenting in one of the preferred alternatives referenced in the script provided below. Users may copy the script smpi-default.sh (or smpi-defaults-csh) from /etc/profile.d. A copy is provided here for reference. (NOTE: This discussion does NOT apply on the Cray which uses the 'modules' system to manage its default applications environment.)

# general path settings 
#PATH=/opt/openmpi/bin:$PATH
#PATH=/usr/mpi/gcc/openmpi-1.2.8/bin:$PATH
#PATH=/share/apps/openmpi-pgi/default/bin:$PATH
#PATH=/share/apps/openmpi-intel/default/bin:$PATH
export PATH

# man path settings 
#MANPATH=/opt/openmpi/share/man:$MANPATH
#MANPATH=/usr/mpi/gcc/openmpi-1.2.8/share/man:$MANPATH
#MANPATH=/share/apps/openmpi-pgi/default/share/man:$MANPATH
#MANPATH=/share/apps/openmpi-intel/default/share/man:$MANPATH
export MANPATH

# library path settings 
#LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=/usr/mpi/gcc/openmpi-1.2.8/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=/share/apps/openmpi-pgi/default/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=/share/apps/openmpi-intel/default/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

By selectively commenting in the appropriate line in each paragraph above the default PATH, MANPATH, and LD_LIBRARY_PATH can be set to the MPI compilation stack that the user prefers. The right place to do this is inside the user's .bashrc file (or .cshrc file in the C-shell) in the user's HOME directory. Once done, full path references in the SLURM submit scripts listed above become unecessary and one script would work for any compilation stack.

This approach can be used to set the MPI environment to older non-default versions of OpenMPI still in installed in /share/apps/openmpi-[intel,pgi].

Getting the Right Interconnect for High Performance MPI

A few comments should be made about interconnect control and selection under OpenMPI. First, this question applies ONLY to ANDY and HERBERT which have both InfiniBand and Gigabit Ethernet interconnects. InfiniBand provides both greater bandwidth and lower latencies than Gigabit Ethernet, and it should be chosen on these systems because it will deliver better performance at a given processor count and greater application scalability.

Both the Intel and Portland Group versions of OpenMPI installed on both ANDY and HERBERT have been compiled to include the OpenIB libraries. This means that by default the mpirun command will attempt to use the OpenIB libraries at runtime without any special options. If this cannot be done because no InfiniBand devices can be found, a runtime error message will be reported in SLURM Pro's error file, and mpirun will attempt to use other libraries and interfaces (namely GigaBit Ethernet, which is TCP/IP based) to run the job. If successful, the job will run to completion, but perform in a sub-optimal way.

To avoid this, or to establish with certainty which communication libraries and devices are being used by your job, there are options that can be used with mpirun to force the choice of one communication device, or the other.

To force the job to use the OpenIB interface (ib0) or fail, use:

mpirun  -mca btl openib,self -np  8 -machinefile $SLURM_NODEFILE ./hello_mpi.exe

To force the job to use the GigaBit Ethernet interface (eth0) or fail, use:

mpirun  -mca btl tcp,self -np  8 -machinefile $SLURM_NODEFILE ./hello_mpi.exe

Note, this discussion does not apply on the Cray which uses its own proprietary Gemini interconnect. It is worth noting that the Cray's interconnect is not switched-based like the other systems, but rather a 2D toroidal mesh for which being aware of job placement on the mesh can be an important consideration when tuning a job for performance at scale.

GPU Parallel Program Compilation and SLURM Job Submission

The CUNY HPCC supports computing with Graphics Processing Units (GPUs). GPUs can be thought of of as highly parallel co-processors (or accelerators) connected to a node's CPUs via a PCI Express bus. The HPC Center provides GPU accelerators on two systems, on PENZIAS. It has 144 NVIDIA Tesla K20m GPUs (two per every compute node in the rack). Specifications of each GPU (as found by the 'deviceQuery' utility) are as follows:

./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 2 CUDA Capable device(s)

Device 0: "Tesla K20m"
  CUDA Driver Version / Runtime Version          5.5 / 5.5
  CUDA Capability Major/Minor version number:    3.5
  Total amount of global memory:                 4800 MBytes (5032706048 bytes)
  (13) Multiprocessors, (192) CUDA Cores/MP:     2496 CUDA Cores
  GPU Clock rate:                                706 MHz (0.71 GHz)
  Memory Clock rate:                             2600 Mhz
  Memory Bus Width:                              320-bit
  L2 Cache Size:                                 1310720 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 2 copy engine(s)
  Run time limit on kernels:                     No
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Enabled
  Device supports Unified Addressing (UVA):      Yes
  Device PCI Bus ID / PCI location ID:           4 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

Each of 144 GPU devices shows performance of 3,524 GFLOPS. K20m are installed on the motherboard and connected via PCIe 2.0 x16 interface.



Two distinct parallel programming approaches for the HPC Center's GPU resources are described here. The first (a compiler directive's based extension available in the Portland Group's Inc. (PGI) C and Fortran compilers) delivers ease of use at the expense of somewhat less than highly tuned performance. The second (NVIDIA's Compute Unified Device Architecture, CUDA C or PGI's CUDA Fortran GPU programming model) provides the ability within C or Fortran to more directly address the GPU hardware for better performance, but at the expense of a somewhat greater programming effort. We will introduce both approaches here, and present the basic steps for GPU parallel program compilation and job submission using SLURM for both as well.

GPU Parallel Programming with the Portland Group Compiler Directives

The Portland Group, Inc. (PGI) has taken the lead in building a general purpose, accelerated parallel computing model into its compilers. Programmers can access this new technology at CUNY using PGI's compiler, which supports the use of GPU-specific, compiler directives in standard C and Fortran programs. Compiler directives simplify the programmer's job of mapping parallel kernels onto accelerator hardware and do so without compromising the portability of the user's application. Such a directives-parallelized code can be compiled and run on either the CPU-GPU together, or on the CPU alone. At this time, PGI supports the current, HPC-oriented GPU accelerator products from NVIDIA, but intends to extend its compiler-directives-based approach in the future to other accelerators.

The simplicity of coding with directives is illustrated here with a sample code ('vscale.c') that does a simple iteration independent scaling of a vector on both the GPU and CPU in single precision and compares the results:

        #include <stdio.h>
        #include <stdlib.h>
        #include <assert.h>
        
        int main( int argc, char* argv[] )
        {
            int n;      /* size of the vector */
            float *restrict a;  /* the vector */
            float *restrict r;   /* the results */
            float *restrict e;  /* expected results */
            int i;

            /* Set array size */
            if( argc > 1 )
                n = atoi( argv[1] );
            else
                n = 100000;
            if( n <= 0 ) n = 100000;
        
            /* Allocate memory for arrays */
            a = (float*)malloc(n*sizeof(float));
            r = (float*)malloc(n*sizeof(float));
            e = (float*)malloc(n*sizeof(float));

            /* Initialize array */
            for( i = 0; i < n; ++i ) a[i] = (float)(i+1);
        
            /* Scale array and mark for acceleration */
            #pragma acc region
            {
                for( i = 0; i < n; ++i ) r[i] = a[i]*2.0f;
            }

            /* Scale array on the host to compare */
                for( i = 0; i < n; ++i ) e[i] = a[i]*2.0f;

            /* Check the results and print */
            for( i = 0; i < n; ++i ) assert( r[i] == e[i] );

            printf( "%d iterations completed\n", n );

            return 0;
        }

In this simple example, the only code and instruction to the compiler required to direct this vector scaling kernel to the GPU is the compiler directive:

 #pragma acc region

that precedes the second C 'for' loop. A user can build a GPU-ready executable ('c1.exe' in this case) for execution on ZEUS or ANDY with the following compilation statement:

pgcc -o vscale.exe vscale.c -ta=nvidia -Minfo=accel -fast

The option '-ta=nvidia' declares to the compiler what the destination hardware acceleration technology is going to be (PGI's model is intended to be general, although its implementation for NVIDIAs GPU accelerators is the most advanced to date), and the '-Minfo=accel' option requests output describing what the compiler did to accelerate the code. This output is included here:

main:
     29, Generating copyout(r[:n-1])
           Generating copyin(a[:n-1])
           Generating compute capability 1.0 binary
           Generating compute capability 2.0 binary
     31, Loop is parallelizable
           Accelerator kernel generated
           31, #pragma acc for parallel, vector(256) /* blockIdx.x threadIdx.x */
               CC 1.0 :   3 registers; 48 shared,   4 constant, 0 local memory bytes;   100% occupancy
               CC 2.0 : 10 registers;   4 shared, 60 constant, 0 local memory bytes;   100% occupancy

In the output, the compiler explains where and what it intends to copy to (and from) CPU memory to GPU accelerator memory. It explains that the C 'for' loop has no loop iteration dependencies and can be run on the accelerator in parallel. It also indicates the vector length (256, the block size of the work to be done on the GPU). Because the array pointer 'a[]' is declared 'restricted', it will point only into 'a'. This ensures the compiler that pointer-alias-related, loop dependencies cannot occur.

The Portland Group C and Fortran Programming Guides provide a complete description its accelerator compiler directives programming model [3]. Additional introductory material can be found in four PGI white paper tutorials (part1, part2, part3, part4), here: [4], [5], [6], [7].

Submitting Portland Group, GPU-Parallel Programs Using SLURM

GPU job submission is very much like other batch job submission under SLURM. Here is a SLURM example script that can be used to run the GPU-ready executable created above on PENZIAS:

#!/bin/bash
#SLURM -q production
#SLURM -N pgi_gpu_job
#SLURM -l select=1:ncpus=1:ngpus=1
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR


echo ">>>> Begin PGI GPU Compiler Directives-based run ..."
echo ""
./vscale.exe
echo ""
echo ">>>> End   PGI GPU Compiler Directives-based run ..."

The only difference from the non-gpu submit script is in the "select" statement. By adding "ngpus=1" directive user instructs SLURM to allocate 1 GPU device per chunk. Altogether 1 CPU and 1 GPU are requested in the above script. Consider different script:

#!/bin/bash
#SLURM -q production
#SLURM -N pgi_gpu_job
#SLURM -l select=4:ncpus=4:ngpus=2
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR


echo ">>>> Begin PGI GPU Compiler Directives-based run ..."
echo ""
./vscale.exe
echo ""
echo ">>>> End   PGI GPU Compiler Directives-based run ..."

Here SLURM is instructed to allocate 4 chunks of resources with each chunk having 4 CPUs and 2 GPUs totaling in 16 CPUs and 8 GPUs. Note that ngpus parameter may only take values of 0, 1 or 2: there are 2 GPUs per compute node, and therefore if asked for more then 2 GPUs per chunk SLURM will fail to find a compute node that matches such request (SLURM chunks are 'atomic' with respect to actual hardware). This is important limitation one needs to keep in mind while creating SLURM scripts.

These are the essential SLURM script requirements for submitting any GPU-Device-ready executable. This applies to the one with compiler directives compiled above, but might also be used to run GPU-ready executable code generated from native CUDA C or Fortran code as described in the next example. In the case above, the PGI compiler-directive marked loops will run in parallel on a single NVIDIA GPU after the data in array 'a[]' is copied to it across the PCI-Express bus.

Other variations are possible, including jobs that combine MPI or OpenMP (or even both of these) and GPU parallel programming in a single GPU-SMP-MPI multi-parallel job. There is not enough space to cover these approaches here, but the HPC Center staff has created code examples that illustrate these multi-parallel programming model approaches and will provide them to interested users at the HPC Center.

GPU Parallel Programming with NVIDIA's CUDA C or PGI's CUDA Fortran Programming Models

The previous section described the recent advances in compiler development from PGI that make utilizing the data- parallel compute power of the GPU more accessible to C and Fortran programmers. This trend has continued with the definition and adoption of the OpenACC standard by PGI, Cray, and CAPS. OpenACC is an OpenMP-like portable standard for obtaining accelerated performance on GPUs and other accelerators using compiler directives. It based on the approaches already developed by PGI, Cray, and CAPS over the last several years.

Yet, for over 5 years NVIDIA has offered and continued to develop its Compute Unified Device Architecture (CUDA), and its direct, NVIDIA-GPU-specific programming environment for C programmers. More recently, PGI has released CUDA Fortran jointly with NVIDIA offering a second language choice for programming NVIDIA GPUs using CUDA.

In this section, the basics of compiling and running CUDA C and CUDA Fortran applications at the CUNY HPCC are covered. The current default version of CUDA in use at the CUNY HPCC as of 11-27-12 is CUDA release 5.0.

CUDA is a complete programming environment that includes:

1.  A modified version of the C or Fortran programming language for programming the GPU Device and
   moving data between the CPU Host and the GPU Device.

2. A runtime environment and translator that generates and runs device-specific, CPU-GPU
  executables from more generic, single, mixed-instruction-set executables.

3. A Software Development Kit (SDK), HPC application-related libraries, and documentation
  to support the development of CUDA applications.

NVIDIA and PGI have put a lot of effort into making CUDA a flexible, full-featured, and high-performance program- ming environment similar to those in use in HPC to program CPUs. However, CUDA is still a 2-instruction-set, CPU-GPU programming model that must manage two separate memory spaces linked only by the compute node's PCI-Express bus. As such, programming GPUs using CUDA is more complicated than PGI's compiler-directives-based approach presented above which hides the many details of this approach from the programmer. Still, CUDA's more explicit, close-to-the-hardware approach offers CUDA programmers the chance to get the best possible performance from the GPU for their particular application by carefully controlling SM register use and occupancy.

Adapting a current application or writing a new one for the CUDA CPU-GPU programming model involves dividing that application into those parts that are highly data-parallel and better suited for the GPU Device (the so-called GPU Device code, or device kernel(s)) and those parts that have little or limited data-parallelism and are better suited for execution on the CPU Host (the driver code, or the CPU Host code). In addition, one should inventory the amount of data that must be moved between the CPU Host and GPU Device relative to the amount of GPU computation for each candidate data-parallel GPU kernel. Kernels whose compute-to-communication time ratios are too small should be executed on the CPU.

With the natural GPU-CPU divisions in the application identified, what were once host kernels (usually substantial looping sections in the host code) must be recoded in CUDA C or Fortran for the GPU Device. Also, Host CPU- to-GPU interface code for transferring data to and from the GPU, and for calling the GPU kernel must be written. Once these steps are completed and the host driver and GPU kernel code are compiled with NVIDIA's 'nvcc' compiler driver (or PGI CUDA Fortran compiler), the result is a fully executable mixed CPU-GPU binary (single file, dual instruction set) that typically does the following for each GPU kernel it calls:

1.  Allocates memory for required CPU source and destination arrays on the CPU Host.

2.  Allocates memory for GPU input, intermediate, and result arrays on the GPU Device.

3.  Initializes and/or assigns values to these arrays.

4.  Copies any required CPU Host input data to the GPU Device.

5.  Defines the GPU Device grid, block, and thread dimensions for each GPU kernel.

6.  Calls (executes) the GPU Device kernel code from the CPU Host driver code.

7.  Copies the required GPU Device results back the CPU Host.

8.  Frees (and perhaps zeroes) memory on the CPU Host and GPU Device that is no longer needed.

The details of the actual coding process are beyond the scope of the discussion here, but are treated in depth in NVIDIA's CUDA C Training Class notes, in NVIDIA's CUDA C Programming Guide, and in PGI's CUDA Fortran Programming Guide [8], [9] and in many tutorials and articles on the web [10].

A Sample CUDA GPU Parallel Program Written in NVIDIA's CUDA C

Here, we present a basic example of a CUDA C application that includes code for all the steps outlined above. It fills and then increments a 2D array on the GPU Device and returns the results to the CPU Host for printing. The example code is presented in two parts--the CPU Host setup or driver code, and the GPU Device or kernel code. This example comes from the suite of examples used by NVIDIA in its CUDA Training Class notes. There are many more involved and HPC-relevant examples (matrixMul, binomialOptions, simpleCUFFT, etc.) provided in NVIDIA's Software Development Toolkit (SDK) which any user of CUDA may download and install in their home directory on their CUNY HPCC account.

The basic example's CPU Host CUDA C code or driver, simple3_host.cu, is:

#include <stdio.h>

extern __global__ void mykernel(int *d_a, int dimx, int dimy);

int main(int argc, char *argv[])
{
   int dimx = 16;
   int dimy = 16;
   int num_bytes = dimx * dimy * sizeof(int);

   /* Initialize Host and Device Pointers */
   int *d_a = 0, *h_a = 0;

   /* Allocate memory on the Host and Device */
   h_a = (int *) malloc(num_bytes);
   cudaMalloc( (void**) &d_a, num_bytes);

   if( 0 == h_a || 0 == d_a ) {
       printf("couldn't allocate memory\n"); return 1;
   }

   /* Initialize Device memory */
   cudaMemset(d_a, 0, num_bytes);

   /* Define kernel grid and block size */
   dim3 grid, block;
   block.x = 4;
   block.y = 4;
   grid.x = dimx/block.x;
   grid.y = dimy/block.y;

   /* Call Device kernel, asynchronously */
   mykernel<<<grid,block>>>(d_a, dimx, dimy);

   /* Copy results from the Device to the Host*/
   cudaMemcpy(h_a,d_a,num_bytes,cudaMemcpyDeviceToHost);

   /* Print out the results from the Host */
   for(int row = 0; row < dimy; row++) {
      for(int col = 0; col < dimx; col++) {
         printf("%d", h_a[row*dimx+col]);
      }
      printf("\n");
   }

   /* Free the allocated memory on the Device and Host */
   free(h_a);
   cudaFree(d_a);

   return 0;

}

The GPU Device CUDA C kernel code, simple3_device.cu, is:

__global__ void mykernel(int *a, int dimx, int dimy)
{
   int ix = blockIdx.x*blockDim.x + threadIdx.x;
   int iy = blockIdx.y*blockDim.y + threadIdx.y;
   int idx = iy * dimx + ix;

   a[idx] = a[idx] + 1;
}

Using these simple CUDA C routines (or code that you have developed yourself), one can easily create a CPU-GPU executable that is ready to run on one of the CUNY HPCC's GPU-enabled systems (PENZIAS).

Because of the variety of source and destination code states that the CUDA programming environment must source, generate, and manage, NVIDIA has provided a master program, 'nvcc', called the CUDA compiler driver to handle all of these possible compilation phase translations as well as other compiler driver options. The detailed use of 'nvcc' is documented on "PENZIAS" by 'man nvcc' and also in NVIDIA's Compiler Driver Manual [11]. NOTE: Compiling CUDA Fortran programs can be accomplished using PGI's standard release Fortran compiler making sure that the CUDA Fortran code is marked with the '.CUF' suffix as in 'matmul.CUF'. More on this a bit later.

Among the 'nvcc' command's many groups of options are a series of options that determine what source files 'nvcc' should expect to be offered and what destination files it is expected to produce. A sampling of these compilation phase options includes:

--compile    or -c       ::    Compile whatever input files are offered (.c, .cc, .cpp, .cu) into object files (*.o file).
--ptx      or -ptx     ::    Compile all .gpu or .cu input files into device-only .ptx files.
--link     or -link     ::    Compile whatever input files are offered into an executable (the default).
--lib     or -lib        ::    Compile whatever input files are offered into a library file (*.a file).

For a typical compilation to an executable, the third and default option above (which is to supply nothing or simply the string '-link') is used. There are a multitude of other 'nvcc' options that control file and path specifications for libraries and include files, control and pass options to 'nvcc' companion compilers and linkers (this includes much of the gcc stack, which must be in the user's path for 'nvcc' to work correctly), and for code generation, among other things. For a complete description, please see the manual referred to above or the 'nvcc' man page. All this complexity relates to the fact that with CUDA one is working in a multi-source and meta-code environment.

Our concern here is generating an executable from the simple example files presented above that can be used (like the PGI executables generated in the previous section) in a SLURM batch submission script. First, we will produce object files (*.o files), and then we will link them into a GPU-Device-ready executable. Here are the 'nvcc' commands for generating the object files:

nvcc -c  simple3_host.cu
nvcc -c  simple3_device.cu

The above commands should be familiar to C programmers and will produce 2 object files, simple3_host.o and simple3_device.o in the working directory. Next, the GPU-Device-ready executable is created with:

nvcc -o simple3.exe *.o

Again, this should be very familiar to C programmers. It should be noted that these two steps can be combined as follows:

nvcc -o simple3.exe *.cu

No additional libraries or include files are required for this simple example, but in a more complex case like those provided in the CUDA Software Development Kit (SDK), library paths and libraries might be specified using the '-L' and '-l' options, include file paths with the '-I' option, among others. Again, details are provided in the 'nvcc' man page or NVIDIA Compiler Driver manual.

We now have an an executable code, 'simple3.exe', that can be submitted with SLURM to one of the GPU-enabled compute nodes on PENZIAS and that will create and increment a 2D matrix on the GPU, return the results to the CPU, and print them out.

#!/bin/bash
#SLURM -q production
#SLURM -N CAF_example
#SLURM -l select=16:ncpus=1:mem=1920mb
#SLURM -l place=scatter
#SLURM -V

echo ""
echo -n "The primary compute node hostname is: "
hostname
echo ""
echo -n "The location of the SLURM nodefile is: "
echo $SLURM_NODEFILE
echo ""
echo "The contents of the SLURM nodefile are: "
echo ""
cat  $SLURM_NODEFILE
echo ""
NCNT=`uniq $SLURM_NODEFILE | wc -l - | cut -d ' ' -f 1`
echo -n "The node count determined from the nodefile is: "
echo $NCNT
echo ""

# Change to working directory
cd $SLURM_O_WORKDIR

echo "You are using the following 'mpiexec' and 'mpdboot' commannds: "
echo ""
type mpiexec
type mpdboot
echo ""

echo "Starting the Intel 'mpdboot' daemon on $NCNT nodes ... "
mpdboot -n $NCNT --verbose --file=$SLURM_NODEFILE -r ssh
echo ""

mpdtrace
echo ""

echo "Starting an Intel CAF job requesting 16 cores ... "

./int_PI.exe

echo "CAF job finished ... "
echo ""

echo "Making sure all mpd daemons are killed ... "
mpdallexit
echo "SLURM CAF script finished ... "
echo ""

Here, the SLURM script requests 16 processors (CAF images). It simply names the executable itself to setup the Intel CAF runtime environment, engage the 16 processors, and initiate execution. This script is more elaborate because it include the procedure for setting up and breaking down the Intel MPI environment on the nodes that SLURM has selected to run the job.

Available Mathematical Libraries

FFTW Scientific Library

FFTW is a C subroutine library for computing the Discrete Fourier Transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).

The library is described in detail at the FFTW home page at http://www.fftw.org. The CUNY HPCC has installed FFTW versions 2.1.5 (older), 3.2.2 (default), and 3.3.0 (recent release) on ANDY. All versions were built in both 32-bit and 64-bit floating point formats using the latest Intel 12.0 release of their compilers. In addition, version's 2.1.5 and 3.3.0 support a MPI parallel version of the library. The default version at the CUNY HPCC is version 3.2.2 (64-bit) located in /share/apps/fftw/default/*.

The reason for the extra versions is that over the course of FFTW's development some changes were made to the API for the MPI parallel library. Version 2.1.5 supports the older MPI-parallel API and the recently released version 3.3.0 supports a newer MPI-parallel API. NOTE: The default version does NOT include an MPI-parallel verstion, which skipped this version generation. A threads version of each library was also built.

Please refer to the on-line documentation at the FFTW website for details on using the library (whatever the version). With the calls properly included in your code you can link in the default at compile and link time with:

icc -o my_fftw.exe my_fftw.c -L/share/apps/fftw/default/lib -lfftw3 

(pgcc or gcc would be used in the same way)

For the non-default versions substitute the version directory for the string 'default' above. For example, for the new 3.3 release in 32-bit use:

icc -o my_fftw.exe my_fftw.c -L/share/apps/fftw/3.3_32bit/lib -lfftw3f

For an MPI-parallel, 64-bit version of 3.3 use:

mpicc -o my__mpi_fftw.exe my_mpi_fftw.c -L/share/apps/fftw/3.3_64bit/lib -lfftw3_mpi

The include files for each release are in the 'include' directory along side the version lib directory. The names of all available libraries for each release can be found by simply listing the contents of the appropriate version's lib directory. Do this for the names of the threads-version of each library for instance.

GNU Scientific Library

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.

The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.

Here is an example of code that uses GSL routines:

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
 
int main(void)
{
  double x = 5.0;
  double y = gsl_sf_bessel_J0(x);
  printf("J0(%g) = %.18e\n", x, y);
  return 0;
}

The example program has to be linked to the GSL library upon compilation:

gcc $(/share/apps/gsl/default/bin/gsl-config --cflags) test.c $(/share/apps/gsl/default/bin/gsl-config --libs)

The output is shown below, and should be correct to double-precision accuracy:

J0(5) = -1.775967713143382642e-01

Complete GNU Scientific Library documentation may be found of official website of the project: http://www.gnu.org/software/gsl/

MKL

Documentation to be added.

IMSL

IMSL (International Mathematics and Statistics Library) is a commercial collection of software libraries of numerical analysis functionality that are implemented in the computer programming languages of C, Java, C#.NET, and Fortran by Visual Numerics.

C and Fortran implementations if IMSL are installed on Bob cluster under

/share/apps/imsl/cnl701 

and

/share/apps/imsl/fnl600

respectively.

Fortran Example

Here is an example of FORTRAN program that uses IMSL routines:

! Use files
 
       use rand_gen_int
       use show_int
 
!  Declarations
 
       real (kind(1.e0)), parameter:: zero=0.e0
       real (kind(1.e0)) x(5)
       type (s_options) :: iopti(2)=s_options(0,zero)
       character VERSION*48, LICENSE*48, VERML*48
       external VERML
 
!  Start the random number generator with a known seed.
       iopti(1) = s_options(s_rand_gen_generator_seed,zero)
       iopti(2) = s_options(123,zero)
       call rand_gen(x, iopt=iopti)
 
!     Verify the version of the library we are running
!     by retrieving the version number via verml().
!     Verify correct installation of the license number
!     by retrieving the customer number via verml().
!
      VERSION = VERML(1)
      LICENSE = VERML(4)
      WRITE(*,*) 'Library version:  ', VERSION
      WRITE(*,*) 'Customer number:  ', LICENSE

!  Get the random numbers
       call rand_gen(x)
 
!  Output the random numbers
       call show(x,text='                              X')

! Generate error
       iopti(1) = s_options(15,zero)
       call rand_gen(x, iopt=iopti)
 
       end

To compile this example use

 . /share/apps/imsl/imsl/fnl600/rdhin111e64/bin/fnlsetup.sh

ifort -openmp -fp-model precise -I/share/apps/imsl/imsl/fnl600/rdhin111e64/include -o imslmp imslmp.f90 -L/share/apps/imsl/imsl/fnl600/rdhin111e64/lib -Bdynamic -limsl -limslsuperlu -limslscalar -limslblas -limslmpistub -limf -Xlinker -rpath -Xlinker /share/apps/imsl/imsl/fnl600/rdhin111e64/lib


To run it in a batch mode use standard submit procedure described in section Program Compilation and Job Submission. In case of successful run the following output will be generated:

 Library version:  IMSL Fortran Numerical Library, Version 6.0     
 Customer number:  702815                                          
                               X
     1 -    5   9.320E-01  7.865E-01  5.004E-01  5.535E-01  9.672E-01

 *** TERMINAL ERROR 526 from s_error_post.  s_/rand_gen/ derived type option
 ***          array 'iopt' has undefined option (15) at entry (1).

C Example

More complicated example in C.

#include <stdio.h>
#include <imsl.h>

int main(void)
{
    int         n = 3;
    float       *x;
    static float        a[] = { 1.0, 3.0, 3.0,
                                1.0, 3.0, 4.0,
                                1.0, 4.0, 3.0 };
    static float        b[] = { 1.0, 4.0, -1.0 };

    /*
     * Verify the version of the library we are running by
     * retrieving the version number via imsl_version().
     * Verify correct installation of the error message file
     * by retrieving the customer number via imsl_version().
     */
    char        *library_version = imsl_version(IMSL_LIBRARY_VERSION);
    char        *customer_number = imsl_version(IMSL_LICENSE_NUMBER);

    printf("Library version:  %s\n", library_version);
    printf("Customer number:  %s\n", customer_number);

                                /* Solve Ax = b for x */
    x = imsl_f_lin_sol_gen(n, a, b, 0);
                                /* Print x */
    imsl_f_write_matrix("Solution, x of Ax = b", 1, n, x, 0);
                               /* Generate Error to access error 
                                  message file */
    n =-10;

    printf ("\nThe next call will generate an error \n");
    x = imsl_f_lin_sol_gen(n, a, b, 0);
}

To compile this example use

. /share/apps/imsl/imsl/cnl701/rdhsg111e64/bin/cnlsetup.sh

icc -ansi -I/share/apps/imsl/imsl/cnl701/rdhsg111e64/include -o cmath cmath.c -L/share/apps/imsl/imsl/cnl701/rdhsg111e64/lib -L/share/apps/intel/composerxe-2011.0.084/mkl/lib/em64t -limslcmath -limslcstat -limsllapack -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -lgfortran -i_dynamic -Xlinker -rpath -Xlinker /share/apps/imsl/imsl/cnl701/rdhsg111e64/lib -Xlinker -rpath -Xlinker /share/apps/intel/composerxe-2011.0.084/mkl/lib/em64t

To run the binary in a batch mode use standard submit procedure described in section Program Compilation and Job Submission. In case of successful run the following output will be generated:

Library version:  IMSL C/Math/Library Version 7.0.1
Customer number:  702815
 
       Solution, x of Ax = b
         1           2           3
        -2          -2           3

The next call will generate an error 

*** TERMINAL Error from imsl_f_lin_sol_gen.  The order of the matrix must be
***          positive while "n" = -10 is given.

Compiling and Developing Programs

OPENMP, OPENMP SMP-PARALLEL PROGRAM COMPILATION, AND SLURM JOB SUBMISSION (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

OpenMP, OpenMP SMP-Parallel Program Compilation, and SLURM Job Submission

All the compute nodes on all the the systems at the CUNY HPCC include at least 2 sockets and multiple cores. Some have 8 cores (ZEUS, BOB, ANDY), and some have 16 (SALK). These multicore, SMP compute nodes offer the CUNY HPCC user community the option of creating parallel programs using the OpenMP Symmetric Multi-Processing (SMP) parallel programming model. The SMP parallel programming with the OpenMP model (and other SMP models) is the original parallel processing model because the earliest parallel HPC systems were built only with shared memories. The Cray-XMP (circa 1982) was among the first systems in this class. Shared memory, multi-socket and multi-core designs are now typical of even today's desktop and portable PC and Mac systems. As the CUNY HPCC systems, each compute node is similarly a shared-memory, symmetric multi-processing system that can compute in parallel using the OpenMP shared-memory model.

In the SMP model, multiple processors work simultaneously within a single program's memory space (image). This eliminates the need to copy data from one program (process) image to another (required by MPI) and simplifies the parallel run-time environment significantly. As such, writing parallel programs to the OpenMP standard is generally easier and requires many fewer lines of code. However, the size of the problem that can be addressed using OpenMP is limited by the amount of memory on a single compute node, and the similarly the parallel performance improvement to be gained is limited by the number of processors (cores) within that single node.

As of Q4 2012 at CUNY HPCC, OpenMP applications can run with a maximum of 16 cores (this is on SALK, the Cray XE6m system). Most of the HPC Center's other systems are limited to 8 core OpenMP parallelism.

Here, a simple OpenMP parallel version of the standard C "Hello, World!" program is set to run on 8 cores:

#include <omp.h>
#include <stdio.h>
#include <stdlib.h>

#define NPROCS 8

int main (int argc, char *argv[]) {

   int nthreads, num_threads=NPROCS, tid;

  /* Set the number of threads */
  omp_set_num_threads(num_threads);

  /* Fork a team of threads giving them their own copies of variables */
#pragma omp parallel private(nthreads, tid)
  {

  /* Each thread obtains its thread number */
  tid = omp_get_thread_num();

  /* Each thread executes this print */
  printf("Hello World from thread = %d\n", tid);

  /* Only the master thread does this */
  if (tid == 0)
     {
      nthreads = omp_get_num_threads();
      printf("Total number of threads = %d\n", nthreads);
     }

   }  /* All threads join master thread and disband */

}

An excellent and comprehensive tutorial on OpenMP with examples can be found at the Lawrence Livermore National Lab web site: (https://computing.llnl.gov/tutorials/openMP)

Compiling OpenMP Programs Using the Intel Compiler Suite

The intel C compiler requires the '-openmp' option, as follows:

icc  -o hello_omp.exe -openmp hello_omp.c

When run, the program above produces the following output:

$ ./hello_omp.exe
Hello World from thread = 0
Number of threads = 8
Hello World from thread = 1
Hello World from thread = 2 
Hello World from thread = 6
Hello World from thread = 4
Hello World from thread = 3
Hello World from thread = 5
Hello World from thread = 7

OpenMP is supported in Intel's C, C++, and Fortran compilers; as such, a Fortran version of the program above could be used to produce similar results. An important feature of OpenMP threads is that they are logical entities that are not by default locked to physical processors. The code above requesting 8 threads would run and produce similar results on a compute node with only 2 or 4 processors, or even 1 processor. In these cases, they would simply take more wall-clock time to complete.

When threads in excess of the physical number of processors present on the motherboad are requested they simply compete for access to actual number of physical cores available. Under such circumstaces, maximum program speed ups are limited to the number of unshared physical processors (cores) available to the OpenMP job less the overhead required to start OpenMP (this ignores Intel's 'hyperthreading' which allows two threads to share sub-resources not in simultaneous use within a single processor).

Compiling OpenMP Programs Using the PGI Compiler Suite

The PGI C compiler requires its '-mp' option for OpenMP programs, as follows:

pgcc  -o hello_omp.exe -mp hello_omp.c

When run this PGI executable will produce the 'same' output as shown above, although the order of the print statements cannot be predicted and will not necessarily be the same over repeated runs.

OpenMP is supported in PGI's C, C++, and Fortran compilers; therefore a Fortran version of the program above could be used to produce similar results.

Compiling OpenMP Programs Using the Cray Compiler Suite

The Cray C compiler requires its '-h omp' option for OpenMP programs, as follows:

cc  -o hello_omp.exe -h omp hello_omp.c

The program produces the same output, and again the order of the print statements cannot be predicted and will not necessarily be the same over repeated runs.

OpenMP is supported in Cray's C, C++, and Fortran compilers; therefore a Fortran version of the program above could be used to produce similar results.

Note: As discussed above in the section on serial program compilation, on the Cray the 'cc', or 'ftn' or 'CC' compiler wrappers would end up being used (with their compiler-specific OpenMP flags) for each specific compiler suite after the appropriate programming environment module was loaded.

Compiling OpenMP Programs Using the GNU Compiler Suite

The GNU C compiler requires its '-fopenmp' option for OpenMP programs, as follows:

gcc  -o hello_omp.exe -fopenmp hello_omp.c

The program produces the same output, and again the order of the print statements cannot be predicted and will not necessarily be the same over repeated runs.

OpenMP is supported in both GNU's C, C++, and Fortran compilers; therefore a Fortran version of the program above could be used to produce similar results.

Submitting an OpenMP Program to the SLURM Batch Queueing System

All non-trivial jobs (development or production, parallel or serial) must be submitted to HPC Center system compute nodes from each system's head or login node using a SLURM script. Jobs run interactively on system head nodes that place a significant and sustained load on the head node will be terminated. Details on the use of SLURM are presented later in this document; however, here we present a basic SLURM script ('my_ompjob') that can be used to submit any OpenMP SMP program for batch processing on one of the CUNY HPCC compute nodes.

#!/bin/bash
#SLURM -q production
#SLURM -N openMP_job
#SLURM -l select=1:ncpus=8
#SLURM -l place=free
#SLURM -V

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORDIR variable is automatically filled with the path 
# to the directory you submit your job from

cd $SLURM_O_WORKDIR
echo ""

# The SLURM_NODEFILE file contains the compute nodes assigned
# to the job by SLURM.  Uncommenting the next line will show them.

cat $SLURM_NODEFILE
echo ""

# It is possible to set the number of threads to be used in
# an OpenMP program using the environment variable OMP_NUM_THREADS.
# This setting is not used here because the number of threads (8)
# was fixed inside the program itself in our example code.
# export OMP_NUM_THREADS=8

./hello_omp.exe

When submitted with 'qsub my_ompjob' a job ID XXXX is returned and the output will be written to the file 'openMP_job.oXXXX' where XXXX is the job ID, unless otherwise redirected on the command-line.

The key lines in the script are '-l select' and '-l place'. The first defines (1) resource chunk with '-l select=1' and assigns (8) cores to it with ':ncpus=8'. SLURM must allocate these (8) cores on a single node because they are all part of a single SLURM resource 'chunk' ('chunks' are atomic) to be used in concert by our OpenMP executable, hello_omp.exe.

Next, the line '-l place=free' instructs SLURM to place this chunk anywhere it can find 8 free cores. As mentioned, SLURM resource 'chunks' are indivisible across compute nodes; and therefore, this job can only be run on a single compute node. It would therefore never run on a system with only 4 cores per compute node and on those with only 8 core per node SLURM would have to find a node with no other jobs running on it. This is exactly what we want for an OpenMP job, a one-to-one mapping of physically free cores to OpenMP threads requested with no other jobs schedule by SLURM (or our of SLURM's purvey) to run and compete for those 8 cores.

Placement on a node with as many free physical cores as OpenMP threads is optimal for OpenMP jobs because each processor assigned to an OpenMP job works within that single program's memory space or image. If the processors assigned by SLURM were on another compute node they would not be usable; if they were assigned to another job on the same compute they would not be fully available to the OpenMP program and would delay its completion.

Here, the selection of 8 cores will consume all the cores available on a single compute node on either BOB or ANDY. This forces SLURM to find and allocate an entire compute node to the OpenMP job. In this case, the OpenMP job will also have all of the memory the compute has at its disposal knowing that no other jobs will be assigned to it by SLURM. If fewer cores were selected (say 4), SLURM could place another job on the same BOB or ANDY compute node using as many as (4) cores. This job would compete for memory resources proportionally, but would have its own cores. SLURM offers the 'pack:excl' option to force exclusive placement even if the job uses less than all the cores on the physical node. One might wish to do this to run a single core job and have it use all the memory on the compute node.

One thing that should be kept in mind when defining SLURM resource requirements and in submitting any SLURM script is that jobs with resource requests that are impossible to fulfill on the system where the job is submitted will be queued forever and never run. In our case here, we must know that the system that we are submitting this job to has at least 8 processors (cores) available on a single physical compute node. At the HPC Center this job would run on either BOB, ANDY or SALK, but would be queued indefinitely on any system that has fewer than 8 cores per physical node. This resource mapping requirement applies to any resource that you might request in your SLURM script, not just cores. Resource definition and mapping is discussed in greater detail in the SLURM section later in this document.

Note that on SALK, the Cray XE6m system, the SLURM script would require the use of Cray's compute-node, job launch command 'aprun', as follows:

#!/bin/bash
#SLURM -q production
#SLURM -N openMP_job
#SLURM -l select=1:ncpus=16:mem=32768mb
#SLURM -l place=free
#SLURM -j oe
#SLURM -o openMP_job.out
#SLURM -V

# You must explicitly change to your working directory in SLURM
# The SLURM_O_WORDIR variable is automatically filled with the path 
# to the directory you submit your job from

cd $SLURM_O_WORKDIR
echo ""

# The SLURM_NODEFILE file contains the compute nodes assigned
# to the job by SLURM.  Uncommenting the next line will show them.

cat $SLURM_NODEFILE
echo ""

# It is possible to set the number of threads to be used in
# an OpenMP program using the environment variable OMP_NUM_THREADS.
# This setting is not used here because the number of threads (8)
# was fixed inside the program itself in our example code.
# export OMP_NUM_THREADS=8

aprun -n 1 -d 16 ./hello_omp.exe

Here, 'aprun' is requesting that one process be allocated to a compute ('-n 1') and that it be given all 16 cores available on a single SALK compute node. Because the production queue on SALK allows no jobs requesting fewer than 16 cores, the '-l select' was also changed. The define in the original C source code should also best be change to set the number of OpenMP threads to 16 so that no allocated cores are wasted on the compute node, as in:

#define NPROCS 16

Application Reference Guides

Application instructions and examples for specific systems and software versions.

Application Reference Guides

ADCIRC (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The CUNY HPCC has installed version 50.79 on SALK (the Cray) and ANDY (the SGI) for general academic use. ADCIRC can be run in serial or MPI-parallel mode on either system. ADCIRC has demonstrated good scaling properties up to 512 cores on SALK and 64 cores on ANDY. A step-by-step walk through of running an ADCIRC test case in both serial and parallel mode follows.

Serial Execution

Create a directory where all the files needed to run the serial ADCIRC job will be kept.

salk$ mkdir test_sadcirc
salk$ cd test_sadcirc

Copy the Shinnecok Inlet example from ADCIRC installation tree and unzip it.

salk$ cp /share/apps/adcirc/default/testcase/serial_shinnecock_inlet.zip ./
salk$ unzip ./serial_shinnecock_inlet.zip 
Archive:  ./serial_shinnecock_inlet.zip
  inflating: serial_shinnecock_inlet/fort.14  
  inflating: serial_shinnecock_inlet/fort.15  
  inflating: serial_shinnecock_inlet/fort.16  
  inflating: serial_shinnecock_inlet/fort.63  
  inflating: serial_shinnecock_inlet/fort.64  

Change into the unpacked subdirectory.

salk$ cd serial_shinnecock_inlet/

There you should find the following files:

salk$ ls
fort.14  fort.15  fort.16  fort.63  fort.64

Next, create a SLURM script with the following lines in it to be used to submit the serial ADCIRC job to the Cray (SALK) SLURM queues. Note that on SALK running a serial job requires allocating (and wasting most of) 16 processors because fractional compute nodes cannot be allocated on SALK.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name SADCIRC.test
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --o sadcirc.out

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SBATCH
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin ADCRIC Serial Run ..."
aprun -n 1 /share/apps/adcirc/default/bin/adcirc
echo ">>>> End   ADCRIC Serial Run ..."

And finally to submit the serial job to the SLURM queue enter:

salk$ qsub sadcirc.job

Parallel Execution

The steps required to run ADCIRC in parallel include some additional mesh partitioning and decomposition steps based on the number processors planned for the job. As before, create a directory where all the files needed for the job will be kept:

salk$ mkdir test_padcirc
salk$ cd test_padcirc

Again, copy the Shinnecok Inlet example from ADCIRC installation tree and unzip it. The starting point for the serial and parallel tests is the same, but for the parallel case the serial data set used above is partitioned and decomposed for the parallel run.

salk$ cp /share/apps/adcirc/default/testcase/serial_shinnecock_inlet.zip ./
salk$ unzip ./serial_shinnecock_inlet.zip 
Archive:  ./serial_shinnecock_inlet.zip
  inflating: serial_shinnecock_inlet/fort.14  
  inflating: serial_shinnecock_inlet/fort.15  
  inflating: serial_shinnecock_inlet/fort.16  
  inflating: serial_shinnecock_inlet/fort.63  
  inflating: serial_shinnecock_inlet/fort.64  

Rename and change into directory you just unpacked:

salk$ mv  serial_shinnecock_inlet  parallel_shinnecock_inlet
salk$ cd parallel_shinnecock_inlet/

Now we need to run the ADCIRC preparation program 'adcprep' to partition the serial domain and decompose problem:

salk$ /share/apps/adcirc/default/bin/adcprep 

When prompted, enter 8 for number of processors to be used in our parallel example here:


  *****************************************
  ADCPREP Fortran90 Version 2.3  10/18/2006
  Serial version of ADCIRC Pre-processor   
  *****************************************
  
 Input number of processors for parallel ADCIRC run:
8

Next, enter 1 to complete partitioning the domain for 8 processors using METIS:


 #-------------------------------------------------------
   Preparing input files for subdomains.
   Select number or action:
     1. partmesh
      - partition mesh using metis ( perform this first)
 
     2. prepall
      - Full pre-process using default names (i.e., fort.14)

      ...

 #-------------------------------------------------------

 calling: prepinput

 use_default =  F
 partition =  T
 prep_all  =  F
 prep_15   =  F
 prep_13   =  F
 hot_local  =  F
 hot_global  =  F

Next, provide that name of the unpartitioned file unzipped from the serial test case, fort.14:

Enter the name of the ADCIRC UNIT 14 (Grid) file:
fort.14

This will generate some additional output to your terminal and complete the mesh partition step.

You must then run 'adcprep' again to decompose the problem. When prompted enter 8, number of processors as before, but this time followed by a 2 to decompose the problem. When this preparation step completes you will find the following files and directories in your working directory:

salk$ ls
fort.15     fort.63  fort.80          partmesh.txt  PE0001  PE0003  PE0005  PE0007
fort.14     fort.16  fort.64     metis_graph.txt  PE0000   PE0002  PE0004  PE0006

The 8 subdirectories created in the second 'adcprep' run contain the partitioned and decomposed problem that each MPI processor (8 in this case) will work on.

Copy the parallel ADCIRC binary to the working directory.

# cp /share/apps/adcirc/default/bin/padcirc ./

At this point you'll have all the files needed to run the parallel job. The files and directories created and required for this 8 core parallel run are shown here:

# ls 
adc  fort.14  fort.15  fort.16  fort.80  metis_graph.txt  partmesh.txt 
PE0000/  PE0001/  PE0002/  PE0003/  PE0004/  PE0005/  PE0006/  PE0007/

Create a SLURM script with the following lines in it to be used to submit the parallel ADCIRC job to the Cray (SALK) SLURM queues:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name PADCIRC.test
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --o padcirc.out


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin PADCRIC MPI Parallel Run ..."
aprun -n 8 /share/apps/adcirc/default/bin/padcirc
echo ">>>> End   PADCRIC MPI Parallel Run ..."

And finally to submit the parallel job to the SLURM queue enter:

salk$ qsub padcirc.job

The CUNY HPCC has also built and provided a parallel-coupled version of ADCIRC and SWAN to include surface wave affects in the simulation. This executable is called 'padcswan' and can be run with largely the same preparation steps and the same SLURM script shown above for 'padcirc'. Details on the minor differences and additional input files required are available at the SWAN websites given in the introduction.

Application Reference Guides

AUTODOCK (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

AUTODOCK



Description: AutoDock is a suite of automated docking tools. It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure.

Additional Notes: Current distributions of AutoDock consist of two generations of software: AutoDock 4 and AutoDock Vina. The latter is a new generation of docking software from the Molecular Graphics Lab. It achieves significant improvements in the average accuracy of the binding mode predictions, while also being up to two orders of magnitude faster than AutoDock 4.1.

Because the scoring functions used by AutoDock 4 and AutoDock Vina are different and inexact, on any given problem, either program may provide a better result.

Please note that preparing the input files for AutoDock 4 require use of Autodock tool set. The use of the later is not described in this document.

Availability: PENZIAS and ANDY

Module file: autodock

Limitations: AutoDock is distributed freely under the GNU GPL for all to use. AutoDock Vina is available under the Apache license, allowing commercial and non-commercial use and redistribution.

Citation: Include in published paper the following citation regarding use of:


AutoDock: Morris, G. M., Huey, R., Lindstrom, W., Sanner, M. F., Belew, R. K., Goodsell, D. S. and Olson, A. J. (2009)
Autodock4 and AutoDockTools4: automated docking with selective receptor flexiblity. J. Computational Chemistry 2009, 16: 2785-91.
Morris, G. M., Goodsell, D. S., Halliday, R.S., Huey, R., Hart, W. E., Belew, R. K. and Olson, A. J. (1998), Automated Docking Using a Lamarckian Genetic Algorithm and and Empirical Binding Free Energy Function J. Computational Chemistry, 19: 1639-1662.
AutoDock Vina: O. Trott, A. J. Olson, AutoDock Vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization and multithreading, Journal of Computational Chemistry 31 (2010) 455-461


Documentation: http://autodock.scripps.edu/faqs-help/manual/autodock-4-2-user-guide

http://autodock.scripps.edu/faqs-help/manual/autodock-vina-manual-page/autodock-vina-manual-page

Tutorials: http://autodock.scripps.edu/faqs-help/tutorial

Related Packages:

Pardock
ICM
SwissDock

Use: Load module file.

 
module load autodock 

Example: Autodock example requires several files, which are prepared Autodock tool set and placed in /share/apps/autodock/default/example/in directory. Upon running the example the files from this directory must be copied in a user directory by the command:

cp /share/apps/autodock/default/example/in/* .

Below is given an example of job submitting script. Please note that installed version of Autodock is a serial program, so the fields <cpus> and <chunks> must have value of 1. The file aq.dpf below is called docking parameter file and is generated by themkgpf3 and mkdpf3 programs, which are part of Autodock tool set.

PENZIAS or ANDY

#!/bin/bash 
#SBATCH -- autodock_test 
#SBATCH -- partition production 
#SBATCH -- select=<chunks>
#SBATCH -- tasks=<cpus>  

# Explicitly change to the working directory  
cd $SLURM_SUBMIT_DIR  

# generate atomic maps 

autogrid4 -p aq.gpf -l output_mapGeneration.glg  

# execute autodock 

autodock4 -p aq.dpf -l output_autodock.dlg #------------------------------  echo "*** Job is done! ***"
Application Reference Guides

ITASSER (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

I-TASSER



Description: I-Tasser is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database.

Additional Notes: Package Contents include:

I-TASSER: A standalone I-TASSER package for protein 3D structure prediction and refinement.
COACH: A function annotation program based on COFACTOR, TM-SITE and S-SITE.
COFACTOR: A program for ligand-binding site, EC number & GO term prediction.
TM-SITE: A structure-based approach for ligand-binding site prediction.
S-SITE: A sequence-based approach for ligand-binding site prediction.
LOMETS: A set of locally installed threading programs for meta-server protein fold-recognition.
MUSTER: A threading program to identify templates from a non-redundant protein structure library.
SPICKER: A clustering program to identify near-native protein model from structure decoys.
HAAD: A program for quickly adding hydrogen atoms to protein heavy-atom structures.
EDTSurf: A program to construct triangulated surfaces of protein molecules.
ModRefiner: A program to construct and refine atomic-level protein models from C-alpha traces.
NW-align: A robust program for protein sequence-to-sequence alignments by Needleman-Wunsch algorithm.
PSSpred: A highly accurate program for protein secondary structure prediction.

Availability: PENZIAS

Module file: itasser

Citation: Include in published paper the following citation regarding use of I-TASSER:

Zhang, Y. and Skolnick, J., 2004, PNAS (for TASSER method), J.Yang,R.Yan,R.Roy,D.Xu,J.Poisson,Y.Zhang The I-TASSER Suite.Protein structure and function prediction. Nature Methods (2014)., Wu S, Zhang Y Nucleic Acids Res. 2007; 35(10):3375-82 (for MUSTER), Wu S, Zhang Y Nucleic Acids Res. 2007; 35(10):3375-82. (for LOMETS)

Documentation:There is no complete documentation for the package. Some examples are available on I-TASSER web server site: http://zhanglab.ccmb.med.umich.edu/I-TASSER/
Tutorials: There are not comprehensive tutorials as well. The useful information for beginners can be found in the I-TASSER forum at: http://zhanglab.ccmb.med.umich.edu/bbs/?q=forum/2

Related Packages:

HHpred
RaptorX
Modeller

Use: Load module with command:

 
module load itasser 

Loading module will set up a path to all programs installed under I-TASSER umbrella (see above list).

Example: The I-TASSER prediction pipeline includes four general steps: template identification, structure re-assembly, atomic model construction, and final model selection.

Step 1. Template identification.
There are 2 scripts in I-TASSER suite dedicated to template identification. The first one is called MUSTER, which uses an extended sequence profile-profile alignment algorithm with the alignment score assisted by secondary structure match, fragment structure profile, solvent accessibility, backbone torsion angle, and hydrophobic scoring matrix. The second one is LOMETS used for a local meta-threading.
Step 2. Structure assembly.
The cluster centroids are generated by SPICKER, which clusters all the trajectories. I-TASSER structure assembly simulations contain 14 independent runs by default. This number can be modified if the user wants to run more simulations, especially for big protein without good templates.
Step 3. Structure assembly.
The SPICKER cluster centroids from I-TASSER are reduced models, with each residue represented by its Cα and side-chain center. The full models can be constructed via other application i.e. REMO which is not part of installed suite.
Step 4. Model Selection.
The procedure of model selection is matter of choice according to the current research workflow.


The I-TASSER can be run in sequential or parallel mode. The application is perl script which uses default perl interpreter on a cluster. The name of the application is runI-TASSER.pl.

For serial mode the following script can be used. Please note that for sequential scripts the chunk is ntasks=1, and the placement is pack (-l place=pack).


For meaning and proper choice of values in <chunks>and <tasks> fields please read the section “Writing a job submit script.”

PENZIAS

Sample submit script

#!/bin/bash 
#!/bin/bash 
#SBATCH --partition production
#SBATCH --job-name TASSER 
#SBATCH --nodes=<chunks>
#SBATCH --ntasks=<<tasks>

# Explicitly change to the working directory in SLURM 
cd $SLURM_SUBMIT_DIR  

# Start job

 runI-TASSER.pl –pkgdir /share/apps/itasser/4.2 –libdir /share/apps/itasser/4.2/ITLIB –seqname <name_of_input_sequence> -datadir $HOME –java_home /usr 2>&1 

echo ">>>> End <<<<”

Parallel submit script

For parallel run on I-TASSER the SBATCH job script below can be used. The parallelism is quite primitive: the I-TASSER script submits several parts of itself at the same time to different cores. Thus the number of used cores is determined by set in –l select=[N:]<chunks> line (resources list) in SBATCH job script. For example for running the below script on 4 cores the chunk could be:

 nodes=4 ntasks=1


#!/bin/bash 
#SBATCH --partition production
#SBATCH --job-name ITASSERJOB 
#SBATCH --nodes=[N:]<<chunk>


# Explicitly change to the working directory in SLURM 
cd $SLURM_SUBMIT_DIR  

# Start job

 runI-TASSER.pl –pkgdir /share/apps/itasser/4.2 –libdir /share/apps/itasser/4.2/ITLIB –seqname <name_of_input_sequence> -datadir $HOME –runstyle parallel –java_home /usr 2>&1 

echo ">>>> End <<<<”


Additional Notes: The I-TASSER is a selection of several perl scripts. The actual use of the scripts varies according to a particular research workflow. The runI-TASSER.pl is a main perl script. It can take the following parameters apart from mentioned above:

-homoflag, [real, benchmark],"real" will use all templates, "benchmark" will exclude homologous templates
-idcut, sequence identity cutoff for "benchmark" runs, default value is 0.3, range is in [0,1]
-ntemp, number of top templates output for each threading program, default is 20, range is in [1,50]
-nmodel, number of final models output by I-TASSER, default value is 5, range is in [1,10]
-LBS, [true or false], whether to predict ligand-binding site, default is false
-EC, [true or false], whether to predict EC number, default is false
-GO, [true or false], whether to predict GO terms, default is false
-restraint1, specify distance/contact restraints
-restraint2, specify template with alignment
-restraint3, specify template name without alignment
-restraint4, specify template file without alignment
-temp_excl, exclude specific templates from template library
-traj, this option means to deposit the trajectory files
-hours, specify maximum hours of simulations (default=5 when -light=true). Must match or be less than walltime on SLURM chunk .
-outdir, where the final results should be saved. Default is start up directory.
Application Reference Guides

AUGUSTUS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Augustus is available on Karle, users must load the module by typing:

module load augustus/[current-version]

The current version can be found in /share/usr/augustus. More detailed information about AUGUSTUS capabilities along with data sets can be found on AUGUSTUS web page:

http://bioinf.uni-greifswald.de/augustus/

When used in research the AUGUSTUS must be cited with appropriate paper from the following list:

Oliver Keller, Martin Kollmar, Mario Stanke, Stephan Waack (2011)
A novel hybrid gene prediction method employing protein multiple sequence alignments
Bioinformatics, doi: 10.1093/bioinformatics/btr010
Mario Stanke, Mark Diekhans, Robert Baertsch, David Haussler (2008)
Using native and syntenically mapped cDNA alignments to improve de novo gene finding
Bioinformatics, 24(5), pages 637-644, doi: 10.1093/bioinformatics/btn013
Mario Stanke, Ana Tzvetkova, Burkhard Morgenstern (2006)
"AUGUSTUS at EGASP: using EST, protein and genomic alignments for improved gene prediction in the human genome"
BMC Genome Biology, 7(Suppl 1):S11.
M. Stanke , O. Schöffmann , B. Morgenstern, S. Waack (2006)
Gene prediction in eukaryotes with a generalized hidden Markov model that uses hints from external sources 
BMC Bioinformatics 7, 62.
Mario Stanke and Burkhard Morgenstern (2005)
"AUGUSTUS: a web server for gene prediction in eukaryotes that allows user-defined constraints",
Nucleic Acids Research, 33, W465-W467
Mario Stanke, Rasmus Steinkamp, Stephan Waack and Burkhard Morgenstern (2004) 
"AUGUSTUS: a web server for gene finding in eukaryotes" 
Nucleic Acids Research, Vol. 32, W309-W312
Mario Stanke and Stephan Waack (2003)
Gene Prediction with a Hidden-Markov Model and a new Intron Submodel. 
Bioinformatics, Vol. 19, Suppl. 2, pages ii215-ii225
Mario Stanke (2003)
Gene Prediction with a Hidden-Markov Model. 
Ph.D. thesis, Universität Göttingen

AUGUSTUS is sequential program Thus the following basic script can be used to run workflow with AUGUSTUS:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name my program
#SBATCH --nodes=1
#SBATCH --ntasks=1

cd SLURM_SUBMIT_DIR

augustus <input_file>  > <output_file>
 
Application Reference Guides

BEAST (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Currently, BEAST is installed on ANDY and PENZIAS at the CUNY HPCC, BEAST is a serial program, but can also be run in parallel with the help of a companion library (BEAGLE) on systems with Graphics Processing Units (GPUs). PENZIAS supports GPU processing using NVIDIA Kepler GPUs and the BEAGLE 1.0 and 2.0 GPU libraries have been installed there for this purpose. (NOTE: GPU processing on ANDY has been eliminated as the FERMI GPUs their have reached end-of-life.) BEAST can therefore be run either serially or in GPU-accelerated mode on PENZIAS. Benchmarks of BEAST show that GPU acceleration provides significant performance improvement over basic CPU serial operation.

BEAST's user interface program, 'BEAUti', can be run locally on an office workstation or from the head node of ANDY. The latter option assumes that the user has logged in directly to PENZIAS or ANDY via the secure shell with X-Windows tunneling enabled (e.g. ssh -X my.name@andy.csi.cuny.edu). This second approach is only convenient for those on the College of Staten Island campus that can directly address PENZIAS or ANDY. Moreover, if HPC staff find that using the BEAUTi interface is consuming too much CPU time users will be asked to move their pre-processing work to their desktop, which is the preferred location for pre-processing in general. Details on using ssh to login are provided elsewhere in this document. Among other things, BEAUti is used to convert raw '.nex' files in into BEAST XML-based input files. Using ANDY's or PENZIAS's head node for anything compute intensive is forbidden, but these file conversions should be fairly low intensity.

Once a usable BEAST input file has been created (or provided), a SLURM batch script must be written to run the job, either in serial mode or in GPU parallel mode. Below, we show how to run both a serial and GPU-accelerated job with a test input case (testMC3.xml) available in the BEAST examples directory. The input file may be copied into the users working directory from BEAST's installation tree for submission with the SLURM, as follows:

cp /share/apps/beast/2.1.2/examples/testRNA.xml .

To include all required environmental variables and the path to the BEAST executable run the modules load command (the modules utility is discussed in detail above):

module load beast/2.1.2

Next, a SLURM Pro batch script must be created to run your job. The first script below shows a serial run that uses the textRNA.xml XML input file.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEAST_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BEAST Serial Run ..."
beast -m 2880 -seed 666 ./testRNA.xml > beast_ser.out 2>&1
echo ">>>> End   BEAST Serial Run ..."

This script can be dropped into a file (say 'beast_serial.job) on ANDY or PENZIAS and run with:

qsub beast_serial.job

This case should take less fifteen minutes to run and will produce SLURM output and error files beginning with the job name 'BEAST_serial', as well files specific to BEAST. The primary BEAST application output will be written into the user-specified file at the end of the BEAST command line after the greater-than sign. Here it is named 'beast_ser.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered above in the SLURM section of the Wiki. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory for the job. The second line instructs SLURM to place this job wherever the least loaded compute node resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The HPC Center staff has made two changes to the memory constraints in operation for ALL the BEAST distributed programs (see list below). First, the default minimum memory size has been set up from 64 MBs to 256 MBs. Second, a maximum memory control option has been added to all the programs. It is not required and if NOT used, programs will use the historical default for Linux jobs which is 1024 MBs (i.e. 1 GBs). If this option is used, it must be the FIRST option included on the execution line in your script and should take the form:

-m XXXXX

where the value 'XXXX' is the new user-selected maximum memory setting in MBytes. So, the option used in the script above:

-m 2880

would bump up the memory maximum for the 'beast' program to 2,880 MBytes. Notice that this matches the amount requested per 'chunk' in the SLURM '-l select' line above. You should not ask for more memory that you have requested through SLURM.

You may wish to request more memory than the per cpu (core) defaults on a system. This can be accomplished by asking for more cores per SLURM 'chunk' than you are going to use, but using ALL of the memory SLURM allocates to the multiple cores. For instance, a '-l select' line of:

#SBATCH --nodes=1 ntasks=4 mem=11520

requests 4 cpus (cores) and 11,520 MBs of memory. You could make this request of SLURM and then leave the extra cores unused while asking for the all of the memory allocated with a 'beast' execution line of:

beast -m 11520 -seed 666 ./testRNA.xml

This provides 4 times the single-core quantity of memory for your 'beast' run by allocating but not using the 4 SLURM cores requested the '-l select' statement. The non_GPU version of 'beast' is serial in the sense that it uses only one CPU core to control the GPU. This memory ceiling management option and technique can be used with any of the programs distributed with BEAST. Another such distributed program would be 'treeannotator' for instance.

Remember that ANDY has 2880 MBs of available memory per core (2.880 GBs). Penzias has 3686 MBs of available memory per core.

Note that there are larger number of command line options available to BEAST. This example uses the defaults, other than setting the seed with '-s 666'. All of BEAST's options can be listed as follows:

shaker.krit@andy:~> /share/apps/beast/default/bin/beast -help
Using Java MAXMEM default: 2048 MBs
  Usage: beast [-verbose] [-warnings] [-strict] [-window] [-options] [-working] [-seed] [-prefix <PREFIX>] [-overwrite] [-errors <i>] [-threads <i>] [-java] [-threshold <r>] [-beagle] [-beagle_info] [-beagle_order <order>] [-beagle_instances <i>] [-beagle_CPU] [-beagle_GPU] [-beagle_SSE] [-beagle_cuda] [-beagle_opencl] [-beagle_single] [-beagle_double] [-beagle_scaling <default|dynamic|delayed|always|none>] [-beagle_rescale <i>] [-mpi] [-mc3_chains <i>] [-mc3_delta <r>] [-mc3_temperatures] [-mc3_swap <i>] [-version] [-help] [<input-file-name>]
    -verbose Give verbose XML parsing messages
    -warnings Show warning messages about BEAST XML file
    -strict Fail on non-conforming BEAST XML file
    -window Provide a console window
    -options Display an options dialog
    -working Change working directory to input file's directory
    -seed Specify a random number generator seed
    -prefix Specify a prefix for all output log filenames
    -overwrite Allow overwriting of log files
    -errors Specify maximum number of numerical errors before stopping
    -threads The number of computational threads to use (default auto)
    -java Use Java only, no native implementations
    -threshold Full evaluation test threshold (default 1E-6)
    -beagle Use beagle library if available
    -beagle_info BEAGLE: show information on available resources
    -beagle_order BEAGLE: set order of resource use
    -beagle_instances BEAGLE: divide site patterns amongst instances
    -beagle_CPU BEAGLE: use CPU instance
    -beagle_GPU BEAGLE: use GPU instance if available
    -beagle_SSE BEAGLE: use SSE extensions if available
    -beagle_cuda BEAGLE: use CUDA parallization if available
    -beagle_opencl BEAGLE: use OpenCL parallization if available
    -beagle_single BEAGLE: use single precision if available
    -beagle_double BEAGLE: use double precision if available
    -beagle_scaling BEAGLE: specify scaling scheme to use
    -beagle_rescale BEAGLE: frequency of rescaling (dynamic scaling only)
    -mpi Use MPI rank to label output
    -mc3_chains number of chains
    -mc3_delta temperature increment parameter
    -mc3_temperatures a comma-separated list of the hot chain temperatures
    -mc3_swap frequency at which chains temperatures will be swapped
    -version Print the version and credits and stop
    -help Print this information and stop

  Example: beast test.xml
  Example: beast -window test.xml
  Example: beast -help

The CUNY HPCC also provides a GPU-accelerated version of BEAST. This version can be run ONLY on PENZIAS which supports GPUs. The same 'beast' module which also loads the BEAGLE GPU library, must be loaded as shown previously. NOTE: ANDY no longer supports GPU computation as its Fermi GPUs have reach end-of-life failure rates.

A SLURM batch script for running the GPU-accelerated version of BEAST follows:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEAST_gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --gres=gpu:1
#SBATCH --mem=2880
#SBATCH --accel=kepler

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BEAST GPU Run ..."
beast_gpu -m 2880 -beagle -beagle_GPU  -beagle_single -seed 666 ./testRNA.xml > beast_gpu.out 2>&1
echo ">>>> End   BEAST GPU Run ..."

This script has several unique features. Next, the '-l select' line includes requests for GPU-related resources. Both 1 processor (npus=1) and 1 GPU (ngpus=1) are requested. You need both. The type of GPU accelerator is specified as an NVIDIA Kepler GPU which has 832 double precision processors (and 2496 single precision processors) running at 0.705 GHz to apply to this workload (accel=kepler). These GPU processing cores, while less powerful individually that a CPU core, in concert are what deliver the performance of the highly parallel MCMC algorithm.

In addition, GPU-specific command-line options are required to invoke the GPU version of the BEAST. Here we have requested that the 'BEAGLE' GPU-library be used and that the computation be run in single- precision (32-bits as opposed to 64-bits) on the GPU which is as much as 3X faster that double-precision on NVIDIA Kepler if you can get by with single-precision.

All the programs that are part of the BEAST 2.1.2 distribution are available, even though we have only discussed 'beast' itself in detail here. The other programs, all of which can be run with similar scripts, include:

addonmanager beast beauti densitree loganalyser  logcombiner  treeannotator
Application Reference Guides

BPP2 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

At the CUNY HPCC BPP2 is installed on Andy and Penzias. BPP2 is a serial code that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the fence lizard test case provided with the distribution archive (/share/apps/bpp2/default/examples).

To include all required environmental variables and the path to the BPP2 executable run the modules load command (the modules utility is discussed in detail above):

module load bpp2


#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BPP2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin BPP2 Serial Run ..."
bpp2 ./lizard.bpp.ctl > bpp2_ser.out 2>&1
echo ">>>> End   BPP2 Serial Run ..."

This script can be dropped in to a file (say bpp2.job) and started with the command:

qsub bpp2.job

Running the fence lizard test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'BPP2_serial'. The primary BPP2 application results will be written into the user-specified file at the end of the BPP2 command line after the greater-than sign. Here it is named 'bpp2_ser.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered in the SLURM section in Applications Enviroment [1]. The most important lines are the '#SBATCH --nodes=1 ncpus=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Application Reference Guides

ADF (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

ADF (Amsterdam Density Functional Theory)

ADF (Amsterdam Density Functional) is a Fortran program for calculations on atoms and molecules (in gas phase or solution) from first principles. It can be used for the study of such diverse fields as molecular spectroscopy, organic and inorganic chemistry, crystallography and pharmacochemistry. Some of its key strengths include high accuracy supported by its use of Slater-type orbitals, all-electron relativistic treatment of the heavier elements, and fast parameterized DFT-based semi-empirical methods. A separate program BAND is available for the study of periodic systems: crystals, surfaces, and polymers. The COSMO-RS program is used for calculating thermodynamic properties of (mixed) fluids.

The underlying theory is the Kohn-Sham approach to Density-Functional Theory (DFT). This implies a one-electron picture of the many-electron systems, but yields in principle the exact electron density (and related properties) and the total energy. If ADF is a new program for you, we recommend that you carefully read Chapter 1, section 1.3 'Technical remarks, Terminology', which presents a discussion of a few ADF-typical aspects and terminology. This will help you to understand and appreciate the output of an ADF calculation. The ADF Manual is located on the web here: [1]

ADF 2013 (and SCM's other programs) is installed on ANDY and PENZIAS at the CUNY HPCC. The older 2012 version is also available on ANDY server. The current license is group-limited and allows for up to 32 cores of simultaneous ADF use and 8 cores of simultaneous BAND use. This is a floating license limited to the DDR side of ANDY and the SLURM 'production' queue. Users not currently in the ADF group should inquire about access by sending an email to 'hpchelp@csi.cuny.edu'.

Here is a simple ADF input deck that compute the SCF wave function for HCN. This example can be run with the SLURM script shown below on from 1 to 4 cores.

Title    HCN Linear Transit, first part
NoPrint  SFO, Frag, Functions, Computation

Atoms      Internal
  1 C  0 0 0       0    0    0
  2 N  1 0 0       1.3  0    0
  3 H  1 2 0       1.0  th  0
End

Basis
 Type DZP
End

Symmetry NOSYM

Integration 6.0 6.0

Geometry
  Branch Old
  LinearTransit  10
  Iterations     30  4
  Converge   Grad=3e-2,  Rad=3e-2,  Angle=2
END

Geovar
  th   180    0
End

End Input

A SLURM script ('adf_4.job') configured to use 4 cores is shown here. Note that ADF does not use the version of MPI that the HPC Center supports by default. ADF used the proprietary version of MPI from SGI that is part of SGI's MPT parallel library package. This script includes special lines to configure the run for this. A side effect of this fact is that ADF jobs will not clock time in SLURM as shown under the 'Time' column when your job is being checked with 'qstat'

To include all required environmental variables and the path to the ADF executable run the modules load command (the modules utility is discussed in detail above):

module load adf
#!/bin/bash
# This script runs a 4-cpu (core) ADF job using the group
# license of Dr. Vittadello, Dr. Birke, and the CUNY HPCC.
# This script requests only one half of the resources 
# on an ANDY compute node (4 cores, 1 half its memory). 
#
# The HCN_4P.inp deck in this directory is configured to work
# with these resources, although this computation is really 
# too small to make full use of them. To increase or decrease
# the resources SLURM requests (cpus, memory, or disk) change the 
# '-l select' line below and the parameter values in the input deck.
#
#SLURM -q production
#SLURM -N adf_4P_job
#SLURM -l select=1:ncpus=4:mem=11520mb:lscratch=400gb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# set environment up to use SGI's MPT version of MPI rather
# than the CUNY default which is OpenMPI
BASEPATH=/opt/sgi/mpt/mpt-2.02

export PATH=${BASEPATH}/bin:${PATH}
export CPATH=${BASEPATH}/include:${CPATH}
export FPATH=${BASEPATH}/include:${FPATH}
export LD_LIBRARY_PATH=${BASEPATH}/lib:${LD_LIBRARY_PATH}
export LIBRARY_PATH=${BASEPATH}/lib:${LIBRARY_PATH}
export MPI_ROOT=${BASEPATH}

# set the ADF root directory
export ADFROOT=/share/apps/adf
export ADFHOME=${ADFROOT}/2013.01

# point ADF to the ADF license file
export SCMLICENSE=${ADFHOME}/license.txt

# set up ADF scratch directory 
export MY_SCRDIR=`whoami;date '+%m.%d.%y_%H:%M:%S'`
export MY_SCRDIR=`echo $MY_SCRDIR | sed -e 's; ;_;'`
export SCM_TMPDIR=/home/adf/adf_scr/${MY_SCRDIR}_$$

mkdir -p $SCM_TMPDIR

echo ""
echo "The ADF scratch files for this job are in: ${SCM_TMPDIR}"
echo ""

# check important paths
#type mpirun
#type adf

# set the number processors to use in this job to 4
export NSCM=4

# run the ADF job
echo "Starting ADF job ... "
echo ""

adf -n 4 < HCN_4P.inp > HCN_4P.out 2>&1

# name output files
mv logfile HCN_4P.logfile

echo ""
echo "ADF job finished ... "

# clean up scratch directory files
/bin/rm -r $SCM_TMPDIR

Much of this script is similar to the script that runs Gaussian jobs, but the differences should should be described in some detail. First, ADF must be submitted to the 'production' queue which is where its floating license has been limited, and where it can only use 32 cores at one for ADF and 8 cores at a time for BAND. Second, there is a block in the script that sets up the environment to use the SGI proprietary version of MPI for parallel runs. Next is the NSCM environmental variable which defines the number of cores to use along with the '-n' option on the command line. Both of these (along with the number of cpus on the SLURM '-l select' line at the beginning of the script) must be adjusted to control the number of cores used by the job.

Note the 'adf' command is actually a script that generates and runs another script that actually runs the 'adf.exe' executable. This script (called 'runscript') is built and placed in the users working directory. It typically includes some preliminary steps that are NOT run in parallel.

With the HCN input file and SLURM script above, you can submit an ADF job on ANDY with:

qsub adf_4.job

All users of ADF must be licensed and placed in the 'gadf' Unix group by HPC Center staff.

Application Reference Guides

GROMACS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

GROMACS



Description: GROMACS is a highly optimized, fast, Molecular Dynamics (MD) simulation package primarily used for research on proteins, lipids, and polymers. The package can also be applied to a wide variety of chemical and biological research questions.

Additional Notes: GROMACS 5.X represents the newest version of GROMACS and has been optimized for both parallel MPI and GPU performance. This version is installed on PENZIAS and is recommended. GROMACS 4.X is also installed. There are significant differences between versions of GROMACS, which may affect the simulation process.

Availability: PENZIAS and APPEL

MPI: Yes
SMP: No
GPU: Yes on PENZIAS, No on APPEL

Module file: gromacs

Citation: Include in published paper the following citation regarding use of GROMACS: 1. Berendsen, et al. (1995) Comp. Phys. Comm. 91: 43-56, Lindahl, et al. (2001) J. Mol. Model. 7: 306-317, Van der Spoel, et al. (2005) J. Comput. Chem. 26: 1701-1718, Hess, et al. (2008) J. Chem. Theory Comput. 4: 435-447, Pronk, et al. (2013) Bioinformatics 29 845-854.

Documentation: http://www.gromacs.org/Documentation
Tutorials: http://www.gromacs.org/Documentation/Tutorials

Related Packages:

LAMMPS
NWChem
TINKER

General notes of use: The GROMACS package comes with a set of tools, which can be used to prepare the molecular system for simulation. genbox tool is no longer available in GROMACS 5.X. Also, the tools in GROMACS 5.X cannot be used directly, (as they were with GROMACS 4.X), but via wrapper called gmx (i.e. gmx pdb2gmx). Users should consult the tutorial(s)/documentation specific for the particular version. Also there are significant changes in algorithms used in GROMACS 5.X vs. those in GROMACS 4.X.

GROMACS parallelization schemes: Version 5.X on PENZIAS utilizes MPI parallelism, OpenMP parallelism and GPU-direct mechanism (P2P) to run simulations across several GPUs from different nodes. GROMACS 4.X installed on ANDY utilizes OpenMP (in node parallelism, SMP) and MPI parallelism. The GPU enabled 4.X version on PENZIAS utilizes MPI and OpenMP parallelism as well, but also uses GPUs as accelerator.

Use of GPUs: In the GPU enabled version of GROMACS, the Particle Mesh Ewald (PME) calculations are always done on CPU, while particle-particle (PP) interactions are done on GPU. As such, the optimal ratio between number of CPUs and number of GPUs depends on type of molecular system simulated. For X86_64 architecture the recommended number of atoms per CPU is typically about 100 to 150. As such, and as a rule of thumb, for a computer with K20 GPUs the ratio between the number of CPUs and GPUs should be at least 4:1, but the optimal number depends on molecular system simulated.

Use:

PENZIAS:

module load gromacs/x.x.x

ANDY:

module load gromacs

For meaning and proper choice of values in <chunks> and <cpus> fields please read the section “Writing a job submit script.”

Example: The following example SLURM scripts are described below: (1) General Script Template (2) Penzias (a) 4 cpus and 1 gpu, (b) 4 cpus and 2 gpus (c) 2 mpi threads per gpu and a submit script for (3) Andy.

General submit script template

The sample submit script should be modified based upon sysem (PENZIAS or ANDY) and desired CPU/GPU usage.

#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<chunks>
#SBATCH --ntasks=<cpus>
#SBATCH --gres=gpu=<gpus>
#SBATCH --mem=<memory_mb> 
   

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR  

mpirun -np <chunks*cpus> gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 > water.out 2>&1

PENZIAS

A. Example Submit Script: 4 CPUs and 1 GPU

In the script below, the SLURM scheduler is asked to schedule 4 CPUs and 1 GPU for a job.

On PENZIAS, there are 2 versions of GROMACS which are GPU enabled: GROMACS 5.X and GROMACS 4.X. The 5.x uses more advanced communication protocol between GPU and has improved CPU performance. The following SLURM script can be used as a model on how to run a MPI parallel GROMACS 5.X job with GPUs on PENZIAS. First, load the module for GROMACS with command:

module load gromacs/5.0.4
#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<chunks>
#SBATCH --ntasks=<cpus>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660mb   

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR  

mpirun -np 4 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 > water.out 2>&1

B. Example Submit Script: 4 CPUs and 2 GPUs

On PENZIAS, each virtual node has 2 GPUs. The following script shows how to use 2 GPUs:

#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<chunks>
#SBATCH --ntasks=<cpus>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660 

cd $SLURM_SUBMIT_DIR   

mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 01 > water.out 2>&1 

The above script will allocate 32 CPUs and 8 GPUs across several nodes.

C. Example Submit Script: 2 MPI threads per GPU

For some molecular systems is beneficial to submit two MPI threads per GPU. On PENZIAS that can be achieved with small change in above script in the field of –gpu_id (i.e., adding 0011):

#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<chunks>
#SBATCH --ntasks=<cpus>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660 

cd $SLURM_SUBMIT_DIR   

mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0011 > water.out 2>&1

APPEL

The following SLURM script can be used as a model how to run MPI only simulations with GROMACS 4.X on ANDY. First load the module for the GROMACS with the command:

module load gromacs 

The SLURM script is as follows:

#!/bin/bash 
#SBATCH --job-name GRMX_32bit 
#SBATCH --partition production_qdr 
#SBATCH --nodes=16
#SBATCH --ntasks
#SBATCH --mem=2880 
  

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR   
 

mpirun -np 16 mdrun_mpi -px -pf -s md_para.tpr -o md_para.trr -c md_para.gro -e md_para.edr  -g md_para.log > GRMX_32bit.out 2>&1 

In the above example, the topology file (.tpr), trajectory file (.trr) coordinates file (.gro) etc. are all prepared with GROMACS tools (not shown here).

Application Reference Guides

BEST (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Currently, BEST is available on ANDY at the CUNY HPCC.

To run BEST, first a NEXUS-formatted, DNA sequence comparison input file (e.g. a '.nex' file) must be created using MrBayes. See the section on MrBayes below for this. Here is an example NEXUS input file:

#NEXUS

begin data;
   dimensions ntax=17 nchar=432;
   format datatype=dna missing=?;
   matrix
   human       ctgactcctgaggagaagtctgccgttactgccctgtggggcaaggtgaacgtggatgaagttggtggtgaggccctgggcaggctgctggtggtctacccttggacccagaggttctttgagtcctttggggatctgtccactcctgatgctgttatgggcaaccctaaggtgaaggctcatggcaagaaagtgctcggtgcctttagtgatggcctggctcacctggacaacctcaagggcacctttgccacactgagtgagctgcactgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggtctgtgtgctggcccatcactttggcaaagaattcaccccaccagtgcaggctgcctatcagaaagtggtggctggtgtggctaatgccctggcccacaagtatcac
   tarsier     ctgactgctgaagagaaggccgccgtcactgccctgtggggcaaggtagacgtggaagatgttggtggtgaggccctgggcaggctgctggtcgtctacccatggacccagaggttctttgactcctttggggacctgtccactcctgccgctgttatgagcaatgctaaggtcaaggcccatggcaaaaaggtgctgaacgcctttagtgacggcatggctcatctggacaacctcaagggcacctttgctaagctgagtgagctgcactgtgacaaattgcacgtggatcctgagaatttcaggctcttgggcaatgtgctggtgtgtgtgctggcccaccactttggcaaagaattcaccccgcaggttcaggctgcctatcagaaggtggtggctggtgtggctactgccttggctcacaagtaccac
   bushbaby    ctgactcctgatgagaagaatgccgtttgtgccctgtggggcaaggtgaatgtggaagaagttggtggtgaggccctgggcaggctgctggttgtctacccatggacccagaggttctttgactcctttggggacctgtcctctccttctgctgttatgggcaaccctaaagtgaaggcccacggcaagaaggtgctgagtgcctttagcgagggcctgaatcacctggacaacctcaagggcacctttgctaagctgagtgagctgcattgtgacaagctgcacgtggaccctgagaacttcaggctcctgggcaacgtgctggtggttgtcctggctcaccactttggcaaggatttcaccccacaggtgcaggctgcctatcagaaggtggtggctggtgtggctactgccctggctcacaaataccac
   hare        ctgtccggtgaggagaagtctgcggtcactgccctgtggggcaaggtgaatgtggaagaagttggtggtgagaccctgggcaggctgctggttgtctacccatggacccagaggttcttcgagtcctttggggacctgtccactgcttctgctgttatgggcaaccctaaggtgaaggctcatggcaagaaggtgctggctgccttcagtgagggtctgagtcacctggacaacctcaaaggcaccttcgctaagctgagtgaactgcattgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggttattgtgctgtctcatcactttggcaaagaattcactcctcaggtgcaggctgcctatcagaaggtggtggctggtgtggccaatgccctggctcacaaataccac
   rabbit      ctgtccagtgaggagaagtctgcggtcactgccctgtggggcaaggtgaatgtggaagaagttggtggtgaggccctgggcaggctgctggttgtctacccatggacccagaggttcttcgagtcctttggggacctgtcctctgcaaatgctgttatgaacaatcctaaggtgaaggctcatggcaagaaggtgctggctgccttcagtgagggtctgagtcacctggacaacctcaaaggcacctttgctaagctgagtgaactgcactgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggttattgtgctgtctcatcattttggcaaagaattcactcctcaggtgcaggctgcctatcagaaggtggtggctggtgtggccaatgccctggctcacaaataccac
   cow         ctgactgctgaggagaaggctgccgtcaccgccttttggggcaaggtgaaagtggatgaagttggtggtgaggccctgggcaggctgctggttgtctacccctggactcagaggttctttgagtcctttggggacttgtccactgctgatgctgttatgaacaaccctaaggtgaaggcccatggcaagaaggtgctagattcctttagtaatggcatgaagcatctcgatgacctcaagggcacctttgctgcgctgagtgagctgcactgtgataagctgcatgtggatcctgagaacttcaagctcctgggcaacgtgctagtggttgtgctggctcgcaattttggcaaggaattcaccccggtgctgcaggctgactttcagaaggtggtggctggtgtggccaatgccctggcccacagatatcat
   sheep       ctgactgctgaggagaaggctgccgtcaccggcttctggggcaaggtgaaagtggatgaagttggtgctgaggccctgggcaggctgctggttgtctacccctggactcagaggttctttgagcactttggggacttgtccaatgctgatgctgttatgaacaaccctaaggtgaaggcccatggcaagaaggtgctagactcctttagtaacggcatgaagcatctcgatgacctcaagggcacctttgctcagctgagtgagctgcactgtgataagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggtggttgtgctggctcgccaccatggcaatgaattcaccccggtgctgcaggctgactttcagaaggtggtggctggtgttgccaatgccctggcccacaaatatcac
   pig         ctgtctgctgaggagaaggaggccgtcctcggcctgtggggcaaagtgaatgtggacgaagttggtggtgaggccctgggcaggctgctggttgtctacccctggactcagaggttcttcgagtcctttggggacctgtccaatgccgatgccgtcatgggcaatcccaaggtgaaggcccacggcaagaaggtgctccagtccttcagtgacggcctgaaacatctcgacaacctcaagggcacctttgctaagctgagcgagctgcactgtgaccagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgatagtggttgttctggctcgccgccttggccatgacttcaacccgaatgtgcaggctgcttttcagaaggtggtggctggtgttgctaatgccctggcccacaagtaccac
   elephseal   ttgacggcggaggagaagtctgccgtcacctccctgtggggcaaagtgaaggtggatgaagttggtggtgaagccctgggcaggctgctggttgtctacccctggactcagaggttctttgactcctttggggacctgtcctctcctaatgctattatgagcaaccccaaggtcaaggcccatggcaagaaggtgctgaattcctttagtgatggcctgaagaatctggacaacctcaagggcacctttgctaagctcagtgagctgcactgtgaccagctgcatgtggatcccgagaacttcaagctcctgggcaatgtgctggtgtgtgtgctggcccgccactttggcaaggaattcaccccacagatgcagggtgcctttcagaaggtggtagctggtgtggccaatgccctcgcccacaaatatcac
   rat         ctaactgatgctgagaaggctgctgttaatgccctgtggggaaaggtgaaccctgatgatgttggtggcgaggccctgggcaggctgctggttgtctacccttggacccagaggtactttgatagctttggggacctgtcctctgcctctgctatcatgggtaaccctaaggtgaaggcccatggcaagaaggtgataaacgccttcaatgatggcctgaaacacttggacaacctcaagggcacctttgctcatctgagtgaactccactgtgacaagctgcatgtggatcctgagaacttcaggctcctgggcaatatgattgtgattgtgttgggccaccacctgggcaaggaattcaccccctgtgcacaggctgccttccagaaggtggtggctggagtggccagtgccctggctcacaagtaccac
   mouse       ctgactgatgctgagaagtctgctgtctcttgcctgtgggcaaaggtgaaccccgatgaagttggtggtgaggccctgggcaggctgctggttgtctacccttggacccagcggtactttgatagctttggagacctatcctctgcctctgctatcatgggtaatcccaaggtgaaggcccatggcaaaaaggtgataactgcctttaacgagggcctgaaaaacctggacaacctcaagggcacctttgccagcctcagtgagctccactgtgacaagctgcatgtggatcctgagaacttcaggctcctaggcaatgcgatcgtgattgtgctgggccaccacctgggcaaggatttcacccctgctgcacaggctgccttccagaaggtggtggctggagtggccactgccctggctcacaagtaccac
   hamster     ctgactgatgctgagaaggcccttgtcactggcctgtggggaaaggtgaacgccgatgcagttggcgctgaggccctgggcaggttgctggttgtctacccttggacccagaggttctttgaacactttggagacctgtctctgccagttgctgtcatgaataacccccaggtgaaggcccatggcaagaaggtgatccactccttcgctgatggcctgaaacacctggacaacctgaagggcgccttttccagcctgagtgagctccactgtgacaagctgcacgtggatcctgagaacttcaagctcctgggcaatatgatcatcattgtgctgatccacgacctgggcaaggacttcactcccagtgcacagtctgcctttcataaggtggtggctggtgtggccaatgccctggctcacaagtaccac
   marsupial   ttgacttctgaggagaagaactgcatcactaccatctggtctaaggtgcaggttgaccagactggtggtgaggcccttggcaggatgctcgttgtctacccctggaccaccaggttttttgggagctttggtgatctgtcctctcctggcgctgtcatgtcaaattctaaggttcaagcccatggtgctaaggtgttgacctccttcggtgaagcagtcaagcatttggacaacctgaagggtacttatgccaagttgagtgagctccactgtgacaagctgcatgtggaccctgagaacttcaagatgctggggaatatcattgtgatctgcctggctgagcactttggcaaggattttactcctgaatgtcaggttgcttggcagaagctcgtggctggagttgcccatgccctggcccacaagtaccac
   duck        tggacagccgaggagaagcagctcatcaccggcctctggggcaaggtcaatgtggccgactgtggagctgaggccctggccaggctgctgatcgtctacccctggacccagaggttcttcgcctccttcgggaacctgtccagccccactgccatccttggcaaccccatggtccgtgcccatggcaagaaagtgctcacctccttcggagatgctgtgaagaacctggacaacatcaagaacaccttcgcccagctgtccgagctgcactgcgacaagctgcacgtggaccctgagaacttcaggctcctgggtgacatcctcatcatcgtcctggccgcccacttcaccaaggatttcactcctgactgccaggccgcctggcagaagctggtccgcgtggtggcccacgctctggcccgcaagtaccac
   chicken     tggactgctgaggagaagcagctcatcaccggcctctggggcaaggtcaatgtggccgaatgtggggccgaagccctggccaggctgctgatcgtctacccctggacccagaggttctttgcgtcctttgggaacctctccagccccactgccatccttggcaaccccatggtccgcgcccacggcaagaaagtgctcacctcctttggggatgctgtgaagaacctggacaacatcaagaacaccttctcccaactgtccgaactgcattgtgacaagctgcatgtggaccccgagaacttcaggctcctgggtgacatcctcatcattgtcctggccgcccacttcagcaaggacttcactcctgaatgccaggctgcctggcagaagctggtccgcgtggtggcccatgccctggctcgcaagtaccac
   xenlaev     tggacagctgaagagaaggccgccatcacttctgtatggcagaaggtcaatgtagaacatgatggccatgatgccctgggcaggctgctgattgtgtacccctggacccagagatacttcagtaactttggaaacctctccaattcagctgctgttgctggaaatgccaaggttcaagcccatggcaagaaggttctttcagctgttggcaatgccattagccatattgacagtgtgaagtcctctctccaacaactcagtaagatccatgccactgaactgtttgtggaccctgagaactttaagcgttttggtggagttctggtcattgtcttgggtgccaaactgggaactgccttcactcctaaagttcaggctgcttgggagaaattcattgcagttttggttgatggtcttagccagggctataac
   xentrop     tggacagctgaagaaaaagcaaccattgcttctgtgtgggggaaagtcgacattgaacaggatggccatgatgcattatccaggctgctggttgtttatccctggactcagaggtacttcagcagttttggaaacctctccaatgtctccgctgtctctggaaatgtcaaggttaaagcccatggaaataaagtcctgtcagctgttggcagtgcaatccagcatctggatgatgtgaagagccaccttaaaggtcttagcaagagccatgctgaggatcttcatgtggatcccgaaaacttcaagcgccttgcggatgttctggtgatcgttctggctgccaaacttggatctgccttcactccccaagtccaagctgtctgggagaagctcaatgcaactctggtggctgctcttagccatggctacttc
   ;
end;

begin mrbayes;
   charset non_coding = 1-90 358-432;
   charset coding     = 91-357;
   partition region = 2:non_coding,coding;
   set partition = region;
   lset applyto=(2) nucmodel=codon;
   prset ratepr=variable;
   mcmc ngen=5000 nchains=1 samplefreq=10;
end;

Next, a SLURM batch script must be created to run your job. The first script below shows a MPI parallel script for the above '.nex' input file. Note that the number of processors that can be used by the job is limited to the number of chains in the input file. Here, we have just 2 chains and therefore can only request 2 processors. If you make the mistake of asking for more processors than input file chains, you will get the following error message:

      The number of chains must be at least as great
      as the number of processors (in this case 4)

Also, to include all required environmental variables and the path to the BEST executable run the modules load command (the modules utility is discussed in detail above):

module load best

Here is the MPI parallel SLURM batch script for BEST that request 2 processors, one for each chain in the input file:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEST_parallel
#SBATCH --nodes=2
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin BEST Parallel Run ..."
mpirun -np mbbest ./bglobin.nex  > best_mpi.out 2>&1
echo ">>>> End   BEST Parallel Run ..."

This script can be dropped into a file (say 'best_mpi.job) on ANDY and run with:

qsub best_mpi.job

It should take less five minutes to run and will produce SLURM output and error files beginning with the job name 'BEST_parallel'. The primary BEAST application results will be written into the user-specified file at the end of the BEST command line after the greater-than sign. Here it is named 'best_mpi.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes ntasks=1 mem=2880'. The first instructs SLURM to select 2 resource 'chunks' each with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The CUNY HPCC also provides a serial version of BEST. A SLURM batch script for running the serial version of BEST follows:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEST_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin BEST Serial Run ..."
mbbest_serial ./bglobin.nex > best_ser.out 2>&1
echo ">>>> End   BEST Serial Run ..."
Application Reference Guides

BOWTIE2 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

At the CUNY HPCC BOWTIE2 is installed on ANDY and PENZIAS. BOWTIE2 is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the lambda virus test case provided with the BOWTIE2 distribution which can be copied from the local installation directory to your current location as follows:

cp /share/apps/bowtie2/default/examples/reference/lambda_virus.fa .
cp /share/apps/bowtie2/default/examples/reads/reads_1.fq . 

To include all required environmental variables and the path to the BOWTIE2 executable run the modules load command (the modules utility is discussed in detail above).

module load bowtie2

Running 'bowtie2' from the interactive prompt without any options will provide a brief description of the form of the command-line arguments and options. Here is SLURM batch script that builds lambda virus the index and aligns the sequences in serial mode:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BOWTIE2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BOWTIE2 Serial Run ..."
echo ""
echo ">>>> Build Index ..."
bowtie2-build lambda_virus.fa lambda_virus > lambda_virus_index.out 2>&1
echo ""
echo ">>>> Align Sequence ..."
bowtie2 -x lambda_virus -U reads_1.fq -S eg1.sam > lambda_virus_align.out 2>&1
echo ""
echo ">>>> End   BOWTIE2 Serial Run ..."

This script can be dropped in to a file (say bowtie.job) and started with the command:

qsub bowtie2.job

Running the lambda virus test case should take less than 2 minutes and will produce SLURM output and error files beginning with the job name 'BOWTIE2_serial'. The primary BOWTIE2 application results will be written into the user-specified file at the end of the CUFFLINKS command line after the greater-than sign. Here it is named 'lambda_virus_index.out' and 'lambda_virus_align.out.' The expression '2>&1' at the end of the command-line combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run BOWTIE2 in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run BOWTIE2 using two threads. ANDY has as many as 8 physical compute cores per compute node and therefore as many as 8 threads might be chosen, but the larger the number of cores-threads requested the longer the job may wait to start as SLURM looks for a compute node with the free resources requested.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BOWTIE2_threads
#SBATCH --nodes=1
#SBATCH --ntasks=2
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BOWTIE2 Threaded Run ..."
echo ""
echo ">>>> Build Index ..."
bowtie2-build lambda_virus.fa lambda_virus > lambda_virus_index.out 2>&1
echo ""
echo ">>>> Align Sequence ..."
bowtie2 -p 2 -x lambda_virus -U reads_1.fq -S eg1.sam > lambda_virus_align2.out 2>&1
echo ""
echo ">>>> End   BOWTIE2 Threaded Run ..."

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ntasks=2) and requests twice as much memory as before. Also, notice that the BOWTIE2 command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Larger jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

Application Reference Guides

BROWNIE (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

BROWNIE is installed on the Andy cluster under the directory "/share/apps/brownie/default/bin/". The directory "/share/apps/brownie/default/examples/" contains two example files.

In order to run one of these examples on Andy follow the steps:

1) create a directory and "cd" there:

mkdir ./brownie_test  && cd ./brownie_test

2) Copy the example input deck to the current directory:

cp /share/apps/brownie/default/example/ratetest_example.nex ./

3) Create a SLURM submit script. Use your favorite text editor to put the following lines into file "brownie_serial.job"

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BROWNIE_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BROWNIE Serial Run ..."
brownie ./ratetest_example.nex > brownie_ser.out 2>&1
echo ">>>> End   BROWNIE Serial Run ..."

4) Load the BROWNIE module to include all required environmental variables and the path to the BROWNIE executable (the modules utility is discussed in detail above.

module load brownie

5) Submit the job to the SLURM queue using:

qsub brownie_serial.job

Running the rate test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'BROWNIE_serial'. The primary BROWNIE application results will be written into the user-specified file at the end of the BROWNIE command line after the greater-than sign. Here it is named 'brownie_ser.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

One can check the status of the job using "qstat" command. Upon successful completion the following files will be generated:

BrownieBatch.nex
brownie_test.eXXXX   --- std error from SLURM
BrownieLog.txt
brownie_test.oXXXX  --- std output from SLURM
RatetestOutput.txt --- result returned by Brownie
Application Reference Guides

CP2K (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

At the CUNY HPCC CP2K is installed on ANDY. CP2K can be built as a serial, MPI-parallel, or MPI-OpenMP-parallel code. At this time, only the MPI-parallel version of the application has been built for production use at the HPC Center. Further information on CP2K is available at the website here [1].

Below is an example SLURM script that will run the CP2K H2O-32 test case provided with the CP2K distribution. It can be copied from the local installation directory to your current location as follows:

cp /share/apps/cp2k/2.3/tests/SE/regtest-2/H2O-32.inp .

To include all required environmental variables and the path to the CP2K executable run the modules load command (the modules utility is discussed in detail above).

module load cp2k

Here is the example SLURM script:

#!/bin/bash
#SBATCH -- partition production
#SBATCH -- job-name CP2K_MPI.test
#SBATCH -- nodes=8
#SBATCH -- ntasks
#SBATCH -- mem=2880


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin CP2K MPI Parallel Run ..."
mpirun -np 8 cp2k.popt ./H2O-32.inp > H2O-32.out 2>&1
echo ">>>> End   CP2K MPI Parallel Run ..."

This script can be dropped in to a file (say cp2k.job) and started with the command:

qsub cp2k.job

Running the H2O-32 test case should take less than 5 minutes and will produce SLURM output and error files beginning with the job name 'CP2K_MPI.test'. The CP2K application results will be written into the user-specified file at the end of the CP2K command line after the greater-than sign. Here it is named 'H2O-32.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered above in the SLURM section. The most important lines are the '#SLURM -l select=8:ncpus=1:mem=2880mb' and the '#SLURM -l pack=free' lines. The first instructs SLURM to select 8 resource 'chunks' with 1 processor (core) and 2,880 MBs of memory in each for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Application Reference Guides

CUFFLINKS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

At the CUNY HPCC CUFFLINKS is installed on ANDY. CUFFLINKS is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the messenger RNA test case provided at the website here [1].

To include all required environmental variables and the path to the CUFFLINKS executable run the modules load command (the modules utility is discussed in detail above):

module load cufflinks

Running 'cufflinks' from the interactive prompt without any options will provide a brief description of the form of the command-line arguments and options. Here is SLURM batch script that runs this test case in serial mode:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name CLINKS2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin CLINKS Serial Run ..."
cufflinks ./mRNA_test.sam > mRNA_test.out 2>&1
echo ">>>> End   CLINKS Serial Run ..."

This script can be dropped in to a file (say cufflinks.job) and started with the command:

qsub cufflinks.job

Running the mRNA test case should take less than 1 minute and will produce SLURM output and error files beginning with the job name 'CLINKS_serial'. The primary CUFFLINKS application results will be written into the user-specified file at the end of the CUFFLINKS command line after the greater-than sign. Here it is named 'mRNA_test.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run CUFFLINKS in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run CUFFLINKS using two threads. ANDY has as many as 8 physical compute cores per compute node and therefore as many as 8 threads might be chosen, but the larger the number of cores-threads requested the longer the job may wait to start as SLURM looks for a compute node with the free resources requested.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name CLINKS_threads
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin CLINKS Threaded Run ..."
cufflinks -p 2 ./clinks_ptest.sam > clinks_ptest.out 2>&1
echo ">>>> End   CLINKS Threaded Run ..."

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ncpus=2) and requests twice as much memory as before. Also, notice that the CUFFLINKS command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Larger jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

Application Reference Guides

GAMESS-US (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The program is installed on PENZIAS. Before run the program please load the proper module file:

module load gamess-us

Below is a simple test input file named test_1.inp for GAMESS:

!  test_1
!    1-A-1 CH2    RHF geometry optimization using GAMESS.
!
!    Although internal coordinates are used (COORD=ZMAT),
!    the optimization is done in Cartesian space (NZVAR=0).
!    This run uses a criterion (OPTTOL) on the gradient
!    which is tighter than default, but very safe.
!
!    This job tests the sp integral module, the RHF module,
!    and the geometry optimization module.
!
!    Using the default search METHOD=STANDARD,
!    FINAL E= -37.2322678015, 8 iters, RMS grad= .0264308
!    FINAL E= -37.2351919062, 7 iters, RMS grad= .0202617
!    FINAL E= -37.2380037239, 7 iters, RMS grad= .0013100
!    FINAL E= -37.2380352917, 8 iters, RMS grad= .0007519
!    FINAL E= -37.2380396312, 5 iters, RMS grad= .0001615
!    FINAL E= -37.2380397693, 5 iters, RMS grad= .0000067
!    FINAL E= -37.2380397698, 3 iters, RMS grad= .0000004
!
 $CONTRL SCFTYP=RHF RUNTYP=OPTIMIZE COORD=ZMT NZVAR=0 $END
 $SYSTEM TIMLIM=1 $END
 $STATPT OPTTOL=1.0E-5  $END
 $BASIS  GBASIS=STO NGAUSS=2 $END
 $GUESS  GUESS=HUCKEL $END
 $DATA
Methylene...1-A-1 state...RHF/STO-2G
Cnv  2

C
H  1 rCH
H  1 rCH  2 aHCH

rCH=1.09
aHCH=110.0
 $END
 

The SLURM start up script is given below.

#!/bin/bash
# This script runs a 4-cpu GAMESS-US job
# with the 4 cpus packed onto a single compute node 
# to ensure that it will run as an SMP parallel job.
#SBATCH --partition production
#SBATCH --job-name geom
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=7680

# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# set the working directory

cd $SLURM_SUBMIT_DIR

# set the name and location of the GAMESS-US scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.
# the following 6 lines set up the scratch directory for large files on each node and separate scratch directory for  small files in user 
# own main directory. Do not modify and/or remove below 6 lines of code. 

export MY_SCRDIR=`whoami;date '+%m.%d.%y_%H:%M:%S'`
export MY_SCRDIR=`echo $MY_SCRDIR | sed -e 's; ;_;'`
export SCR=/state/partition1/gamess_scr/${MY_SCRDIR}_$$
export USERSCR=$PWD/scr
mkdir -p $SCR
mkdir -p $USERSCR
  
# start of the  job. 

gamess 01 test_1.inp -n 4 > test_1.out

# remove the scratch directory before terminating

/bin/rm -rf $SCR

echo 'Job is done!'
Application Reference Guides

GAUSSIAN09 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

As a commercially license application, running Gaussian09 at the CUNY HPCC comes with some restrictions


1. A Gaussian09 job can only run in parallel within a single-node at CUNY.   
2. Gaussian09 users must comply with the licensing and citation requirements
   of Gaussian, Inc.  The following citation must be included in publications that
   relied on Gaussian 09 computations at the CUNY HPCC.
  

Gaussian [03,09], Revision C.02, M. J. Frisch, G. W. Trucks, H. B. Schlegel, 
G. E. Scuseria, M. A. Robb, J. R. Cheeseman, J. A. Montgomery, Jr., T. Vreven, 
K. N. Kudin, J. C. Burant, J. M. Millam, S. S. Iyengar, J. Tomasi, V. Barone, 
B. Mennucci, M. Cossi, G. Scalmani, N. Rega, G. A. Petersson, H. Nakatsuji, 
M. Hada, M. Ehara, K. Toyota, R. Fukuda, J. Hasegawa, M. Ishida, T. Nakajima, 
Y. Honda, O. Kitao, H. Nakai, M. Klene, X. Li, J. E. Knox, H. P. Hratchian, 
J. B. Cross, V. Bakken, C. Adamo, J. Jaramillo, R. Gomperts, R. E. Stratmann, 
O. Yazyev, A. J. Austin, R. Cammi, C. Pomelli, J. W. Ochterski, P. Y. Ayala, 
K. Morokuma, G. A. Voth, P. Salvador, J. J. Dannenberg, V. G. Zakrzewski, 
S. Dapprich, A. D. Daniels, M. C. Strain, O. Farkas, D. K. Malick, A.D. Rabuck, 
K. Raghavachari, J. B. Foresman, J. V. Ortiz, Q. Cui, A. G. Baboul, S. Clifford, 
J. Cioslowski, B. B. Stefanov, G. Liu, A. Liashenko, P. Piskorz, I. Komaromi, 
R. L. Martin, D. J. Fox, T. Keith, M. A. Al-Laham, C. Y. Peng, A. Nanayakkara, 
M. Challacombe, P. M. W. Gill, B. Johnson, W. Chen, M. W. Wong, C. Gonzalez, 
and J. A. Pople, Gaussian, Inc., Wallingford CT, 2004.

3. The Gaussian 09 license prohibits the publication of comparative benchmark data.
 

A SLURM script must be used in order to run a Gaussian09 job. HPCC main cluster Penzias supports Gaussian jobs demanding up to 64GB of memory. Any job necessitating more than 24GB but less than 64GB must be submitted via partition "partgaularge" and can utilize up to 16 cores. All other jobs can utilize up to 8 cores and must be submitted via partition "production_gau". The users should place job(s) according to their simulation requirement.

Gaussian Scratch File Storage Space

If a single Gaussian job is using all the cores on a particular node (this is often the case) then that node's entire local scratch space is available to that job, assuming files from previous jobs have been cleaned up. In order to use Gaussian scratch space, the users must not edit their SLURM scripts in order to place Gaussian scratch files anywhere other than the directories used in the recommended scripts. In particular, users MUST NOT place their scratch files in their home directories. The home directory is backed up to tape and backing up large integrals files to tape will unnecessarily waste backup tapes and increase backup time-to-completion.

Users are encouraged to ensure that their scratch file data is removed after each completed Gaussian run. The example SLURM script below for submitting Gaussian jobs includes a final line to remove scratch files, but this is not always successful. You may have to manually remove your scratch files. The examples script prints out both the node where the job was run and the unique name of each Gaussian job's scratch directory. Please police your own use of Gaussian scratch space by going to '/scratch/gaussian/g09_scr' and looking for directories that begin with your name and the date that the directory was created. As a good rule of thumb, you can request 100 GBs per core in the SLURM script, although this is NOT guaranteed to be enough. Finally, Gaussian users should note that Gaussian scratch files are NOT backed up. Users are encouraged to save their checkpoint files in their SLURM 'working directories' and copy them on '/global/u/username' if they will be needed for future work as they are temporary. From this location, they will be backed up.

NOTE: If other users have failed to clean up after themselves, and you request the maximum amount of Gaussian scratch space, it may not be available and your job may sit in the queue.

Gaussian SLURM Job Submission

As noted, Gaussian parallel jobs are limited by the number of cores on a single compute node. Eight (8) is the maximum processor (core) count on small nodes and the memory per core is limited to 2880 MB/core. On large nodes the maximum processor cores is 16 and the memory per core is 3688MB/core. Here, we provide a simple Gaussian input file (a Hartree-Fock geometry optimization of methane), and the companion SLURM batch submit script that would allocate 4 cores on a single compute node and 400 GBytes of compute-node-local storage.

The Gaussian 09 methane input deck is:

%chk=methane.chk
%mem=8GB
%nproc=4
# hf/6-31g

Title Card Required

0 1
 C                  0.80597015   -1.20895521    0.00000000
 H                  1.16262458   -2.21776521    0.00000000
 H                  1.16264299   -0.70455702    0.87365150
 H                  1.16264299   -0.70455702   -0.87365150
 H                -0.26402985   -1.20894202    0.00000000

END

Notice that we have explicitly requested 8 GBytes of memory with the '%mem=8GB' directive. The input file also instructs Gaussian to use 4 processors which will ensure that all of Gaussian's parallel executables (i.e. links) will run in SMP mode with 4 cores. For this simple methane geometry optimization, requesting these resources (both here and in the SLURM script) is a bit extravagant, but both the input file and script can be adapted to other more substantial molecular systems running more accurate calculations. User's can make pro-rated adjustments to the resources requested in BOTH the Gaussian input deck and SLURM submit script to run jobs on 2, 4, or 8 cores. Here is the Gaussian SLURM script named g09.job which is intended to be used on G09:

#!/bin/csh
# This script runs a '''small memory''' 4-cpu (core) Gaussian 09 job
# with the 4 cpus packed onto a single compute node 
# and max 3GB per core
#SBATCH --partition production_gau
#SBATCH --job-name methane_opt
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=11520mb
 
# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# set the G09 root directory

setenv g09root /share/apps/gaussian/g09_E01

# set the name and location of the G09 scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv GAUSS_SCRDIR  /state/partition1/gaussian/g09_scr/${MY_SCRDIR}_$$
mkdir -p $GAUSS_SCRDIR

echo $GAUSS_SCRDIR

# run the G09 setup script

source $g09root/g09/bsd/g09.login

# users must explicitly change to their working directory with SLURM

cd $SLURM_SUBMIT_DIR

# start the G09 job

$g09root/g09/g09 methane.input

# remove the scratch directory before terminating

/bin/rm -r $GAUSS_SCRDIR

echo 'Job is done!'

To run the job, one must use the standard SLURM job submission command as follows:

sbatch g09.job

Users may choose to run jobs with fewer processors (cores, cpus) and smaller storage space requests than this sample job. This includes one processor jobs and others using a fraction of a compute node (2 processors, 4 processors, 6 processors). On a busy system, these smaller jobs may start sooner that those requesting a full 8 processors packed on a single node. Selecting the most efficient combination of processors, memory, and storage will ensure that resources will not be wasted and will be available to allocate to the next job submitted. For large jobs (up to 64GB) the users may use the following script named g09_large.job:

#!/bin/csh
# This script runs a '''small memory''' 16-cpu (core) Gaussian 09 job
# with the 4 cpus packed onto a single compute node 
# and max 4GB per core
#SBATCH --partition partgaularge
#SBATCH --job-name methane_opt
#SBATCH --nodes=1
#SBATCH --ntasks=16
#SBATCH --mem=58980mb
 
# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# set the G09 root directory

setenv g09root /share/apps/gaussian/g09_E01

# set the name and location of the G09 scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv GAUSS_SCRDIR /state/partition1/gaussian/g09_scr/${MY_SCRDIR}_$$ 
mkdir -p $GAUSS_SCRDIR

echo $GAUSS_SCRDIR

# run the G09 setup script

source $g09root/g09/bsd/g09.login

# users must explicitly change to their working directory with SLURM

cd $SLURM_SUBMIT_DIR

# start the G09 job

$g09root/g09/g09 methane.input

# remove the scratch directory before terminating

/bin/rm -r $GAUSS_SCRDIR

echo 'Job is done!'

To run the job, one must use the the following SLURM job submission command:

sbatch g09_large.job

Application Reference Guides

LAMMPS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The complete LAMMPS package is installed on PENZIAS server. Please always use only name lammps not a full path as on andy. Because the later is GPU enabled computer the code is compiled as double-double i.e double precision on force and velocity. The abundance of GPU in PENZIAS makes the use of OpenMP obsolete, because usually the better performance results are obtained by oversubscribing Kepler GPUs rather than by using OpenMP style. That is why the OpenMP package along with KIM package is not installed on PENZIAS. As a rule of thumb, it is recommended to use 2-4 MPI threads per Kepler GPU in order to gain maximum performance. Current packages installed on PENZIAS are: ASPHERE, BODY, CLASS2, COLLOID, DIPOLE, FLD, GPU, GRANULAR, KSPACE, MANYBODY, MC, MEAM, MISC, MOLECULE, OPT, PERI, POEMS, REAX, REPLICA, RIGID, SHOCK, SRD, VORONOI, XTC. In addition the following USER packages are also installed: ATC, AWPMD, CG-CMM, COLVARS, CUDA, EFF, LB, MISC, MOLFILE, PHONON, REAXC and SPH.

Here is a LAMMPS input deck (in.lj) from the LAMMPS benchmark suite.

 3d Lennard-Jones melt

variable        x index 1
variable        y index 1
variable        z index 1

variable        xx equal 20*$x
variable        yy equal 20*$y
variable        zz equal 20*$z

units           lj
atom_style      atomic

lattice         fcc 0.8442
region          box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box      1 box
create_atoms    1 box
mass            1 1.0

velocity        all create 1.44 87287 loop geom

pair_style      lj/cut 2.5
pair_coeff      1 1 1.0 1.0 2.5

neighbor        0.3 bin
neigh_modify    delay 0 every 20 check no

fix             1 all nve

run             100

The script below utilizes version of LAMMPS on 8 CPU processor cores. Before use it however load module lammps with the command

module load lammps
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name LAMMPS_test
#SBATCH --nodes=8
#SBATCH --ntasks


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin LAMMPS MPI Parallel Run ..."
echo ""
mpirun -np 8 lmp_ompi < in.lj > out_file
echo ""
echo ">>>> End   LAMMPS MPI Parallel Run ..."

On PENZIAS the GPU mode is the default unless otherwise turned off with the command-line switch '-cuda off'. In order to run on GPU you must also modify the SLURM script by editing the '-l select' line to request one GPU for every CPU allocated by SLURM. In other words the '-l select' line for a GPU run would look like this:

#SBATCH --nodes=8
#SBATCH --ntasks
#SBATCH --gres=gpu:1 

Other changes to the input file and/or the command line. are also need to run on the GPUs. Details regarding command-line switches are available here [1]. Here is a simple listing:

-c or -cuda
-e or -echo
-i or -in
-h or -help
-l or -log
-p or -partition
-pl or -plog
-ps or -pscreen
-r or -reorder
-sc or -screen
-sf or -suffix
-v or -var

Other requirements for running in GPU mode (or to use any of the various user-packages) can be found here [2] and in the LAMMPS User Manual mentioned above. The 'package gpu' and 'package cuda' commands the those of primary interest.

At the end note that users interested a single-precision version of LAMMPS should contact the HPC Center through 'hpchelp@csi.cuny.edu'.

The installation on the Cray XE6 (SALK) does not include the GPU parallel models because the CUNY HPCC Cray does not have GPU hardware.

Application Reference Guides

DL POLY (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

DL_POLY is installed on ANDY under the user applications directory

/share/apps/dlpoly

The default is currently version 2.20, but users can select the more current version by referencing the 3.10 directory explicitly in their scripts.

To run DL_POLY the user needs to provide a set of several files. Those that are required include:

1) The CONTROL file, which indicates to DL_POLY what kind of simulation you want to run, how much data you want to gather, and for how long you want the simulation to run.

2) The CONFIG file, which contains the atom positions, and, depending on how the file was created (e.g. whether this is a configuration created from ‘scratch’ or the end point of another run), the atom's velocities and forces.

3) The FIELD file, which specifies the nature of the intermolecular interactions, the molecular topology, and the atomic properties, such as charge and mass.

Sometimes you may require a fourth file: TABLE, which contains short-ranged potential and force arrays for functional forms not available within DL_POLY (usually because they are too complex e.g. spline potentials) and/or a fifth file: TABEAM, which contains metal potential arrays for non- analytic or too complex functional forms and/or a sixth file: REFERENCE, which is similar to the CONFIG file and contains the ”perfect” crystalline structure of the system.

Several directories are included in the installation tree. The primary executable for DL_POLY and a number of other supporting scripts are located in the directory:

/share/apps/dlpoly/default/bin

A collection of example input files that you may use as test cases are located in the directory:

/share/apps/dlpoly/default/data

The user and installation guide in PDF format are located in the directory:

/share/apps/dlpoly/default/man

Support utilities and programs are found in:

/share/apps/dlpoly/default/utility
/share/apps/dlpoly/default/public

To test DL_POLY, copy the files in

/share/apps/dlpoly/default/data/TEST10/LF

to a working directory (e.g. dlpoly) in your $HOME directory and run the SLURM script provided below using the SLURM submission command:

qsub dlpoly.job
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name DLPOLY_mpi
#SBATCH --nodes=8
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLUM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin DLPOLY MPI Run ..."
mpirun -np 8 dlpoly > dlpoly_mpi.out 2>&1
echo ">>>> Begin DLPOLY MPI Run ..."

Please refer to the DL_POLY manual for more detailed information on DL_POLY and to the general SLURM section in this Wiki for more details on the SLURM queuing system. There are a number of tutorials and further information to be found online by Googling.

Application Reference Guides

GARLI (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

At the CUNY HPCC, GARLI is installed on on ANDY. GARLI has both a serial and MPI parallel version that takes its input from a simple text configuration file ('garli.conf') and a '.nex' sequence file ('rana.nex' for instance). Like other applications on ANDY, GARLI path and environment variables are controlled using the modules utility. To include all required environmental variables and the path to the GARLI executable run the modules load command (the modules utility is discussed in detail above):

module load garli

Below is an example SLURM script that will run the frog ('rana.nex') test case provided with the distribution archive (/share/apps/garli/default/examples/basic). Users can copy the necessary files from this location.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GARLI_mpi
#SBATCH --nodes=2
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin GARLI MPI Run ..."
mpirun -np 2 -machinefile $SLURM_NODEFILE garli_mpi > garli_mpi.out 2>&1
echo ">>>> Begin GARLI MPI Run ..."

This script can be dropped in to a file (say garli_mpi.job) and started with the command:

qsub garli_mpi.job

Running the 'rana.nex' test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'GARLI_mpi'. The primary GARLI application results will be written into the user-specified file at the end of the GARLI command line after the greater-than sign. Here it is named 'garli_mpi.out'. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered in the SLURM section above. The most important lines here are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Application Reference Guides

GAUSS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

A SLURM submit script for GAUSS that runs on 1 processor (core) follows:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GAUSS_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

#
# Point to the serial executable to run
#
echo ">>>> Begin GAUSS Serial Run ..."
# Static executable
/share/apps/gauss/default/tgauss.static < ./pxyz.e > pxyz.out
#
# Dynamic executable
#/share/apps/gauss/default/tgauss < ./quantile.e > gauss.out
#
echo ">>>> End   GAUSS Serial Run ..."

Here, the file pxyz.e was taken from the GAUSS examples in /share/apps/gauss/examples. Upon successful completion, a run file "graphic.tkf" should be created in working directory.

pxyz.e:

library pgraph;
graphset;

let v = 100 100 640 480 0 0 1 6 15 0 0 2 2;
wxyz = WinOpenPQG( v, "XYZ Plot", "XYZ" );
call WinSetActive( wxyz );

begwind;
makewind(9,6.855,0,0,1);
makewind(9/2.9,6.855/2.9,0,0,0);
makewind(9/2.9,6.855/2.9,0,3.8,0);
_psurf = 0;
title("\202XYZ Curve - \201Toroidal Spiral");
fonts("simplex complex");
xlabel("X");
ylabel("Y");
zlabel("Z");

setwind(1);
t = seqa(0,.0157,401);
a = .2; b=.8; c=20;
x = 3*((a*sin(c*t)+b) .* cos(t));
y = 3*((a*sin(c*t)+b) .* sin(t));
z = a*cos(c*t);
margin(.5,0,0,0);
ztics(-.3,.3,.3,0);
_pcolor = 10;
view(-3,-2,4);
volume(1,1,.7);
_plwidth = 5;
xyz(x,y,z);

nextwind;
margin(0,0,0,0);
title("");
x = x .* (sin(z)/10);
_paxes = 0;
_pframe = 0;
_pbox = 13;
_pcolor = 11;
_plwidth = 0;
view(15,2,10);
xyz(x,y,z);

nextwind;
_pcolor = 9;
a = .4; b=.4; c=15;
x = 3*((a*sin(c*t)+b) .* cos(t));
y = 3*((a*sin(c*t)+b) .* sin(t));
z = a*cos(c*t);
volume(1,1,.4);
xyz(x,y,z);

endwind;

call WinSetActive( 1 );
Application Reference Guides

GENOMEPOP2 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The CUNY HPCC has installed GenomePop2 (/share/apps/genomepop) on ANDY. GenomePop2 is a serial code that reads all of its input parameters from a file in the user's working directory called 'GP2Input.txt'. How to set up such a file is explained in the How-To section at the GenomePop2 web-site here [1]. The following SLURM batch script runs the third example given in the How-To which defines different SNPs ancestral alleles in different populations.

NOTE: This program has also been installed and can be found at '/share/apps/genomepop/1.0.6/bin/genomepop1'

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GENPOP2_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin GENPOP2 Serial Run ..."
echo ""
/share/apps/genomepop/default/bin/genomepop2
echo ""
echo ">>>> End   GENPOP2 Serial Run ..."

This script can be dropped in to a file (say genomepop2.job) and started with the command:

qsub genomepop2.job

This test case should take less than a minute to run and will produce SLURM output and error files beginning with the job name 'GENPOP2_serial'. Details on the meaning of the SLURM script are covered above in the SLURM section. The most important lines are the '#SBATCH --nodes=1:ntasks=1'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 1,920 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run the job will be printed in the SLURM output file by the 'hostname' command.

While it is not visible in this SLURM script, your customized 'GP2Input.txt' file MUST be present in the working directory for the job. When the job completes, GenomePop2 will have created a subdirectory called 'GP2_Results' with the results files in it. One could easily adapt this script to run GenomePop version 1.

Application Reference Guides

GPAW (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Complete GPAW documentation can be found at https://wiki.fysik.dtu.dk/gpaw/documentation/manual.html

GPAW is currently available on Penzias HPC system.

Two examples of running GPAW computation on Penzias are provided below.

1. Single-core job.

-- Copy single-core example to your current directory with

cp /share/apps/gpaw/default/test/gpaw_serial_example.py ./

-- Prepare the job script:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name gpaw_ser
#SBATCH --nodes=
#SBATCH --ntasks

echo "Starting..."
cd $SLURM_SUBMIT_DIR
python gpaw_serial_example.py >  out.log
echo "Done..."

-- Load the gpaw module

module load gpaw

-- Submit the job.


2. Parallel (MPI multithreaded) job

-- Copy parallel example to your current directory with

cp /share/apps/gpaw/default/test/gpaw_parallel_example.py ./

-- Prepare the job script:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name gpaw_par
#SBATCH --nodes=
#SBATCH --ntasks

echo "Starting..."
cd $SBATCH_SUBMIT_DIR
python gpaw_parallel_example.py >  out.log
echo "Done..."

-- Load the gpaw module (unless already loaded)

module load gpaw

-- Submit the job.

Application Reference Guides

IMA2 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

IMa2 is a serial program that is currently installed on ANDY at the CUNY HPCC. It requires an input file and potentially several additional data files to run. Here we provide a script that will run the test input program supplied by the authors, 'ima2_testinput.u'. Completing this run may also require the prior file ('ima2_priorfile_4pops.txt') and the nested models file ('ima2_all_nested_models_2_pops.txt'). All these files can be copied out of the IMa2 installation examples directory, as follows:

cp /share/apps/ima2/default/examples/ima2_testinput.u .

A working SLURM batch script that will complete an IMa2 run is presented here:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name IMa2_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin IMa2 Serial Run ..."
echo ""
/share/apps/ima2/default/bin/IMa2 -i ima2_testinput.u -o ima2_testoutput.out -q2 -m1 -t3 -b10000 -l100
echo ""
echo ">>>> End   IMa2 Serial Run ..."

This script can be dropped into a file (say 'ima2_serial.job), and run with:

qsub ima2_serial.job

It should take less than a few minutes to run and will produce SLURM output and error files beginning with the job name 'IMA2_serial'. It also produces IMa2's own output files. Details on the meaning for the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=1920'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 1,920 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Please take note of the IMa2 options used here. Details on each can be found in the IMa2 manual referenced above.

Application Reference Guides

LSDYNA (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Both 32-bit and 64-bit executables in both serial and parallel versions are provided. The MPI parallel versions use OpenMPI as their MPI parallel library, the HPC Center's default version of MPI. The serial executable can also be run in OpenMP (not to be confused with OpenMPI) node- local SMP-parallel mode. The names of the executable files in the '/share/apps/lsdyna/default/bin' directory are:

ls-dyna_32.exe  ls-dyna_64.exe  ls-dyna-mpp32.exe  ls-dyna_mpp64.exe

Those with the string 'mpp' in the name are the MPI distributed parallel versions of the code. The integer (32 or 64) designates the precision of the build. In the examples below, depending on the type of script being submitted (serial or parallel, 32- or 64-bit), a different executable will be chosen. The scaling properties of LS-DYNA in parallel mode are limited, and users should not carelessly submit parallel jobs requesting large numbers of cores without understanding how their job will scale. A large 128 core job that runs only 5% faster than a 64 core job is a waste of resources. Please examine the scaling properties of your particular job before scaling up.

As is the case with most long running applications run at the CUNY HPCC, whether parallel or serial, LS-DYNA jobs are run using a SLURM batch job submission script. Here we provide some example scripts for both serial and parallel execution.


Note that before using this script you will need to setup the environment for LS-DYNA. On Andy "modules" is used to manage environments. Setting up LS-DYNA is done with

module load ls-dyna

First an example serial execution script (called say 'airbag.job') run at 64-bits using the LS-DYNA 'airbag' example ('airbag.deplo.k') from the examples directory above as the input.

#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job-name ls-dyna_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin LS-DYNA Serial Run ..."
ls-dyna_64.exe i=airbag.deploy.k memory=2000m
echo ">>>> End   LS-DYNA Serial Run ..."

Details on the SLURM options at the head of the this script file are discussion below, but in summary '-q production_qdr' selects the routing queue into which the job will be placed, '-N ls-dyna_serial' sets this job's name, 'nodes=1 ntasks=1 mem=2880' nodes-requests 1 SLURM resource chunk that includes 1 cpu and 2880 MBytes of memory, allows SLURM to put the resources needed for the job any where on the ANDY system.

The LS-DYNA command line sets the input file to be used and the amount of in-core memory that is available to the job. Note that this executable does NOT include the string 'mpp' which means that it is not the MPI executable. Users can copy the 'airbag.deploy.k' file from the examples directory and cut-and-paste this script to run this job. It takes a relatively sort time to run. The SLURM command for submitting the job would be:

qsub airbag.job

Here is a SLURM script that runs a 16 processor (core) MPI job. This script is set to run the TopCrunch '3cars' benchmark which is relatively long-running using MPI on 16 processors. There are a few important differences in this script.

#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job name ls-dyna_mpi
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin LS-DYNA MPI Parallel Run ..."
mpirun -np 16 ls-dyna_mpp64.exe i=3cars_shell2_150ms.k ntasks=16 memory=2000m
echo ">>>> End   LS-DYNA MPI Parallel Run ..."

Focusing on the difference in this script relative to the serial SLURM script above. First, the '-l select' line requests not 1 SLURM resource chunk, but 16 each with 1 cpu (core) and 2880 MBytes of memory. This provides the necessary resources to run our 16 processor MPI-parallel job. Next, the LS-DYNA command line is different. The LS-DYNA MPI-parallel executable is used (ls-dyna_mpp64.exe), and it is run with the help of the OpenMPI job submission command 'mpirun' which sets the number of processors and the location of those processors on the system. The actually LS-DYNA key words also add the string 'ncpu=16' to instruct LS-DYNA that this is to be a parallel run.

Running in parallel on 16 cores in 64-bit mode on ANDY, the '3cars' case takes about 9181 seconds of elapsed time to complete. If the user would like to run this job, they can grab the input files out of the directory '/share/apps/lsdyna/default/examples/3cars' on ANDY and use the above script.

Application Reference Guides

MATHEMATICA (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Modes of Operation in Mathematica

Mathematica can be run locally on an office workstation, directly on a server or cluster from its head node, or across the network between an office-local client and a remote server (a cluster for instance). It can be run serially or in parallel; its licenses can be provided locally or via a network-resident license server; and it can be run in command-line or GUI mode. The details of installing and running Mathematica on a local office workstation are left to the user. Those modes of operation important to the use of CUNY HPCC resources are discussed here.

Selecting Between GUI and Command-Line Mode

The use of command-line mode or GUI mode is determined by the Mathematica command selected. To use the Mathematica GUI, enter the following command to the user prompt:

$mathematica

To use Mathematica Command Line Interface (CLI), enter:

$math

More details on these and other Mathematica commands is available through man command as in:

$man mathematica
$man math
$man mcc

The lines above provide documentation on the GUI, CLI, and Mathematica C-compiler, respectively.

Using Mathematica on KARLE

Karle is a standalone, four socket, 4 x 6 = 24 core head-like node and is highly capable system. Karle's 24 Intel E740-based cores run at 2.4 GHz. Karle has a total of 96 Gbytes of memory or 4 Gbytes per core. Users can run GUI applications on Karle following this approach or they can prefer CLI. Selecting Between GUI and Command-Line Mode is described here.

Serial Job Exmaple

If mathematica was started in interactive mode using GUI/CLI users can enter mathematica commands as they would normally do:

$ module load mathematica
$ math
Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= Print["Hello World!"]
Hello World!

In[2]:= Table[Random[],{i,1,10}]

Out[2]= {0.22979, 0.168789, 0.257107, 0.724029, 0.466558, 0.588178, 0.186516, 
 
>    0.957024, 0.950642, 0.938009}

In[3] = Exit[]
$

Alternatively one may put these commands into a text file:

$ cat test.nb
Print["Hello World!"]
Table[Random[],{i,1,10}]
In[3] = Exit[]

$

and run it using:

math < test.nb

the following output will be received:

Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= Hello World!

In[2]:= 
Out[2]= {0.67778, 0.737257, 0.862751, 0.623122, 0.253662, 0.541513, 0.776872, 
 
>    0.424682, 0.934039, 0.190007}

In[3]:= 

Parallel Job Example

To run parallel computations in Mathematica on Karle first start required amount kernels (CUNY HPCC license allows up to 16 kernels) and then run actual computation. Consider the following example:

$ cat parallel.nb 

LaunchKernels[8]

With[{base = 10^1000, r = 10^10}, WaitAll[Table[ParallelSubmit[
     While[! PrimeQ[p = RandomInteger[{base, base + r}]], Null]; 
     p], {$KernelCount}]] - base]
$
$
$ math < parallel.nb 
Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= 
In[1]:= 
Out[1]= {KernelObject[1, local], KernelObject[2, local], 
 
>    KernelObject[3, local], KernelObject[4, local], KernelObject[5, local], 
 
>    KernelObject[6, local], KernelObject[7, local], KernelObject[8, local]}

In[2]:= 
In[2]:= 
Out[2]= {4474664203, 8096247063, 9746330049, 4733134789, 2879419863, 
 
>    377023287, 7848087693, 8139999951}

In[3]:= 
$

Statement

LaunchKernels[8]

starts 8 local kernels. Rest on the notebook runs parallel evaluation on those 8 kernels.

Submitting Batch Jobs to the CUNY ANDY Cluster

Currently, there is no simple and secure method of submitting Mathematica jobs from a remote (user local or desktop) CUNY installation of Mathematica to ANDY. This is something that is being pursued. In the mean time, both serial and parallel Mathematica jobs can be submitted from ANDY's head node by constructing a standard batch job. To ease the process of debugging such work, we recommend that user's test their Mathematica command sequences locally on smaller, but similar cases before submitting thier work to the cluster. The standard batch submission process is simple to set up and imposes no burden on ANDY's head node.

Serial Batch Jobs Run with 'qsub' Using a Mathematica Command (Text) File

In the following example, a batch job is created around a locally pre-tested Mathematica command sequence that is then submitted to ANDY batch queueing system using the qsub command. The simple Mathematica command sequence shown here computes a matrix of integrals and prints out every element of that matrix. Any valid sequence of Mathematica commands provided in a note book file, whether tested on an office Mathematica installation or on the cluster head node itself, could be used in this example.

When working remotely from an office or a classroom, a user would validate their command sequence on their local workstation (via a smaller local test run), modify it incrementally to make use of the additional resources available on ANDY, and then copy, paste, and save the Mathematica command sequence in a notebook file (file.nb) on ANDY. This last step would be done through a text editor like 'vi' or 'emacs' from a cluster terminal window. From a Windows desktop, the free, secure Windows-to-Linux terminal emulation package, PuTTY could be used. From a Linux desktop, connecting with secure shell 'ssh' would be the right approach.

Below, a note book file called "test_run.nb" does a serial (single worker-kernel) integral calculation (that might have been tested on the user's office Mathematica installation) has been saved on ANDY from a 'vi' session. Its contents are listed here:

$
$ cat test_run.nb

Print ["Beginning Integral Calculations"]; p=5;
Timing[matr = Table[Integrate[x^(j+i),{x,0,1}], {i,1,p-1}, {j,1,p-1}]//N];
For[i=1, i<p, i++, For[j=1, j<p, j++, Print[matr[[i]][[j]]]]];
Print ["Finished!"];
Quit[];

$

As a serial Mathematica job, this job executes on just one core of just one of ANDY's compute nodes. The simple batch script offered to 'qsub' to run this job (we will call it serial_run.math here) is listed below. This script is written in the SLURM Pro form, which became the workload manager on ANDY on 11-18-09. For details on SLURM Pro see the section on using the SLURM Pro workload manager elsewhere in the CUNY HPCC Wiki.

$
$cat serial_run.math

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name mmat8_serial1 
#SBATCH --nodes=1
#SBATCH --ntasks=1

cd $SLURM_SUBMIT_DIR

math -run <test_run.nb > output

$

This script runs on a single processor (core) within a single ANDY compute node invoking a single Mathematica kernel instance. The '-N mmat8_serial1' option names the job 'mmat8_serial1' The job is directed to ANDY's production routing queue, which reads the script's resource request information, and places it in the appropriate execution queue. The 'nodes=1 ntasks=1 mem=1920' option requests one resource 'chunk' composed of 1 processor (core) and 1920 Mbytes of memory. The option instructs SLURM Pro to place the job where it wishes, which will be on the compute node with the lowest load average. The '-V' option ensures that the current local Unix environment is pushed out to the compute node that runs the job. Because this is a batch script with no connection to the terminal, the CLI version of the Mathematica command, 'math', is used.

Save this script in a file for your future use, for example in "serial_run.math". With few modifications, it can be used to run most serial Mathematica batch jobs on ANDY.

To run this job script use the command:

 qsub serial_run.math 

Like any other batch jobs submitted using 'qsub', you can check the status of your job by running the command 'qstat' or 'qstat -f JID'. Upon completion, the output generated by the job will be written to the file 'output'.

Here is the output from this sample serial batch job:

Mathematica 8.0 for Linux x86 (64-bit)
Copyright 1988-2011 Wolfram Research, Inc.

In[1]:= Beginning Integral Calculations

In[2]:= 
In[3]:= 0.333333
0.25
0.2
0.166667
0.25
0.2
0.166667
0.142857
0.2
0.166667
0.142857
0.125
0.166667
0.142857
0.125
0.111111

In[4]:= Finished!

In[5]:= 

SMP-Parallel Batch Jobs Run with 'qsub' Using a Mathematica Command (Text) File

Mathematica provides some easy-to-use methods to perform parallel computations in so-called SMP regime. This mode of operations allow users to use cores that are available within one compute node. KARLE as a standalone computational node has 24 cores and each of ANDY's nodes has 8 cores. Consider the following mathematica notebook:


$
$ cat test_smp.nb
(* perform some computations in serial mode *)
Timing[Table[{i,Plus @@ (#[[2]] &) /@ FactorInteger[(10^i - 1)/9]}, {i, 60, 70}]]

(* initialize 4 MathKernels*)
Needs["SubKernels`LocalKernels`"]
(* object 'mykernels' contains information about 4 computational instances *)
mykernels = LaunchKernels[LocalMachine[4]];

(* Let every kernel report it's existence *)
ParallelEvaluate[$MachineName, mykernels]

(* Perform the same computation as before but now using ParallelTable using those 4 kernels*)
Timing[ParallelTable[{i,Plus @@ (#[[2]] &) /@ FactorInteger[(10^i - 1)/9]}, {i, 60, 70}]]

Exit[]
$

This job first performs some computations using only one core. After that a stack of 4 computational kernels is created by Mathematica and similar computations are repeated in parallel. SLURM script that sends this job into the queue is:

$
$cat parallel_run.math

#SBATCH --partition production
#SBATCH --job-name mmat_smp 
#SBATCH --nodes=4
#SBATCH --ntasks=1

cd $SLURM_SUBMIT_DIR

math -run <test_smp.nb > output
$

There are two important things to note here: 1) "#SBATCH -l place=pack" -- user must request SLURM to pack allocated resources onto a single physical compute node. 2) "#SBATCH --nodes=4 ntasks=1" -- user requests 4 cores from SLURM (4 'chunks' with ntasks=1 each). This is important because in the mathematica notebook 4 computational kernels were created.

As before, the '-V' option ensures that the environment local to the head node is pushed out to the compute node that runs the job. The CLI version of the Mathematica command, 'math', is used again here.

As any other SLURM job, this smp-parallel Mathematica job is submitted to the SLURM queue using "qsub parallel_run.math" command.

Result of this SMP-parallel batch job will be stored in the file 'output':

Mathematica 8.0 for Linux x86 (64-bit)
Copyright 1988-2011 Wolfram Research, Inc.

In[1]:= 
Out[1]= {8.14851, {{60, 20}, {61, 7}, {62, 5}, {63, 14}, {64, 15}, {65, 7}, 
 
>     {66, 15}, {67, 3}, {68, 10}, {69, 6}, {70, 12}}}

In[2]:= 
In[2]:= 
In[2]:= 
In[2]:= 
In[3]:= 
In[4]:= 
Out[4]= {r1i0n8, r1i0n8, r1i0n8, r1i0n8}

In[5]:= 
In[5]:= 
Out[5]= {0.544033, {{60, 20}, {61, 7}, {62, 5}, {63, 14}, {64, 15}, {65, 7}, 
 
>     {66, 15}, {67, 3}, {68, 10}, {69, 6}, {70, 12}}}

In[6]:= 
In[6]:= 
In[6]:=

It can be seen in the output that computations were first done in serial mode on one core. Line "Out[4]" is the output from "ParallelEvaluate[$MachineName, mykernels]". Obviously all 4 computational kernels evaluated the same $MachineName (as they were started on the same host). "Out[5]" is original computation performed in parallel on 4 MathKernels.


Submitting Batch Jobs from Remote Locations to Clusters

A method for doing this is being developed and tested.

For more information on Mathematica:

  • Online documentation is available through the Help menu within the Mathematica notebook front end.
  • The Mathematica Book, 5th Edition (Wolfram Media, Inc., 2003) by Stephen Wolfram.
  • The Mathematica Book is available online.
  • Additional Mathematica documentation is available online.
  • Information on the Parallel Computing Toolkit is available online.
  • Getting Started with Mathematica (Wolfram Research, Inc., 2004).
  • The Wolfram web site http://www.wolfram.com
Application Reference Guides

MRBAYES (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

MrBayes is installed on ANDY and PENZIAS (GPU enabled version). In order to set-up the environment required to run MrBayes corresponding module needs to be loaded first. This is done with

module load mrbayes

Running MrBayes is a two-step process that first requires the creation of the NEXUS-formatted MrBayes input file and then the SLURM Pro script to run it. MrBayes can be run in serial, MPI-parallel, or GPU-accelerated mode (on PENZIAS only).

Here is NEXUS input file (primates.nex) which includes both a DATA block and a MRBAYES block. The MRBAYES block simply contains the MrBayes runtime commands terminated with a semi-colon. The example below shows 12 mitochondrial DNA sequences of primates and yields at least 1,000 samples from the posterior probability distribution. If you need more detail on generating the NEXUS file or on MrBayes in general, please check the MrBayes Wiki here [1] and the online manual here on-line manual.

#NEXUS

begin data;
dimensions ntax=12 nchar=898;
format datatype=dna interleave=no gap=-;
matrix
Tarsius_syrichta	AAGTTTCATTGGAGCCACCACTCTTATAATTGCCCATGGCCTCACCTCCTCCCTATTATTTTGCCTAGCAAATACAAACTACGAACGAGTCCACAGTCGAACAATAGCACTAGCCCGTGGCCTTCAAACCCTATTACCTCTTGCAGCAACATGATGACTCCTCGCCAGCTTAACCAACCTGGCCCTTCCCCCAACAATTAATTTAATCGGTGAACTGTCCGTAATAATAGCAGCATTTTCATGGTCACACCTAACTATTATCTTAGTAGGCCTTAACACCCTTATCACCGCCCTATATTCCCTATATATACTAATCATAACTCAACGAGGAAAATACACATATCATATCAACAATATCATGCCCCCTTTCACCCGAGAAAATACATTAATAATCATACACCTATTTCCCTTAATCCTACTATCTACCAACCCCAAAGTAATTATAGGAACCATGTACTGTAAATATAGTTTAAACAAAACATTAGATTGTGAGTCTAATAATAGAAGCCCAAAGATTTCTTATTTACCAAGAAAGTA-TGCAAGAACTGCTAACTCATGCCTCCATATATAACAATGTGGCTTTCTT-ACTTTTAAAGGATAGAAGTAATCCATCGGTCTTAGGAACCGAAAA-ATTGGTGCAACTCCAAATAAAAGTAATAAATTTATTTTCATCCTCCATTTTACTATCACTTACACTCTTAATTACCCCATTTATTATTACAACAACTAAAAAATATGAAACACATGCATACCCTTACTACGTAAAAAACTCTATCGCCTGCGCATTTATAACAAGCCTAGTCCCAATGCTCATATTTCTATACACAAATCAAGAAATAATCATTTCCAACTGACATTGAATAACGATTCATACTATCAAATTATGCCTAAGCTT
Lemur_catta		AAGCTTCATAGGAGCAACCATTCTAATAATCGCACATGGCCTTACATCATCCATATTATTCTGTCTAGCCAACTCTAACTACGAACGAATCCATAGCCGTACAATACTACTAGCACGAGGGATCCAAACCATTCTCCCTCTTATAGCCACCTGATGACTACTCGCCAGCCTAACTAACCTAGCCCTACCCACCTCTATCAATTTAATTGGCGAACTATTCGTCACTATAGCATCCTTCTCATGATCAAACATTACAATTATCTTAATAGGCTTAAATATGCTCATCACCGCTCTCTATTCCCTCTATATATTAACTACTACACAACGAGGAAAACTCACATATCATTCGCACAACCTAAACCCATCCTTTACACGAGAAAACACCCTTATATCCATACACATACTCCCCCTTCTCCTATTTACCTTAAACCCCAAAATTATTCTAGGACCCACGTACTGTAAATATAGTTTAAA-AAAACACTAGATTGTGAATCCAGAAATAGAAGCTCAAAC-CTTCTTATTTACCGAGAAAGTAATGTATGAACTGCTAACTCTGCACTCCGTATATAAAAATACGGCTATCTCAACTTTTAAAGGATAGAAGTAATCCATTGGCCTTAGGAGCCAAAAA-ATTGGTGCAACTCCAAATAAAAGTAATAAATCTATTATCCTCTTTCACCCTTGTCACACTGATTATCCTAACTTTACCTATCATTATAAACGTTACAAACATATACAAAAACTACCCCTATGCACCATACGTAAAATCTTCTATTGCATGTGCCTTCATCACTAGCCTCATCCCAACTATATTATTTATCTCCTCAGGACAAGAAACAATCATTTCCAACTGACATTGAATAACAATCCAAACCCTAAAACTATCTATTAGCTT
Homo_sapiens		AAGCTTCACCGGCGCAGTCATTCTCATAATCGCCCACGGGCTTACATCCTCATTACTATTCTGCCTAGCAAACTCAAACTACGAACGCACTCACAGTCGCATCATAATCCTCTCTCAAGGACTTCAAACTCTACTCCCACTAATAGCTTTTTGATGACTTCTAGCAAGCCTCGCTAACCTCGCCTTACCCCCCACTATTAACCTACTGGGAGAACTCTCTGTGCTAGTAACCACGTTCTCCTGATCAAATATCACTCTCCTACTTACAGGACTCAACATACTAGTCACAGCCCTATACTCCCTCTACATATTTACCACAACACAATGGGGCTCACTCACCCACCACATTAACAACATAAAACCCTCATTCACACGAGAAAACACCCTCATGTTCATACACCTATCCCCCATTCTCCTCCTATCCCTCAACCCCGACATCATTACCGGGTTTTCCTCTTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGACAACAGAGGCTTA-CGACCCCTTATTTACCGAGAAAGCT-CACAAGAACTGCTAACTCATGCCCCCATGTCTAACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGCCCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACCATGCACACTACTATAACCACCCTAACCCTGACTTCCCTAATTCCCCCCATCCTTACCACCCTCGTTAACCCTAACAAAAAAAACTCATACCCCCATTATGTAAAATCCATTGTCGCATCCACCTTTATTATCAGTCTCTTCCCCACAACAATATTCATGTGCCTAGACCAAGAAGTTATTATCTCGAACTGACACTGAGCCACAACCCAAACAACCCAGCTCTCCCTAAGCTT
Pan	  		AAGCTTCACCGGCGCAATTATCCTCATAATCGCCCACGGACTTACATCCTCATTATTATTCTGCCTAGCAAACTCAAATTATGAACGCACCCACAGTCGCATCATAATTCTCTCCCAAGGACTTCAAACTCTACTCCCACTAATAGCCTTTTGATGACTCCTAGCAAGCCTCGCTAACCTCGCCCTACCCCCTACCATTAATCTCCTAGGGGAACTCTCCGTGCTAGTAACCTCATTCTCCTGATCAAATACCACTCTCCTACTCACAGGATTCAACATACTAATCACAGCCCTGTACTCCCTCTACATGTTTACCACAACACAATGAGGCTCACTCACCCACCACATTAATAACATAAAGCCCTCATTCACACGAGAAAATACTCTCATATTTTTACACCTATCCCCCATCCTCCTTCTATCCCTCAATCCTGATATCATCACTGGATTCACCTCCTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGACAACAGAGGCTCA-CGACCCCTTATTTACCGAGAAAGCT-TATAAGAACTGCTAATTCATATCCCCATGCCTGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCCATCCGTTGGTCTTAGGCCCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACCATGTATACTACCATAACCACCTTAACCCTAACTCCCTTAATTCTCCCCATCCTCACCACCCTCATTAACCCTAACAAAAAAAACTCATATCCCCATTATGTGAAATCCATTATCGCGTCCACCTTTATCATTAGCCTTTTCCCCACAACAATATTCATATGCCTAGACCAAGAAGCTATTATCTCAAACTGGCACTGAGCAACAACCCAAACAACCCAGCTCTCCCTAAGCTT
Gorilla   		AAGCTTCACCGGCGCAGTTGTTCTTATAATTGCCCACGGACTTACATCATCATTATTATTCTGCCTAGCAAACTCAAACTACGAACGAACCCACAGCCGCATCATAATTCTCTCTCAAGGACTCCAAACCCTACTCCCACTAATAGCCCTTTGATGACTTCTGGCAAGCCTCGCCAACCTCGCCTTACCCCCCACCATTAACCTACTAGGAGAGCTCTCCGTACTAGTAACCACATTCTCCTGATCAAACACCACCCTTTTACTTACAGGATCTAACATACTAATTACAGCCCTGTACTCCCTTTATATATTTACCACAACACAATGAGGCCCACTCACACACCACATCACCAACATAAAACCCTCATTTACACGAGAAAACATCCTCATATTCATGCACCTATCCCCCATCCTCCTCCTATCCCTCAACCCCGATATTATCACCGGGTTCACCTCCTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGATAACAGAGGCTCA-CAACCCCTTATTTACCGAGAAAGCT-CGTAAGAGCTGCTAACTCATACCCCCGTGCTTGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGACCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACTATGTACGCTACCATAACCACCTTAGCCCTAACTTCCTTAATTCCCCCTATCCTTACCACCTTCATCAATCCTAACAAAAAAAGCTCATACCCCCATTACGTAAAATCTATCGTCGCATCCACCTTTATCATCAGCCTCTTCCCCACAACAATATTTCTATGCCTAGACCAAGAAGCTATTATCTCAAGCTGACACTGAGCAACAACCCAAACAATTCAACTCTCCCTAAGCTT
Pongo     		AAGCTTCACCGGCGCAACCACCCTCATGATTGCCCATGGACTCACATCCTCCCTACTGTTCTGCCTAGCAAACTCAAACTACGAACGAACCCACAGCCGCATCATAATCCTCTCTCAAGGCCTTCAAACTCTACTCCCCCTAATAGCCCTCTGATGACTTCTAGCAAGCCTCACTAACCTTGCCCTACCACCCACCATCAACCTTCTAGGAGAACTCTCCGTACTAATAGCCATATTCTCTTGATCTAACATCACCATCCTACTAACAGGACTCAACATACTAATCACAACCCTATACTCTCTCTATATATTCACCACAACACAACGAGGTACACCCACACACCACATCAACAACATAAAACCTTCTTTCACACGCGAAAATACCCTCATGCTCATACACCTATCCCCCATCCTCCTCTTATCCCTCAACCCCAGCATCATCGCTGGGTTCGCCTACTGTAAATATAGTTTAACCAAAACATTAGATTGTGAATCTAATAATAGGGCCCCA-CAACCCCTTATTTACCGAGAAAGCT-CACAAGAACTGCTAACTCTCACT-CCATGTGTGACAACATGGCTTTCTCAGCTTTTAAAGGATAACAGCTATCCCTTGGTCTTAGGATCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAACAGCCATGTTTACCACCATAACTGCCCTCACCTTAACTTCCCTAATCCCCCCCATTACCGCTACCCTCATTAACCCCAACAAAAAAAACCCATACCCCCACTATGTAAAAACGGCCATCGCATCCGCCTTTACTATCAGCCTTATCCCAACAACAATATTTATCTGCCTAGGACAAGAAACCATCGTCACAAACTGATGCTGAACAACCACCCAGACACTACAACTCTCACTAAGCTT
Hylobates 		AAGCTTTACAGGTGCAACCGTCCTCATAATCGCCCACGGACTAACCTCTTCCCTGCTATTCTGCCTTGCAAACTCAAACTACGAACGAACTCACAGCCGCATCATAATCCTATCTCGAGGGCTCCAAGCCTTACTCCCACTGATAGCCTTCTGATGACTCGCAGCAAGCCTCGCTAACCTCGCCCTACCCCCCACTATTAACCTCCTAGGTGAACTCTTCGTACTAATGGCCTCCTTCTCCTGGGCAAACACTACTATTACACTCACCGGGCTCAACGTACTAATCACGGCCCTATACTCCCTTTACATATTTATCATAACACAACGAGGCACACTTACACACCACATTAAAAACATAAAACCCTCACTCACACGAGAAAACATATTAATACTTATGCACCTCTTCCCCCTCCTCCTCCTAACCCTCAACCCTAACATCATTACTGGCTTTACTCCCTGTAAACATAGTTTAATCAAAACATTAGATTGTGAATCTAACAATAGAGGCTCG-AAACCTCTTGCTTACCGAGAAAGCC-CACAAGAACTGCTAACTCACTATCCCATGTATGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGACCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAGCAATGTACACCACCATAGCCATTCTAACGCTAACCTCCCTAATTCCCCCCATTACAGCCACCCTTATTAACCCCAATAAAAAGAACTTATACCCGCACTACGTAAAAATGACCATTGCCTCTACCTTTATAATCAGCCTATTTCCCACAATAATATTCATGTGCACAGACCAAGAAACCATTATTTCAAACTGACACTGAACTGCAACCCAAACGCTAGAACTCTCCCTAAGCTT
Macaca_fuscata		AAGCTTTTCCGGCGCAACCATCCTTATGATCGCTCACGGACTCACCTCTTCCATATATTTCTGCCTAGCCAATTCAAACTATGAACGCACTCACAACCGTACCATACTACTGTCCCGAGGACTTCAAATCCTACTTCCACTAACAGCCTTTTGATGATTAACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATCAATCTACTAGGTGAACTCTTTGTAATCGCAACCTCATTCTCCTGATCCCATATCACCATTATGCTAACAGGACTTAACATATTAATTACGGCCCTCTACTCTCTCCACATATTCACTACAACACAACGAGGAACACTCACACATCACATAATCAACATAAAGCCCCCCTTCACACGAGAAAACACATTAATATTCATACACCTCGCTCCAATTATCCTTCTATCCCTCAACCCCAACATCATCCTGGGGTTTACCTCCTGTAGATATAGTTTAACTAAAACACTAGATTGTGAATCTAACCATAGAGACTCA-CCACCTCTTATTTACCGAGAAAACT-CGCAAGGACTGCTAACCCATGTACCCGTACCTAAAATTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAACATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCCATCATTATAACAACCCTTATCTCCCTAACTCTCCCAATTTTTGCCACCCTCATCAACCCTTACAAAAAACGTCCATACCCAGATTACGTAAAAACAACCGTAATATATGCTTTCATCATCAGCCTCCCCTCAACAACTTTATTCATCTTCTCAAACCAAGAAACAACCATTTGGAGCTGACATTGAATAATGACCCAAACACTAGACCTAACGCTAAGCTT
M_mulatta		AAGCTTTTCTGGCGCAACCATCCTCATGATTGCTCACGGACTCACCTCTTCCATATATTTCTGCCTAGCCAATTCAAACTATGAACGCACTCACAACCGTACCATACTACTGTCCCGGGGACTTCAAATCCTACTTCCACTAACAGCTTTCTGATGATTAACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATCAACCTACTAGGTGAACTCTTTGTAATCGCGACCTCATTCTCCTGGTCCCATATCACCATTATATTAACAGGATTTAACATACTAATTACGGCCCTCTACTCCCTCCACATATTCACCACAACACAACGAGGAGCACTCACACATCACATAATCAACATAAAACCCCCCTTCACACGAGAAAACATATTAATATTCATACACCTCGCTCCAATCATCCTCCTATCTCTCAACCCCAACATCATCCTGGGGTTTACTTCCTGTAGATATAGTTTAACTAAAACATTAGATTGTGAATCTAACCATAGAGACTTA-CCACCTCTTATTTACCGAGAAAACT-CGCGAGGACTGCTAACCCATGTATCCGTACCTAAAATTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAATATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCTATCATAATAACAACCCTTATCTCCCTAACTCTCCCAATTTTTGCCACCCTCATCAACCCTTACAAAAAACGTCCATACCCAGATTACGTAAAAACAACCGTAATATATGCTTTCATCATCAGCCTCCCCTCAACAACTTTATTCATCTTCTCAAACCAAGAAACAACCATTTGAAGCTGACATTGAATAATAACCCAAACACTAGACCTAACACTAAGCTT
M_fascicularis		AAGCTTCTCCGGCGCAACCACCCTTATAATCGCCCACGGGCTCACCTCTTCCATGTATTTCTGCTTGGCCAATTCAAACTATGAGCGCACTCATAACCGTACCATACTACTATCCCGAGGACTTCAAATTCTACTTCCATTGACAGCCTTCTGATGACTCACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATTAATCTACTAGGCGAACTCTTTGTAATCACAACTTCATTTTCCTGATCCCATATCACCATTGTGTTAACGGGCCTTAATATACTAATCACAGCCCTCTACTCTCTCCACATGTTCATTACAGTACAACGAGGAACACTCACACACCACATAATCAATATAAAACCCCCCTTCACACGAGAAAACATATTAATATTCATACACCTCGCTCCAATTATCCTTCTATCTCTCAACCCCAACATCATCCTGGGGTTTACCTCCTGTAAATATAGTTTAACTAAAACATTAGATTGTGAATCTAACTATAGAGGCCTA-CCACTTCTTATTTACCGAGAAAACT-CGCAAGGACTGCTAATCCATGCCTCCGTACTTAAAACTACGGTTTCCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAACATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCCATCATAATAACAACCCTCATCTCCCTGACCCTTCCAATTTTTGCCACCCTCACCAACCCCTATAAAAAACGTTCATACCCAGACTACGTAAAAACAACCGTAATATATGCTTTTATTACCAGTCTCCCCTCAACAACCCTATTCATCCTCTCAAACCAAGAAACAACCATTTGGAGTTGACATTGAATAACAACCCAAACATTAGACCTAACACTAAGCTT
M_sylvanus		AAGCTTCTCCGGTGCAACTATCCTTATAGTTGCCCATGGACTCACCTCTTCCATATACTTCTGCTTGGCCAACTCAAACTACGAACGCACCCACAGCCGCATCATACTACTATCCCGAGGACTCCAAATCCTACTCCCACTAACAGCCTTCTGATGATTCACAGCAAGCCTTACTAATCTTGCTCTACCCTCCACTATTAATCTACTGGGCGAACTCTTCGTAATCGCAACCTCATTTTCCTGATCCCACATCACCATCATACTAACAGGACTGAACATACTAATTACAGCCCTCTACTCTCTTCACATATTCACCACAACACAACGAGGAGCGCTCACACACCACATAATTAACATAAAACCACCTTTCACACGAGAAAACATATTAATACTCATACACCTCGCTCCAATTATTCTTCTATCTCTTAACCCCAACATCATTCTAGGATTTACTTCCTGTAAATATAGTTTAATTAAAACATTAGACTGTGAATCTAACTATAGAAGCTTA-CCACTTCTTATTTACCGAGAAAACT-TGCAAGGACCGCTAATCCACACCTCCGTACTTAAAACTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGCCTTAGGAGTCAAAAATATTGGTGCAACTCCAAATAAAAGTAATAATCATGTATACCCCCATCATAATAACAACTCTCATCTCCCTAACTCTTCCAATTTTCGCTACCCTTATCAACCCCAACAAAAAACACCTATATCCAAACTACGTAAAAACAGCCGTAATATATGCTTTCATTACCAGCCTCTCTTCAACAACTTTATATATATTCTTAAACCAAGAAACAATCATCTGAAGCTGGCACTGAATAATAACCCAAACACTAAGCCTAACATTAAGCTT
Saimiri_sciureus	AAGCTTCACCGGCGCAATGATCCTAATAATCGCTCACGGGTTTACTTCGTCTATGCTATTCTGCCTAGCAAACTCAAATTACGAACGAATTCACAGCCGAACAATAACATTTACTCGAGGGCTCCAAACACTATTCCCGCTTATAGGCCTCTGATGACTCCTAGCAAATCTCGCTAACCTCGCCCTACCCACAGCTATTAATCTAGTAGGAGAATTACTCACAATCGTATCTTCCTTCTCTTGATCCAACTTTACTATTATATTCACAGGACTTAATATACTAATTACAGCACTCTACTCACTTCATATGTATGCCTCTACACAGCGAGGTCCACTTACATACAGCACCAGCAATATAAAACCAATATTTACACGAGAAAATACGCTAATATTTATACATATAACACCAATCCTCCTCCTTACCTTGAGCCCCAAGGTAATTATAGGACCCTCACCTTGTAATTATAGTTTAGCTAAAACATTAGATTGTGAATCTAATAATAGAAGAATA-TAACTTCTTAATTACCGAGAAAGTG-CGCAAGAACTGCTAATTCATGCTCCCAAGACTAACAACTTGGCTTCCTCAACTTTTAAAGGATAGTAGTTATCCATTGGTCTTAGGAGCCAAAAACATTGGTGCAACTCCAAATAAAAGTAATA---ATACACTTCTCCATCACTCTAATAACACTAATTAGCCTACTAGCGCCAATCCTAGCTACCCTCATTAACCCTAACAAAAGCACACTATACCCGTACTACGTAAAACTAGCCATCATCTACGCCCTCATTACCAGTACCTTATCTATAATATTCTTTATCCTTACAGGCCAAGAATCAATAATTTCAAACTGACACTGAATAACTATCCAAACCATCAAACTATCCCTAAGCTT
;
end;

begin mrbayes; 
    set autoclose=yes nowarn=yes; 
    lset nst=6 rates=gamma; 
    mcmc nruns=1 ngen=10000 samplefreq=10; 
end;

A SLURM Pro batch script must be created to run your job. The first script below shows a MPI parallel run of the above '.nex' input file. This script selects 4 processors (cores) and allows SLURM to put them on any compute node. Note, that when running any parallel program one must be cognizant of the scaling properties of its parallel algorithm; in other words, how much does a given job's running time drop as one doubles the number of processors used. All parallel programs arrive at point of diminishing returns that depend on the algorithm, size of the problem being solved, and the performance features of the system that it is being run on. We might have chosen to run this job on 8, 16, or 32 processors (cores), but would only do so if the improvement in performance scales. Improvements of less than 25% after a doubling are an indication of a reasonable maximum number of processors under those particular set of circumstances

Here is the 4 processor MPI parallel SLURM batch script:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name MRBAYES_mpi
#SBATCH --nodes=4
#SBATCH --ntasks=1
#SBATCH --mem=1920

# Find out name of master execution host (compute node)
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin MRBAYES MPI Run ..."
echo ""
mpirun -np 4 /share/apps/mrbayes/default/bin/mb ./primates.nex > primates.out 2>&1
echo ""
echo ">>>> End   MRBAYES MPI Run ..."

This script can be dropped into a file (say 'mrbayes_mpi.job) on ANDY and run with:

qsub mrbayes_mpi.job

This test case should take no more than a couple of minutes to run and will produce SLURM output and error files beginning with the job name 'MRBAYES_mpi'. Other MrBayes specific outputs will also be produced. Details on the meaning of the SLURM script are covered above in this Wiki's SLURM section. The most important lines are '#SBATCH --nodes=4 ntasks=1 mem=1920'. The first instructs SLURM to select 4 resource 'chunks' each with 1 processor (core) and 1,920 MBs of memory in it for the job (on ANDY as much as 2,880 MBs might have been selected, on PENZIAS this number is 3860mb). The second line instructs SLURM to place this job wherever the least used resources are found (i.e. freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command. As this is a parallel job, other compute nodes may also be called into service to complete this job.

The CUNY HPCC also provides a serial version of MrBayes. A SLURM batch script for running the serial version is easy to prepare from the above by making a few changes. Here is a listing of the differences between the above MPI script and the serial script:

3,4c3,4
< #SBATCH --job-name MRBAYES_mpi
< #SBATCH --nodes=4
  #SBATCH --ntasks=1
  #SBATCH --mem=2880
---
> #SBATCH --job-name MRBAYES_serial
> #SBATCH --nodes=1
  #SBATCH --ntasks=1
16c16
< echo ">>>> Begin MRBAYES MPI Run ..."
---
> echo ">>>> Begin MRBAYES Serial Run ..."
18c18
< mpirun -np 4 /share/apps/mrbayes/default/bin/mb ./primates.nex
---
> /share/apps/mrbayes/default/bin/mb-serial ./primates.nex
20c20
< echo ">>>> End   MRBAYES MPI Run ..."
---
> echo ">>>> End   MRBAYES Serial Run ..."

Finally, it is possible to run MrBayes in GPU-accelerated mode on PENZIAS (only). This is an experimental version of the code and users are cautioned to check their results and note their performance to be sure they are getting accurate answers in shorter time periods. Nothing is worse in HPC than going in the wrong direction, more slowly (this principle applies to NYC Taxi rides as well). Here is yet another script that will run the GPU-accelerated version of MrBayes (again, on PENZIAS only).

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name MRBAYES_gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --gres=gpu:1 
#SBATCH --accel=kepler

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the GPU parallel executable to run
echo ">>>> Begin MRBAYES GPU Run ..."
echo ""
/share/apps/mrbayes/default/bin/mb-gpu ./primates.nex
echo ""
echo ">>>> End   MRBAYES GPU Run ..."

There are several differences worth pointing out. First, he resource request line '-l select' request more that just a processor and some memory, but also a GPU (ntasks=1) and a particular flavor of GPU (accel=kepler). Second the the name of the executable, is now 'mb-gpu', which selects the GPU-accelerated version of the code.

Application Reference Guides

NWCHEM (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. On both servers the module for NWChem must be loaded "prior" to run a job with the command:

module load nwchem

The above command will load the "default" version of NWChem.

Performance Considerations

The NWChem is GPU enabled meaning it supports GPU so the package can be used both in CPU or in "hybrid" CPU-GPU mode. ANDY lacks GPU so the CPU only mode is possible there. On PENZIAS however, NWChem can be used on both CPU or CPU-GPU mode. On other hand, because ANDY has slower interconnect is recommend to use 1 core per chunk when run NWChem jobs on ANDY. The interconnect at PENZIAS allows the full utilization of the nodes i.e. the maximum number of cores per chunk is 12. However users must consult the wiki pages http://wiki.csi.cuny.edu/cunyhpc/index.php/Running_jobs for discussion about how to run a job on a cluster. Keeping in mind the differences in interconnect and lack of GPU on ANDY it is strongly recommend that users utilize NWChem on PENZIAS in CPU-GPU mode.

NWChem input files

The ability to run and performance of a run depends very much on a proper settings of start up directives in NWChem input files. For instance one particular directive - memory - allows the user to specify the amount of memory PER PROCESSOR CORE that NWChem can use for the job in. If this directive is omitted in input file, the NWChem will use the default setting which currently is only 400MB. In NWChem there are three distinct regions of memory: stack, heap, and global. On PENZIAS (and on all distributed memory systems) all 3 types of memory compete for the same pool i.e. the memory has total size of stack+heap+global. The default partition is 25% heap, 25% stack, and 50% global, thus 4096mb will be partitioned as 1024 MB for stack, 1024 MB for heap and 2048 MB for global. In the following example first 2 lines are equivalent and they will allocate total available per core memory on PENZIAS node and will use default partitioning. The third line does the same but it will change the partition by allocating 75% of the total memory as a global one.

memory 3686 mb
memory total 3686 mb
memory total 3686 global 2764 mb

NWChem recognizes the following memory units:

real 
double
integer
byte
kb (kilobyte)
mb (megabyte)
mw (megawords - 8 bytes)

For details on the content and structure of each section of the NWChem input deck users should consult the NWChem Users Manual at http://www.emsl.pnl.gov/capabilities/computing/nwchem/docs/usermanual.pdf. A sample NWChem input file which does SCF calculation on water with 6-31g* basis set is shown here:

echo
start water2
title "an example simple water calculation"

# The memory options are system specific see below 

memory total   .... mb global .... mb

geometry units au
 O 0       0              0
 H 0       1.430    -1.107
 H 0     -1.430    -1.107
end

basis
  O library 6-31g*
  H library 6-31g*
end

task scf gradient

If the run has to be done on parallel and on PENZIAS, the standard (and maximum) per-core quantity of memory available on a node along with a portion of it used by NWChem Global Arrays computing model should not exceed 3686mb per core. Thus the memory line for parallel runs on PENZIAS should look like:

memory total 3686 mb global 2764 mb

on ANDY it would be 'memory total 2880 mb global 2160 mb'. Single core runs on PENZIAS require different settings.

Using NWChem in CPU only mode

A SLURM batch submit script to run above example on 16 processors (cores) on PENZIAS. Note that on PENZIAS the main que is called production. In this script the maximal values for memory (total and global) are added to above example automatically. However these values may not be optimal for a particular molecular system, thus users should compare the obtained performance among several memory set ups in order to find the optimal values for a particular molecular system.

 
#!/bin/csh
#SBATCH --partition production
#SBATCH --job-name watertest
#SBATCH --nodes=16
#SBATCH --ntasks=1

echo "This job's process 0 host is: " `hostname`; echo ""

# Must explicitly change to your working directory under SLURM

cd $SLURM_SUBMIT_DIR

# Set up NWCHEM environment, permanent, and scratch directory
# Do not delete/modify the following 4 lines.

setenv NWCHEM_ROOT /share/apps/nwchem/6.5
setenv PERMANENT_DIR $SLURM_SUBMIT_DIR
setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

#Edit following 2 lines to match your input and output file.

set INPUT_FILE="h2o.nw"
set  OUTPUT_FILE="h2o.out"

# Edit following 2 lines in order to adjust the optimal memory for your system
set MEMORY_GLBL = 2764
set MEMORY_TTL = 3686

# Do not edit the following 7 lines
set RUN_FILE = "runner.nw"
cp ${INPUT_FILE} ${RUN_FILE}
setenv SCRATCH_DIR /state/partition1/nw6.3_scr/${MY_SCRDIR}_$$
mkdir -p $SCRATCH_DIR
printf '%s\t%s\n' 'scratch_dir'   $SCRATCH_DIR >> runner.nw
printf '%s\t%s\n' 'permanent_dir' $PERMANENT_DIR >> runner.nw
printf '%s%s%s%s%s%s\n' 'memory   ' 'total   ' $MEMORY_TTL '  global   ' $MEMORY_GLBL '  mb' >> runner.nw

# Starts NWCHEM job. Adjust '''only''' the number of CPU requested. 
# Do not remove/modify $RUN_FILE or $OUTPUT_FILE

mpirun -np 16 nwchem ${RUN_FILE} > ${OUTPUT_FILE}

# Clean up scratch and temporary files. Do  not remove following 2 lines. 

/bin/rm -r $SCRATCH_DIR
/bin/rm -r $RUN_FILE

echo 'Job is done!'

Please consult the sections on the SLURM Pro Batch scheduling system for information on how to modify this sample deck for different processor counts and about the meaning of each of the SLURM script lines.

On PENZIAS in order to utilize all available memory and depend on concrete studied system sometimes is better to use the below SLURM construction.

#SBATCH --nodes=8
#SBATCH --ntasks=2
#SBATCH --mem=3686

In order to run on 128 cores on PENZIAS the line should look like:

#SBATCH --nodes=16
#SBATCH --ntasks=8
#SBATCH --mem=3686

Please do not forget to adjust memory requirements in above SLURM script file according to your particular molecular system requirements. In particular that means to adjust values of MEMORY_TTL and MEMORY_GLBL variables. Remember that performance depends on how memory is allocated as well so try few allocation schemes before pick the best one for your job. For instance for some small molecular systems sometimes it is possible to gain performance by reducing memory and keep job in a single node.

The optimal number of cores also depend on studied molecular system. There is no such thing like "one fits all". Users can find the optimal number of processor cores by starting with some small number i.e. 4 or 8 and double the number of cores for each consecutive run. Repeat the process till no significant improvement in performance is recorded in 2 follow up runs. Further increase of cpu cores should be avoided.

Final Remarks

To get their NWChem jobs to run each user will need to copy or create a symbolic link to a ".nwchemrc" file in their $HOME directory to the site specific "default.nwchemrc" file located in:

/share/apps/nwchem/default/data/

Symbolic link can be created with a command:

ln -s /share/apps/nwchem/default/data/default.nwchemrc $HOME/.nwchemrc

Users may also check the Q/A section of this document for common mistakes and their solution.

Application Reference Guides

PARGAP (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Since knowledge of MPI is not required for use of this software, we now refer to the package as simply ParGAP. For more information visit the author's ParGAP home page at: http://www.ccs.neu.edu/home/gene/pargap.html. The package is installed on penzias cluster. Users must load module pargap.


module load pargap

The example below named parlist.g is a parallelization of a list.


#WARNING:  Read this with Read(), _not_ ParRead()

#Environment: None
#TaskInput:   elt, where elt is an element of argument, list
#TaskOutput:  fnc(elt), where fnc is argument
#Task:        Compute fnc(elt) from elt [ Hence, DoTask = fnc ]
#UpdateEnvironment:  None

ParInstallTOPCGlobalFunction( "MyParList",
function( list, fnc )
  local result, iter;
  result := [];
  iter := Iterator(list);
  MasterSlave( function() if IsDoneIterator(iter) then return NOTASK;
                          else return NextIterator(iter); fi; end,
               fnc,
               function(input,output) result[input] := output;
                                      return NO_ACTION; end,
               Error
             );
  return result;
end );

ParInstallTOPCGlobalFunction( "MyParListWithAglom",
function( list, fnc, aglomCount )
  local result, iter;
  result := [];
  iter := Iterator(list);
  MasterSlave( function() if IsDoneIterator(iter) then return NOTASK;
                          else return NextIterator(iter); fi; end,
               fnc,
               function(input,output)
                 local i;
                 for i in [1..Length(input)] do
                   result[input[i]] := output[i];
                 od;
                 return NO_ACTION;
               end,
               Error,  # Never called, can specify anything
               aglomCount
             );
  return result;
end );

The SLURM script to run this program on penzias is as follows:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name par_list 
#SBATCH --nodes=1
#SBATCH --ntasks=4

cd $SLURM_SUBMIT_DIR

mpirun -np 4  pargap ./parlist.g >> parlist_out

 

This will create a master and 3 slave processes . Further information and detailed manual how to program with parallel GAP can be found in http://www.gap-system.org/Manuals/pkg/pargap/doc/manual.pdf

Application Reference Guides

PHRAP-PHRED (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

PHRAP is a program for shotgun sequence assembly, but it can also be used for small sequence assemblies. Its key features include its use of data quality information, both direct (from phred trace analysis) and indirect (from pairwise read comparisons), to delineate the likely accurate base calls in each read. This helps discriminate repeats. It permits the use of the full reads in assembly, and allows a highly accurate consensus sequence to be generated. A probability of error is computed for each consensus sequence position, which can be used to focus human editing on particular regions. This helps to automate decision-making about where additional data are needed provides users of the final sequence with information about local variations in quality. The PHRAP documentation is available here [1]

PHRED reads DNA sequencer trace data, calls bases, assigns quality values to the bases, and writes the base calls and quality values to output files. Phred can read trace data from chromatogram files in the SCF, ABI, and ESD formats. It automatically determines the file format, and whether the chromatogram file was compressed using gzip, bzip2, or UNIX compress. After calling bases, phred writes the sequences to files in either FASTA format, the format suitable for XBAP, PHD format, or the SCF format. Quality values for the bases are written to FASTA format files or PHD files, which can be used by the phrap sequence assembly program in order to increase the accuracy of the assembled sequence. The PHRED documentation is available here [2]

All the tools referenced above are installed at the CUNY HPCC on both KARLE and ANDY. They may be run directly on KARLE, in either command-line interactive mode, in the background (Unix batch), or within the CONSED GUI framework using the 'phredPhrap' scripting tool. The run times are generally short. On ANDY, they should be run from the within the CUNY HPCC SLURM batch processing frame work if the jobs will take more than a minute or two of wall-clock time. On both KARLE and ANDY.

Below is a sample SLURM batch script for ANDY that reproduces each step the CONSED 'phredPhrap' script completes when it is run on KARLE. This script is meant to give you an idea of how any of these tools can be run in batch mode on ANDY. Not all these steps are always required. SLURM scripts-jobs that run only one or two of the tools present in this example can also be constructed. Details on the command-line options for each tools can be found the the manuals pointed to above.

Prior to running this example, a directory with example starting input data and the environment for each tool must be set up. One can obtain the standard test case from the PHRED installation tree on ANDY as follows:

$mkdir mytest
$
$cd mytest
$
$tar -xvf /share/apps/phred/default/data/STD.tar
$

This will created a collection of directories, some with input files, that will be referenced by the SLURM batch script. These directories are list here:

[richard.walsh@andy standard]$ls -l 
total 28
drwx------ 2 richard.walsh hpcadmin 4096 2012-12-28 17:37 chromat_dir
drwx------ 2 richard.walsh hpcadmin 4096 2012-12-28 17:37 chromats_to_add
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-02 12:56 edit_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 phdball_dir
drwx------ 3 richard.walsh hpcadmin 4096 2013-02-27 12:38 phd_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 sff_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 solexa_dir
[richard.walsh@andy standard]$

Next, the environment for each of the required tools must be loaded using the modules command.

$
$module load phred
$module load phrap
$module load consed
$

Although CONSED is not used directly in this SLURM script, files in its installation tree are referenced and its module must therefore be loaded. With the above steps completed, the following SLURM batch script can be run on ANDY:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name PHRED_PHRAP.job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Echoing the location of the phred_phrap parameter file
echo ""
echo "Using parameter file: $PHRED_PARAMETER_FILE"
echo ""

# Define the location of the consed screen files for cross_match
export SCREEN_PATH=${CONSED_HOME}/lib/screenLibs

# Just point to the serial executable to run
echo ">>>> Begin PHRED-PHRAP Batch Serial Run ..."
echo ""
echo ">>>> Running phred ... "
phred -id chromat_dir -pd phd_dir > phred.out 2>&1
echo "Done ..."
echo ">>>> Running phd2fasta ... "
phd2fasta -id phd_dir -os seqs_fasta -oq seqs_fasta.screen.qual > phd2fasta.out 2>&1
echo "Done ..."
echo ">>>> Running cross_match ... "
cross_match seqs_fasta ${SCREEN_PATH}/vector.seq -minmatch 12 -minscore 20 -screen > cross_match.out 2>&1
echo "Done ..."
echo ">>>> Running phrap ... "
phrap seqs_fasta.screen -new_ace > phrap.out 2>&1
echo "Done ..."
echo ""
echo ">>>> End   PHRED-PHRAP Batch Serial Run ..."

This script should be copied into a file in the same directory that you 'untar-ed' the files in above (here the name is 'mytest'). This would be typically be done in a editor like 'vi' or 'emacs'. Assuming that the name given to this SLURM script file is 'phred_phrap.job', the SLURM job can be submitted with the following command:

qsub phred_phrap.job

This script walks the original sequence found in the 'chromat_dir' through all of the steps that the 'predPhrap' script would complete interactively on KARLE. Notice that four distinct programs are run, each with their own set of options. They produce all the required 'seqs_fasta' files required for viewing in CONSED. Users may wish to run only one of the tools in which case only one execution line for perhaps 'phred' or 'phd2fasta' would be required in the script.

It should take less than minutes to run and will produce SLURM output and error files beginning with the job name 'PHRED_PHRAP' along with a number of tool-specific files output files. The primary application results will be written into the user-specified file at the end of each command line after the greater-than sign. Here, four executables are run and write named 'XXX.out' output files. The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script options are covered above in the SLURM section. The most important lines are the '#SLURMnodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processors (cores) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this chunk on any compute node with the required resources available. All the jobs run with this script are assume by SLURM to be serial jobs.

Application Reference Guides

R (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:

   module load r

Complete R documentation may be found at http://www.r-project.org/

Running R on Karle

The following is the "Hello World" program written in R:

# Hello World example
a <- c("Hello, world!")
print(a)

To run R job on Karle server, save your R script into the file (for example "hello.R") and use the following command to launch it:

R --vanilla --slave < helloworld.R

Note that you need to load R module first (see previous section).

Running R on cluster machines

In order to run R job on any of HPCC's cluster machines (Penzias, Appel or Andy) users should use SLURM manager. Submitting serial R job to the SLURM queue is exactly the same as submitting any other serial job.

More information about our installation can be found here R on Cluster Machines

R packages

In order to install R package start R and run the following command:

install.packages("package.name")

You will be prompted to install package into home directory. Agree and pick a non-https mirror from the list. Then, pick a mirror from new list. After package is installed use it starting with

library(package.name)
Application Reference Guides

NAMD (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY.

In order to use the code please always load the NAMD module first. The following line will load application environment for NAMD on PENZIAS. GPU is not requested in below SLURM script.

module load namd

A batch submit script for NAMD that runs the CPU-only version on ANDY and PENZIAS using 'mpirun' on 16 processors, 4 to a compute node, follows. Please note that on PENZIAS the que is called production.

#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job-name NAMD_MPI
#SBATCH --nodes=4
#SBATCH --ntasks=4
#SBATCH --mpiprocs=4


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to MPI parallel executable to run 

mpirun -np 16 namd2  ./hivrt.conf > hivrt_mpi.out

echo ">>>> End   Non-Threaded NAMD MPI Parall Run ...

In order to use GPU enabled NAMD versions users must use PENZIAS. First load the proper module file:

module load namd/2.10

The similar as above job, but one that uses 4 CPUs for the bonded interactions and an additional 4 GPUs for the non-bonded interactions, the following script could be used. Please note that this set up is valid only on PENZIAS since it is the only server which has GPU.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NAMD_GPU
#SBATCH --nodes=2
#SBATCH --ntasks=2
#SBATCH --gres=gpu:1
#SBATCH --accel=kepler
#SBATCH --mpiprocs=2

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the Non-Threaded MPI parallel executable to run
echo ">>>> Begin Non-Threaded NAMD MPI-GPU Parall Run ..."
mpirun -np 4 namd2  +idlepoll +devices 0,1,0,1   ./hivrt.conf > hivrt_gpu.out
echo ">>>> End    Non-Threaded NAMD MPI-GPU Parall Run ..."

Job submission on SALK via SLURM is somewhat different. First there is no module file. The script below shows how to run 16 processor (core) job on SALK:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NAMD_MPI
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --j oe
#SBATCH --o NAMD_MPI.out


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR


# Use 'aprun' and point to the Non-Threaded MPI parallel executable to run
echo ">>>> Begin NAMD Non-Threaded MPI Run ..."
aprun -n 16 -N 16 -cc cpu /share/apps/namd/default/CRAY-XT-g++/namd2  ./hivrt.conf > hivrt.out
echo ">>>> End   NAMD Non-Threaded MPI Run ..."

The most important difference to note is that on SALK is that the 'mpirun' command is replaced with the Cray's 'aprun' command. The 'aprun' command is used to start all jobs on SALK's compute nodes and mediates the interaction between the SLURM script's resource requests and the ALPS resource manager on the Cray. SALK users should familiarize themselves with 'aprun' and its options by reading 'man aprun' on SALK. Users cannot request more resources on their 'aprun' command-lines than are defined by the SLURM script's resource request lines. There is useful discussion elsewhere on the Wiki about the interaction between SLURM and ALPS as mediated by the 'aprun' command and the error message generated when there is a mismatch.

For any of these jobs to run, all the required auxiliary files must be present in the directory from which the job is run.

Application Reference Guides

NS2 (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Running NS2 is a four step process.

Prepare a Tcl script for NS2 like the example (ex.tcl) shown below. This example has 2 nodes with 1 link and uses UDP agent with the CBR traffic generator.

set ns [new Simulator]
set tr [open trace.out w]
$ns trace-all $tr

proc finish {} {
        global ns tr
        $ns flush-trace
        close $tr
        exit 0
}

set n0 [$ns node]
set n1 [$ns node]

$ns duplex-link $n0 $n1 1Mb 10ms DropTail

set udp0 [new Agent/UDP]
$ns attach-agent $n0 $udp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 500
$cbr0 set interval_ 0.005
$cbr0 attach-agent $udp0
set null0 [new Agent/Null]
$ns attach-agent $n1 $null0
$ns connect $udp0 $null0  

$ns at 0.5 "$cbr0 start"
$ns at 4.5 "$cbr0 stop"
$ns at 5.0 "finish"

$ns run

Create a SLURM batch submit script like the one shown here:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NS2-job
#SBATCH --nodes=1
#SBATCH --ntasks=1


# You must explictly change to your working
# directory in SLURM

cd $HOME/my_NS2_wrk

/share/apps/ns2/ns-allinone-2.31/ns-2.31/ns ./ex.tcl

Submit the job with:

qsub submit

Graph the result. At the HPC Center, 'nam' files can be produced, but cannot be run because they require a graphical environment for execution. Trace Graph is a free network trace file analyzer developed for NS2 trace processing. Trace Graph can support any trace format if converted to its own or NS2 trace format. Supported NS2 trace file formats include:

wired,satellite,wireless,new trace,wired-wireless. 

For more information on Trace Graph look here [1].

Users graphing results in Trace Graph must use Linux with X window system and allow X11 forwarding.

Application Reference Guides

OCTOPUS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Selecting the right queue based on system activity will ensure that your job starts as soon as possible. Complete information about the octopus package can be found at its homepage, http://www.tddft.org/programs/octopus. The on-line user manual is available at http://www.tddft.org/programs/octopus/wiki/index.php/Manual.

The MPI parallel version Octopus has been installed on PENZIAS and ANDY (the older release is also installed on ANDY) with all its associated libraries (metis, netcdf, sparsekit, etsfio, etc.). It was built with an Intel compiled version of the OpenMPI 1.6.4 and has passed all its internal test cases.

A sample Octopus input file (required to have the name 'inp') is provided here:

# Sample data file:
#
# This is a simple data file. It will complete a gas phase ground-state
# calculation for a neon atom. Please consult the Octopus manual for a
# brief explanation of each section and the variables.
#
FromScratch = yes

CalculationMode = gs

ParallelizationStrategy = par_domains

Dimensions = 1
Spacing = 0.2
Radius = 50.0
ExtraStates = 1

TheoryLevel = independent_particles

%Species
  "Neon1D" | 1 | spec_user_defined | 10 | "-10/sqrt(0.25 + x^2)"
%

%Coordinates
  "Neon1D" | 0
%

ConvRelDens = 1e-7

Octopus offers its users two distinct and combinable strategies to parallelize its runs. The first and default is to parallelize by domain decomposition of the mesh (METIS is used). In the input deck above, this method is chosen explicitly (ParallelizationStrategy = par_domains). The second is to compute the entire doman on each processor, but to do so for some number of distinct temporal states (ParallelizationStrategy = par_states). Users wishing to control the details of Octopus when run in parallel are advised to consult the advanced options section of the manual at http://www.tddft.org/programs/octopus/wiki/index.php/Manual:Advanced_ways_of_running_Octopus.

A sample SLURM Pro batch job submission script that will run on PENZIAS for the above input file is show here:

#!/bin/csh
#SBATCH --partition production
#SBATCH --job-name neon_gstate
# The next statements select 8 chunks of 1 core and
# 3840mb of memory each (the pro-rated limit per
# core on PENZIAS), and allow SLURM to freely place
# those resource chunks on the least loaded nodes.
#SBATCH --nodes=8
#SBATCH --ntasks=1
#SBATCH --mem=3840

# Check to see if the Octopus module is loaded.
(which octopus_mpi > /dev/null) >& /dev/null
if ($status) then
echo ""
echo "Please run: 'module load octopus'"
echo "before submitting this script. Exiting ... "
echo ""
exit
else
echo ""
endif

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# Must explicitly change to your working directory under SLURM
cd $SLURM_SUBMIT_DIR

# Set up OCTOPUS environment, working, and temporary directory

setenv OCTOPUS_ROOT /share/apps/octopus/default

setenv OCT_WorkDir \'$SLURM_SUBMIT_DIR\'

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv SCRATCH_DIR  /state/partition1/oct4.1_scr/${MY_SCRDIR}_$$
mkdir -p $SCRATCH_DIR
setenv OCT_TmpDir \'/state/partition1/oct4.1_scr/${MY_SCRDIR}_$$\'

echo "The scratch directory for this run is: $OCT_TmpDir"

# Start OCTOPUS job

echo ""
echo ">>>> Begin OCTOPUS MPI Parallel Run ..."
mpirun -np 8 octopus_mpi > neon_gstate.out
echo ">>>> End   OCTOPUS MPI Parallel Run ..."
echo ""

# Clean up scratch files by default

/bin/rm -r $SCRATCH_DIR

echo 'Your Octopus job is done!'


This script requests 8 resource 'chunks' each with 1 processor. The memory selected on the '-l select' line is sized to PENZIAS's pro-rated maximum memory per core. Please consult the sections on the SLURM Pro Batch scheduling system below for information on how to modify this sample deck for different processor counts. The rest of the script describes its action in comments. Before this script will run the user must load the Octopus module with:

module load Octopus

which by default default loads Octopus version 4.1.1. This script would need to be modified as follows to run on ANDY:

< # 3840mb of memory each (the pro-rated limit per
---
> # 2880mb of memory each (the pro-rated limit per
8c8
< #SBATCH --nodes=8
  #SBATCH --ntasks=1
  #SBATCH --mem=3840
---
> #SBATCH --nodes=8 
  #SBATCH --ntasks=1
  #SBATCH --mem=2880
41c41
< setenv SCRATCH_DIR  /state/partition1/oct4.1_scr/${MY_SCRDIR}_$$
---
> setenv SCRATCH_DIR  /scratch/<user_id>/octopus/oct4.1_scr/${MY_SCRDIR}_$$
43c43
< setenv OCT_TmpDir \'/state/partition1/oct4.1_scr/${MY_SCRDIR}_$$\'
---
> setenv OCT_TmpDir \'/scratch/<user_id>/octopus/oct4.1_scr/${MY_SCRDIR}_$$\'

Users should become aware of the scaling properties of their work by taking note of the run times at various processor counts. When doubling processor count improves SCF cycle time only by a modest percentage then further increases in processor counts should be avoided. The ANDY system has two distinct interconnects. One is a DDR InfiniBand network that delivers 20 Gbits per second of performance and the other is a QDR InfiniBand network that delviers 40 Gbits per second. Either will serve Octopus users well, but the QDR network should provide somewhat better scaling. PENZIAS has a still faster FDR InfiniBand network and should provide the best scaling. The HPC is interested in the scaling you observe on its systems and reports are welcome.

In the example above, the 'production' queue has been requested which works on both ANDY (DDR InfiniBand) and PENZIAS (FDR InfiniBand), but by adding a terminating '_qdr' one can select the QDR interconnect on ANDY.

Application Reference Guides

OPENFOAM (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

First step in using the program is to load module file which will set up the environment. To do so please run the command

module load openfoam/2.3.0

The script will ask you to load the bashrc file. Run the command:

source /share/apps/openfoam/2.3.0/OpenFOAM-2.3.0/etc/bashrc

Make directory for the project and put all your project files there. Change to this directory.

Create a SLURM script for the type of job you want to use:

For sequential job

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name <name of your run> 
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin serial run ..."
echo ""
 
<name of open foam program> log.<open_foam_program>  2>&1

echo ""
echo ">>>> End   serial  Run ..."

For MPI run on 4 cores:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name <name of your run> 
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin parallel run ..."
echo ""
 
mpirun -np 4 <name of open foam program> -parallel log.<open_foam_program>  2>&1

echo ""
echo ">>>> End parallel run ..."

More information about openFOAM plus some examples can me found on OpenFoam documentation web page:

http://www.openfoam.org/docs/

Application Reference Guides

ORCA (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

In particular implemented methods are: Semi-empirical: INDO/S, MNDO, AM1, PM3, NDDO/1; Hartee Fock theory (RHF, UHF, ROHF and CASSCF) all in direct, semidirect, or conventional mode, different RI approximations; DFT including a reasonably large number of exchange and correlation functionals including hybrid DFT and the most recent double hybrid functionals; High level single reference correlation models: CCSD(T), QCISD(T), CEPA, CPF (with and without RI, Local); High level ab-initio individual selecting multireference methods (MRCI, MRMP2, MRMP3, MRMP4, MRACPF, MRAQCC, SORCI, DDCI) for ground- and excited-states; Geometry optimization in redundant internal coordinates using analytical gradient techniques for all SCF methods as well as MP2; Excited state calculations via TD-DFT and CI-singles (CIS); Scalar relativistic ZORA, IORA and Douglas-Kroll-Hess (DKH) approaches, picture change effects, all-electron basis sets, effective core potentials; QM/MM interface to GROMACS and Double hybrid functionals including a fraction of nonlocal correlation.

When results obtained with ORCA are published the following citattion is required as minimum.

Neese, F. (2012) The ORCA program system, Wiley Interdiscip. Rev.: Comput. Mol. Sci., 2, 73–78.

However the users are required also to cite in addition the original papers that report the development and ORCA implementation of the methods used in users' research. The full list of papers is given in users manual, available online via following link:

https://orcaforum.cec.mpg.de/OrcaManual.pdf

The package is installed on PENZIAS. Users must load module for orca before use. Type

module load orca

Below is an example input file for water.


! B3LYP def2-SVP Opt
# My first ORCA calculation
*xyz 0 1
O        0.000000000      0.000000000      0.000000000
H        0.000000000      0.759337000      0.596043000
H        0.000000000     -0.759337000      0.596043000
*
%PAL nprocs 4 end

ORCA can run applications in thread parallel mode (OpenMP). Thus the line %PAL nprocs 4 end in above input file. The line instructs the ORCA wrapper to run different parts of ORCA modules on 4 cores. At HPC hyper treating is not supported. Consequently the number of cores requested in SLURM script (ntasks), must match the number of cores requested in input file. Below is the simple SLURM script which run the above calculation on 4 core on a single node.

#!/usr/bin/bash 
#SBATCH -J orca_OMP 
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH -o output.%j
#SBATCH --mem 16GB

export OMP_NUM_THREADS=4

export OMP_STACKSIZE=1G
export KMP_AFFINITY=scatter

cd $SLURM_SUBMIT_DIR

/share/usr/apps/orca/5.0.3/bin/orca water.inp > output_water.out
 


In order to use cross node parallelism (MPI) users must use mpi parallel versions of the ORCA routines accessible from orca wrapper. It is very important to submit correct numbers on nodes, cores-per-node and ntasks. Otherwise orca wrapper will not start OpenMPI job. The list is given below. Consequently the ntasks and nodes must be adjusted accordingly. Note that penzias has 2 types of nodes 16 core/64GB and 32 core/192GB.

 orca_anoint_mpi
 orca_autoci_mpi
 orca_casscf_mpi
 orca_cipsi_mpi
 orca_cis_mpi
 orca_cpscf_mpi
 orca_eprnmr_mpi
 orca_grad_mpi
 orca_gtoint_mpi
 orca_mcrpa_mpi
 orca_mdci_mpi
 orca_mm_mpi
 orca_mp2_mpi
 orca_mrci_mpi
 orca_pc_mpi
 orca_plot_mpi
 orca_pnmr_mpi
 orca_pop_mpi
 orca_rel_mpi
 orca_rocis_mpi
 orca_scfgrad_mpi
 orca_scfhess_mpi
 orca_scf_mpi
 orca_soc_mpi
 orca_util_mpi
 orca_vpot_mpi

More information about orca use including some examples can be found on ORCA portal at: https://orcaforum.cec.mpg.de/portal.php

Application Reference Guides

PHOENICS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

As suggested, the entire PHOENICS 2011 package is installed on ANDY and users can run the X11 version of the PHOENICS Commander display tool from ANDY's head node if they have connected using 'ssh -X andy.csi.cuny.edu' where the '-X' option ensures that X11 images are passed back to the original client. Doing this from outside the College of Staten Island campus where the CUNY HPCC is located may produce poor results because the X11 traffic will have to be forwarded through the HPC Center gateway system. CUNY has also licensed a number of seats for office-local desktop installations of PHOENICS (for either Windows or Linux) so that this should not be necessary. Job preparation and post-processing work is generally most efficiently accomplished on the local desktop using the Windows version of PHOENICS VR, which can be run directly or from PHOENICS Commander.

A rough general outline of the PHOENICS work cycle is:

1.  The user runs VR Editor (preprocessor) on their workstation (or on ANDY) and
    perhaps selects a library case (e.g. 274) making changes to this case to match
    his/her specific requirements.
 
2.  The user leaves the VR editor where input files 'q1' and 'eardat' are created.  
    If the user is preprocessing from their desktop, these files would then be 
    transferred to ANDY using the 'scp' command or via the 'PuTTy' utility for 
    Windows.
 
3.  The user runs the solver on ANDY (typically the parallel version, 'parexe') from
    their working directory using the SLURM batch submit script presented below.  This
    script reads the files 'q1' and 'eardat' (and potentially some other input files)
    and writes the key output files 'phi' and 'result'. 
 
4.  The user copies these output files back to their desktop (or not) and runs VR
    Viewer (postprocessor) which reads the graphics output file 'phi', or the user
    views tabular results manually in the 'result' file.

POLIS, available in Linux and Windows, has further useful information on running PHOENICS including tutorials, viewing documentation, and on all PHOENICS commands and topics here [1]. Graphical monitoring should be deactivated during parallel runs in ANDY's batch queue. To do this users should place two leading spaces in front of the command TSTSWP in the 'q1' file. The TSTSWP command is present in most library cases, including case 274 which is a useful test case. Graphical monitoring can be left turned on when running sequential 'earexe' on the desktop. This gives useful realtime information on sweeps, values, and the convergence progress.

Details on the use of the display and non-parallel PHOENICS tools can be found at the CHAM website and in the CHAM Encyclopaedia here [2].

The process of setting up a PHOENICS working directory and running the parallel version of 'earth' (parexe) on ANDY is described below. As a first step, users would typically create a directory called 'phoenics' in their $HOME directory as follows:

cd; mkdir phoenics

Next, the default PHOENICS installation root directory (version 2011 is the current default) named above should be symbolically linked to the 'lp36' subdirectory:

cd phoenics
ln -s /share/apps/phoenics/default ./lp36

The user must then generate the required input files for the 'earth' module which, as mentioned above in the PHOENICS work cycle section, are the 'q1' and 'eardat' files created by the VR Editor. These can be generated on ANDY, but it is generally easier to do this from the user's desktop installation of PHOENICS.

Because the current default version of PHOENICS, version 2011, was built with an earlier, older and now no longer default version of MPI, users must use the modules command to unload the current defaults and load the previous set before submitting the PHOENICS SLURM script below. This is a fairly simple procedure:

$module list
Currently Loaded Modulefiles:
  1) SLURM/11.3.0.121723     2) cuda/5.0              3) intel/13.0.1.117      4) openmpi/1.6.3_intel
$
$module unload intel/13.0.1.117
$module unload openmpi/1.6.3_intel
$
$module load intel/12.1.3.293
$
$module load openmpi/1.5.5_intel
Note: Intel compilers will be set to version 12.1.3.293
$
$module list
Currently Loaded Modulefiles:
  1) SLURM/11.3.0.121723     2) cuda/5.0              3) intel/12.1.3.293      4) openmpi/1.5.5_intel

Once the input files are created and placed (transferred to) into the working directory and the older modules have been loaded on ANDY, the following SLURM Pro batch script can be used run the job on ANDY. The progress of the job can be tracked with the SLURM 'qstat' command.

#!/bin/bash
#SBATCH --partition production_gdr
#SBATCH --job-name phx_test
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# Take a look at the set of compute nodes that SLURM gave you
echo $SLURM_NODEFILE
cat  $SLURM_NODEFILE

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the parallel executable to run
echo ">>>> Begin PHOENICS MPI Parallel Run ..."
echo ""
echo "mpirun -np 8 -machinefile $SLURM_NODEFILE ./lp36/d_earth/parexe"
mpirun -np 8 ./lp36/d_earth/parexe
echo ""
echo ">>>> End   PHOENICS MPI Parallel Run ..."

The job can be submitted with:

qsub 8Proc.job

Constructing a SLURM batch script is described in detail elsewhere in this Wiki document, but in short this script requests the QDR Infiniband production queue ('production_qdr') which runs the job on the side of ANDY with the fastest interconnect. It asks for 8 processors (cores) each with 2880 Mbytes of memory and allows SLURM to select those processors based on least loaded criteria. Because this is just an 8 processor job, it could be packed onto a single physical node on ANDY for better scaling using '-l place=pack' but this would delay its start by SLURM as SLURM would have to locate a completely free node.

During the run, 'parexe' creates (N-1) directories (named Proc00#) where N is the number of processors requested (note: if the Proc00# directories do not exist already they will be created, but there will be an error message in the SLURM error log, which can be ignored). The output from process zero is written into the working directory from which the script was submitted. The output from each of the other MPI processes is written into its associated 'Proc00#' directory. Upon successful completion, the 'result' file should show that the requested number of iterations (sweeps) was completed and print the starting and ending wall-clock time. At this point, the results (the 'phi' and 'results' files) from the SLURM parallel job can be copied back to the users desk top for post processing.

NOTE: A bug is present in the non-graphical, batch version of PHOENICS that is used on the CUNY HPCC Clusters. This problem does not occur in Windows runs. To avoid the problem a go-around modification to the 'q1' input file is required. The problem occurs only in jobs that require SWEEP counts that are greater than 10,000 (i.e. SWEEP=20000). Users requesting larger SWEEP counts must include the following in their 'q1' input files to avoid having their jobs terminated at 10,000 SWEEPS.

USTEER=F

This addition forces a bypass of the graphical IO monitoring capability in PHOENICS and prevents that section of code from capping the SWEEP count at 10,000 SWEEPs.

Finally, PHOENICS has been licensed broadly by the CUNY HPCC, and it can provide activation keys for any desktop copies whose annual activation keys expire.

Application Reference Guides

PYRAD (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Start up tutorials of the program can be found on following links

http://nbviewer.ipython.org/gist/dereneaton/1f661bfb205b644086cc/tutorial_RAD_3.0.ipynb

and on:

http://nbviewer.ipython.org/gist/dereneaton/af9548ea0e94bff99aa0/pyRAD_v.3.0.ipynb

Every user has to prepare the parameter file (in below example params.txt), which will hold parameters of PyRAD run. The full description of content of this file is given into manual (see above). To run PyRAD job first load module for pyRAD with the command

module load pyrad

Then submit a job with SLURM script. The simple SLURM script which an be used as template for user's job submission script is as follows:

#!/bin/bash
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name my_job
#SBATCH --nodes=1
#SBATCH --ntasks=1


# change to the working directory 
cd $SLURM_SUBMIT_DIR
echo ">>>> Begin  my_job"

pyRAD -p params.txt

echo">>>> End of a job"

Please check the manual for the command line options (and their meaning) of the pyRAD. .

Application Reference Guides

PYTHON (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

On Penzias Python is provided as a part of development package Anaconda/Miniconda. Anaconda distribution includes libraries (i.e. numpy) while miniconda is empty shell which can accommodate various packages. In general there are 2 supported versions of Python installed on Penzias system:

The same versions of Python can be accessed via miniconda builds but no extra modules will be automatically available (i.e. numpy, pandas etc.)

When using miniconda builds users have to have all needed python modules installed in their own space (see below).

In order to make Python binaries available user needs to load corresponding module:

module load python/2.7.13_anaconda

(for version 2.7.13) or for version 3.6.0

module load python/3.6.0_anaconda 

After the module is loaded Python interpreter can be simply called by "python" command.

Versions 2.7.3-2.7.11 are installed as Enthought Python Distribution [1]. EPD contains over 100 libraries such as SciPy, NumPy, matplotlib, IPython, PyTables, PIL, wxPython, etc... The Version 2.7.13 is installed as ANACONDA build and also supports more than 100 Python libraries. In addition the ANACONDA distribution is compiled with OpenMPI support (module for openmpi/1.8.4_intel must be loaded).

Installing Python packages

Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

module load python/2.7.13_anaconda
pip install guppy --user

For Python 3.6.0 in Anaconda build

module load python/3.6.0_anaconda
pip install guppy --user

For Python 2.7.13 in Miniconda

module load python/miniconda2
pip install guppy --user

For Python 3.6.0 in Miniconda 3

module load python/miniconda3
pip install guppy --user

To check if the package is properly installed type:

pip list | grep guppy
Application Reference Guides

QIIME (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Qiime is installed in Python/anaconda environment. There are 2 builds of Python/Anaconda - the one with python interpreter 2.7.13 and one with python interpreter 3.6.0. The text below refers to python 2.7.13. In order to use qiime the users must load module for qiime and activate the environment. The following 2 lines will do the job:

module load qiime/1.9.1_FULL_P2.7
source activate qiime1

The P2.7 above indicates that the used python interpreter is python 2.7.X. Because QIIME is a pipeline that relies heavily upon external applications, it has a variety of ways in which is "parallelizes" tasks for multiprocessor computation. These include:

1. Multi-threading on a single node 
2. Auto-generating serial jobs to the cluster, each working on a separate subtask ("Workers")
3. Actual MPI

Depending upon which subset of QIMME's functionality is needed, the user may use one or more of the above forms of parallelization. During the initial start up QIIME is concentrated on "de noising" which can take significant resources. Passing this phase the QIIME auto generates user specified number of threads (single node use) or node thread jobs. QIIME subdivides the denoising tasks into tasks that are handled at various stages by individual threads or worker jobs (depending upon setup). However the documentation on QIIME parallelization is not very explanatory, but is clear that the user can utilize EITHER auto-job generation OR node threading but NEVER BOTH in the same time. QIIME supplies few scripts for determining how subtasks are to be processed - worker jobs (cluster) or threads (single node). The relevant scripts are as follows:

start_parallel_jobs.py             - used for threading on a single node
start_parallel_jobs_torque.py - used for '''auto-generating''' single node, single core cluster worker jobs. 
                                                Please note that the utilization of the node is 1 node by 1 core. 

If the user invokes the qiime for the first time is good idea to check if all modules are properly connected. Thus on a first run users should run the command:

print_qiime_config.py -t

The above command will print initial set-up of qiime and will pass/fail internal tests.

(qiime1) [user_id@penzias ~]$ print_qiime_config.py -t

System information
==================
         Platform:	linux2
   Python version:	2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
Python executable:	/share/usr/compilers/python/miniconda2/envs/qiime1/bin/python

QIIME default reference information
===================================
For details on what files are used as QIIME's default references, see here:
 https://github.com/biocore/qiime-default-reference/releases/tag/0.1.3

Dependency versions
===================
          QIIME library version:	1.9.1
           QIIME script version:	1.9.1
qiime-default-reference version:	0.1.3
                  NumPy version:	1.10.4
                  SciPy version:	0.17.1
                 pandas version:	0.18.1
             matplotlib version:	1.4.3
            biom-format version:	2.1.5
                   h5py version:	2.6.0 (HDF5 version: 1.8.16)
                   qcli version:	0.1.1
                   pyqi version:	0.3.2
             scikit-bio version:	0.2.3
                 PyNAST version:	1.2.2
                Emperor version:	0.9.51
                burrito version:	0.9.1
       burrito-fillings version:	0.1.1
              sortmerna version:	SortMeRNA version 2.0, 29/11/2014
              sumaclust version:	SUMACLUST Version 1.0.00
                  swarm version:	Swarm 1.2.19 [Mar  5 2016 16:56:02]
                          gdata:	Installed.

QIIME config values
===================
For definitions of these settings and to learn how to configure QIIME, see here:
 http://qiime.org/install/qiime_config.html
 http://qiime.org/tutorials/parallel_qiime.html

                     blastmat_dir:	None
      pick_otus_reference_seqs_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set/97_otus.fasta
                         sc_queue:	all.q
      topiaryexplorer_project_dir:	None
     pynast_template_alignment_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set_aligned/85_otus.pynast.fasta
                  cluster_jobs_fp:	start_parallel_jobs.py
pynast_template_alignment_blastdb:	None
assign_taxonomy_reference_seqs_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set/97_otus.fasta
                     torque_queue:	production
                    jobs_to_start:	4
                       slurm_time:	None
            denoiser_min_per_core:	50
assign_taxonomy_id_to_taxonomy_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/taxonomy/97_otu_taxonomy.txt
                         temp_dir:	/tmp/
                     slurm_memory:	None
                      slurm_queue:	None
                      blastall_fp:	blastall
                 seconds_to_sleep:	1

QIIME base install test results
===============================
.........
----------------------------------------------------------------------
Ran 9 tests in 0.021s

OK

Each user must create the following qiime.config in his/her own home directory. The file (for cluster environment) is provided below, so the users must copy and paste the file.

cluster_jobs_fp /share/usr/compilers/python/miniconda2/envs/qiime1/bin/start_parallel_jobs_torque.py
python_exe_fp /share/usr/compilers/python/miniconda2/envs/qiime1/bin/python
working_dir  $HOME
blastmat_dir $HOME
blastall_fp blastall
pynast_template_alignment_fp
pynast_template_alignment_blastdb
template_alignment_lanemask_fp
jobs_to_start 4
seconds_to_sleep 60
qiime_scripts_dir /share/usr/compilers/python/miniconda2/envs/qiime1/bin
temp_dir /tmp/
denoiser_min_per_core 50
cloud_environment False
topiaryexplorer_project_dir
torque_queue main
assign_taxonomy_reference_seqs_fp
assign_taxonomy_id_to_taxonomy_fp

Lines which may be altered by the user are:

cluster_jobs_fp
   - Set to "start_parallel_jobs_torque.py" for cluster jobs
   - Set to "start_parallel_jobs.py" for single node threading
working_dir   
blastmat_dir  (blast matrices location)
jobs_to_start  (the MAXIMUM number of jobs to auto-spawn)
seconds_to_sleep (change is NOT recommended)

Lines which user must look carefully during:

qiime_scripts_dir - must be sure to always point to /share/usr/compilers/python/miniconda2/envs/qiime1/bin 
torque_queue      - must be set to "production"  which is main queue to PENZIAS.  

The meaning of each of the lines of qiime.config is:

cluster_jobs_fp : path to your cluster jobs file.  

python_exe_fp : path to python executable. Just use python. 
working_dir : a directory where work should be performed when running in parallel. USUALLY $HOME

blastmat_dir : directory where BLAST substitution matrices are stored

blastall_fp : path to blastall executable

pynast_template_alignment_fp : default template alignment to use with PyNAST as a fasta file

pynast_template_alignment_blastdb : default template alignment to use with PyNAST as a pre-formatted BLAST database

template_alignment_lanemask_fp : default alignment lanemask to use with filter_alignment.py

jobs_to_start : default number of jobs to start when running QIIME in parallel. 
                      don’t make this more than the available cores/processors on your system

seconds_to_sleep : number of seconds to wait when checking whether parallel jobs have completed

qiime_scripts_dir : directory where QIIME scripts can be found

temp_dir : directory for storing temporary files created by QIIME scripts. when a script completes successfully, any 
                 temporary files that it created are cleaned up.

denoiser_min_per_core : minimum number of flowgrams to denoise per core in parallel denoiser runs

cloud_environment : used only by the n3phele system. you should not need to modify this value

topiaryexplorer_project_dir : directory where TopiaryExplorer is installed

torque_queue : default queue to submit jobs to when using parallel QIIME with torque or SLURM. DEFAULT is production

assign_taxonomy_reference_seqs_fp : default reference database to use with assign_taxonomy.py (and parallel versions)

assign_taxonomy_id_to_taxonomy_fp : default id-to-taxonomy map to use with assign_taxonomy.py (and parallel versions)

sc_queue : default queue to submit jobs to when running parallel QIIME on StarCluster

In above script the jobs_to_start value must match number of cores requested in SLURM script. For example #SLURM -l select=1:ncpus=4 will require jobs_to_start also to have value 4. By default, QIIME is configured to run parallel jobs on systems without a queueing system (e.g., your laptop, desktop, or single AWS instance), where user tells a parallel QIIME script how many jobs should be submitted. On HPC systems however the QIIME should be submitted via SLURM batch script. In this case there are 2 scenarios:

     1. Jobs submitted for multithread on a single node
     2. Jobs submitted as single thread on single core across several nodes.

To make QIIME parallelization scheme useful the users may have to consider to make a separate script which holds the list of "tasks" that have to be started on cluster. The file is usual text file so it must be created with text editor - vi or edit in Linux environment. Please do not use word processor to create this file.

pick_otus.py -i inseqs_file1.fasta
pick_otus.py -i inseqs_file2.fasta
pick_otus.py -i inseqs_file3.fasta

The file is named test_jobs.txt. In order to be used it has to be called by one of the cluster job scripts described above. If passed to a cluster jobs script, above 3 lines should start three separate jobs corresponding to each of the commands. The name of cluster job script is defined in cluster_jobs_fp variable in qiime.config file. Remember that every user must have the qiime.conf file in his/her directory and the later file must be properly edited. The general syntax of passing the test_jobs.txt to cluster job script is:

CLUSTER_JOBS_FP -ms job_list.txt JOB_ID

Here CLUSTER_JOBS_FP is PATH to cluster job file (start_parallel_jobs.py OR start_parallel_jobs_torque.py). Then SLURM script to start multithread job on node on PENZIAS looks like:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

/share/usr/compilers/python/miniconda2/envs/qiime1/bin/start_parallel_jobs.py -ms test_jobs.txt  JOB_ID  -q production
echo "QIIME  job is done."

Please note that maximum number of threads is auto generated but limited from above from the value in qiime.conf. In above script JOB_ID is prefix which will be added to each of the jobs. -ms are options for start_parallel_jobs.py. The first one means "make" the second "submit". The same JOB_ID is also used by the QIIME parallel scripts when creating names for temporary files and directories, but user script does not necessarily need to do anything with this information. The parallel variants of the scripts use the same parameters as the serial versions of the scripts, with some additional options in the parallel scripts.

Next option is to use 1 core on 1 node parallelization. To do so the other script start_parallel_jobs_torque.py must me used. This files takes the following parameters/options:

Syntax: start_parallel_jobs_torque.py [options]

Input Arguments: [OPTIONAL]

-m, --make_jobs Make the job files [default: None] -s, --submit_jobs Submit the job files [default: None] -q, --queue Name of queue to submit to [default: friendlyq] -j, --job_dir Directory to store the jobs [default: jobs/] -w, --max_walltime Maximum time in hours the job will run for [default: 72] -c, --cpus Number of CPUs to use [default:1] -n, --nodes Number of nodes to use [default:1]

Let's say the user want to submit the parallel job on PENZIAS. First the user must create a cluster job script similar to test_jobs.txt which should hold programs to be executed - one per command line just as it was shown above. Then the following script can be used to run on 4 nodes :


#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


start_parallel_jobs_torque.py -ms test_jobs.txt -c 1 -n 4 -q production
echo "QIIME  job is done."

Finally below is an example how to run the QIIME script for SERIAL align_seqs.py on penzias:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

align_seqs.py -i input.fasta -m muscle
echo "QIIME  job is done."

And in PARALLEL:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

start_parallel_jobs_torque.py -ms test_jobs.txt -c 4 -n 4 -q production
echo "QIIME  job is done."

The users are strongly encouraged to familiarize themselves with QIIME tutorials available at : http://qiime.org/tutorials/index.html

Application Reference Guides

RAXML (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Examples of running both parallel and serial jobs are presented below. More information can be found here [1]

To run RAxML first a PHYLIP file of aligned DNA or amino-acid sequences similar to the one shown here must be created. This file, 'alg.phy', is in interleaved format:

5 60
Tax1        CCATCTCACGGTCGGTACGATACACCTGCTTTTGGCAG
Tax2        CCATCTCACGGTCAGTAAGATACACCTGCTTTTGGCGG
Tax3        CCATCTCCCGCTCAGTAAGATACCCCTGCTGTTGGCGG
Tax4        TCATCTCATGGTCAATAAGATACTCCTGCTTTTGGCGG
Tax5        CCATCTCACGGTCGGTAAGATACACCTGCTTTTGGCGG

GAAATGGTCAATATTACAAGGT
GAAATGGTCAACATTAAAAGAT
GAAATCGTCAATATTAAAAGGT
GAAATGGTCAATCTTAAAAGGT
GAAATGGTCAATATTAAAAGGT

For more detail about PHYLIP formatted files, please check look at the RAxML manual here [2] at the web site referenced above. There is also a tutorial here [3]

To include all required environmental variables and the path to the RAXML executable run the modules load command (the modules utility is discussed in detail above):

module load raxml

Next create a SLURM batch script. Below is an example script that will run the serial version of RAxML. The program options -m,-n,-s are all required. In order, they specify the substitution model (-m), the output file name (-n), and the sequence file name (-s). Additional options are discussed in the manual.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name RAXML_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin RAXML Serial Run ..."
raxmlHPC -y -m GTRCAT -n TEST1 -p 12345 -s alg.phy > raxml_ser.out 2>&1
echo ">>>> End   RAXML Serial Run ..."

This script can be dropped into a file (say raxml_serial.job) and submitted to SLURM with the following command:

qsub raxml_serial.job

RAxML produces the following output files

  1. Parsimony starting tree is written to RAxML_parsimonyTree.TEST1.
  2. Final tree is written to RAxML_result.TEST1.
  3. Execution Log File is written to RAxML_log.TEST1.
  4. Execution information file is written to RAxML_info.TEST1.

RAxML also is available in a MPI-parallel version called raxmlHPC-MPI. The MPI-parallelized version can be run on all types of clusters to perform rapid parallel bootstraps, or multiple inferences on the original alignment. The MPI-version is for executing large production runs (i.e. 100 or 1,000 bootstraps). You can also perform multiple inferences on larger datasets in parallel to find a best-known ML tree for your dataset. Finally, the novel rapid BS algorithm and the associated ML search have also been parallelized with MPI.

The following MPI script script selects 4 processors (cores) and allows SLURM to put them on any compute node. Note, that when running any parallel program one must be cognizant of the scaling properties of its parallel algorithm; in other words, how much does a given job's run time drop as one doubles the number of processors used. All parallel programs arrive at point of diminishing returns that depend on the algorithm, size of the problem being solved, and the performance features of the system that it is being run on. We might have chosen to run this job on 8, 16, or 32 processors (cores), but would only do so if the improvement in performance scales. Improvements of less than 25% after a doubling are an indication of a reasonable maximum number of processors under those particular set of circumstances.

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name RAXML_mpi
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin RAXML MPI Run ..."
mpirun -np 4 -machinefile $SLURM_NODEFILE raxmlHPC-MPI -m GTRCAT -n TEST2 -s alg.phy -N 4 > raxml_mpi.out 2>&1
echo ">>>> End   RAXML MPI Run ..."

This test case should take no more than a minute to run and will produce SLURM output and error files beginning with the job name 'RAXML_mpi'. Other RAxML-specific outputs will also be produced Details on the meaning of the SLURM script are covered above in this Wiki's SLURM section. The most important lines are '#SBATCH --nodes=4 ntasks=1 mem=2880'. The first instructs SLURM to select 4 resource 'chunks' each with 1 processor (core) and 2,880 MBs of memory in it for the job (on ANDY as much as 2,880 MBs might have been selected). The second line instructs SLURM to place this job wherever the least used resources are found (i.e. freely).

The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command. As this is a parallel job, other compute nodes may also be called into service to complete this job. Note that the name of the parallel executable is 'raxmlHPC-MPI' and the in the parallel run we are complete four simulations (-N 4). The expression '2>&1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Application Reference Guides

STRUCTURAMA (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Importantly, the program can estimate the number of populations under the Dirichlet process prior. Markov chain Monte Carlo (MCMC) is used to approximate the posterior probability that individuals are assigned to specific populations. Structurama also allows the individuals to be admixed. Structurama implements a number of methods for summarizing the results of a Bayesian MCMC analysis of population structure. Perhaps most interestingly, the program finds the mean partition, a partitioning of individuals among populations that minimizes the squared distance to the sampled partitions. More detailed information about Structurama can be found at the web site here [1] and in the manual here [2].

The February 2014 version of the Structurama is installed on ANDY and PENZIAS. Structurama is a serial program with only an interactive command-line interface; therefore, making SLURM batch serial runs requires that the user to supply the exact and complete list of commands that an interactive use of the program would have required within the SLURM batch script. In addition to referencng the executable 'st2', a Structurama data file must be present in the SLURM working directory. The following SLURM batch script shows how this is done using the Unix 'here-document' construction (i.e <<):

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRAMA_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin STRUCTURE RAMA Serial Run ..."
echo ""

st2 << EOF
execute test.inp
yes
quit
EOF

echo ""
echo ">>>> End   STRUCTURE RAMA Serial Run ..."

After the Structurama module is loaded, this script can be dropped into a file (say 'strama_serial.job') and submitted for execution, as follows:


module avail structurama
----------------------------------- /share/apps/modules/default/modulefiles_UserApplications ------------------------------------
structurama/10.30.11        structurama/2.2.14(default)

module load structurama

qsub strama_serial.job

A basic test input file should take less than a minute to run and will produce SLURM output and error files beginning with the job name 'STRAMA_serial'. Additional, Structurama specific output files can also be requested. This job will write an Structurama output file call 'strout.p.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' each with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The lines following the reference to the Structurama executable 'str2' show what is required to deliver input to an interactive program in a batch script. The input-equivalent sequence of commands should be placed, one per line, between the first and last 'EOF' which demarcates the entire pseudo-interactive session. NOTE: If you forget to include the final command 'quit', your SLURM job will never complete, as it will be waiting for its final termination instructions and will never receive them. Such, a job should be deleted with the SLURM command 'qdel JID', where JID is the numerical SLURM job identification number. If you would like a print out of all the Structurama options include the line 'help' in your command stream.

Application Reference Guides

THRUST (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Thrust provides a rich collection of data parallel primitives such as scan, sort, and reduce, which can be combined together to implement complex algorithms with concise, readable source code. By describing your computation in terms of these high-level abstractions you provide Thrust with the freedom to select the most efficient implementation automatically. As a result, Thrust can be utilized in rapid prototyping of CUDA applications, where programmer productivity matters most, as well as in production, where robustness and absolute performance are crucial.

More detail on the Thrust library is available here [1]. There are a collection of example codes here [2]. The Thrust Manual is available here [3]

Here is a basic C++ example code, which creates and fills a vector on the Host, resizes it, copies it to the Device, modifies it there, and prints out the modified values.

#include <thrust/host_vector.h>
#include <thrust/device_vector.h>

#include <iostream>

int main(void)
{
    // H has storage for 4 integers
    thrust::host_vector<int> H(4);

    // initialize individual elements
    H[0] = 14;
    H[1] = 20;
    H[2] = 38;
    H[3] = 46;
    
    // H.size() returns the size of vector H
    std::cout << "H has size " << H.size() << std::endl;

    // print contents of H
    for(int i = 0; i < H.size(); i++)
        std::cout << "H[" << i << "] = " << H[i] << std::endl;

    // resize H
    H.resize(2);
    
    std::cout << "H now has size " << H.size() << std::endl;

    // Copy host_vector H to device_vector D
    thrust::device_vector<int> D = H;
    
    // elements of D can be modified
    D[0] = 99;
    D[1] = 88;
    
    // print contents of D
    for(int i = 0; i < D.size(); i++)
        std::cout << "D[" << i << "] = " << D[i] << std::endl;

    // H and D are automatically deleted when the function returns
    return 0;
}

Assuming this source file were called 'vectcopy.cu', it can be compiled on PENZIAS:

nvcc -o vectcopy.exe vectcopy.cu

Once compiled, the 'vectorcopy.exe' executable can be run using the following SLURM script:

#!/bin/bash
#SLURM -q production_gpu
#SLURM -N THRUST_vcopy
#SLURM -l select=1:ncpus=1:ngpus=1 
#SLURM -l place=free
#SLURM -V

# Find out which compute node the job is using
echo ""
echo -n "Running job on compute node ... " 
hostname

echo ""
echo "SLURM node file is located here ... "  $SLURM_NODEFILE
echo -n "SLURM node file contains ... "
cat  $SLURM_NODEFILE
echo ""

# Change to working directory
cd $SLURM_O_WORKDIR

# Running executable on a single, gpu-enabled
# compute node using 1 CPU and 1 GPU.
echo "CUDA job is starting ... "
echo ""

./vectcopy.exe

echo ""
echo "CUDA job is done!"
Application Reference Guides

TRINITY (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Briefly, the process works like so:

Inchworm assembles the RNA-seq data into the unique sequences of transcripts, often generating full-length transcripts for a dominant isoform, but then reports just the unique portions of alternatively spliced transcripts.

Chrysalis clusters the Inchworm contigs into clusters and constructs complete de Bruijn graphs for each cluster. Each cluster represents the full transcriptonal complexity for a given gene (or sets of genes that share sequences in common). Chrysalis then partitions the full read set among these disjoint graphs.

Butterfly then processes the individual graphs in parallel, tracing the paths that reads and pairs of reads take within the graph, ultimately reporting full-length transcripts for alternatively spliced isoforms, and teasing apart transcripts that corresponds to paralogous genes.

Additional Trinity documentation can be found at the Trinity website.

Trinity is installed on Penzias cluster. In order to run it load Trinity environment module with

module load trinity

Note that this will also load the module for BOWTIE which is required by Trinity. Once your environment set you can submit a job into SLURM queue. Here is a typical SLURM script that submits a 4-core Trinity job:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name trinity
#SBATCH --nodes=1
#SBATCH --ntasks=4

# set unlimited stack size
ulimit -s unlimited

# set number of cores and memory requirements
NCORES=4
JMEM=8G
export OMP_NUM_THREADS=$NCORES

# set output directory
MY_OUT_DIR=myOutDir_trinity

echo "----------------Starting-----------------------"
cd $SLURM_SUBMIT_DIR
# run trinity
Trinity --CPU $NCORES --bflyCPU $NCORES --bflyGCThreads $NCORES \
    --max_memory $JMEM \
    --seqType fq --SS_lib_type RF \
    --left reads.left.fq  --right reads.right.fq \
    --output myOutDir_trinity >& log_trinity
echo "-----------------Done--------------------------"


You can find example of SLURM script and sample input files (reads.left.fq/ reads.right.fq) under "/share/apps/trinity/default/example" directory.

Application Reference Guides

SAGE (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Sage is built out of nearly 100 open-source packages and features a unified interface that integrates their functionality into a common experience. It is well-suited for education and research. Details on SAGE, including tutorials on its use are available at [1].

The CUNY HPCC has installed SAGE on KARLE, a 24 processor gateway server system that supports a number of interactive and GUI oriented applications such as MATLAB, SAS, R, and Mathematica. SAGE is not currently installed on our cluster systems and is there for not available for SLURM batch use. If there is an interest in this and submitted large numbers of serial jobs to the batch queues, users should make a request through the HPC Center email address 'hpchelp@csi.cuny.edu'.

Users with accounts on KARLE can simply start SAGE with:

$sage
----------------------------------------------------------------------
| SageMath Version 7.0, Release Date: 2016-01-19                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.

----------------------------------------------------------------------
sage: 
sage: 
Application Reference Guides

SAMTOOLS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

SAMTOOLS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, CUFFLINKS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the SAMTOOLS home page here [1].

At the CUNY HPCC SAMTOOLS is installed on ANDY. SAMTOOLS is a collection of utilities for extracting, reformatting, and displaying nucleotide sequences. The primary tool is called 'samtools' and offers a large number of command-line options. For smaller tasks, SAMTOOLS can be run interactively, but should be run in SLURM batch mode when larger, longer tasks are anticipated. NOTE: that display tasks cannot be run in pure SLURM batch mode because the output is displayed. Larger display tasks should be run in SLURM interactive mode as described in the SLURM section elsewhere in this document.

Below is an example SLURM script that will convert the 'toy.sam' file provided with the distribution from SAM to BAM format. This and all the example files can be copied from the local installation directory to your current location as follows:

cp /share/apps/samtools/default/examples/* .

To include all required environmental variables and the path to the SAMTOOLS executables run the modules load command (the modules utility is discussed in detail above):

module load samtools

Running 'samtools' from the interactive prompt without any options will provide a brief description of the form of the command-line argument and options. Here is SLURM batch script that does a short format conversion in batch mode:

#!/bin/bash
#SLURM -q production
#SLURM -N SAMTLS_serial
#SLURM -l select=1:ncpus=1:mem=2880mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Point to the execution directory to run
echo ">>>> Begin SAMTLS Serial Run ..."
samtools view -bS toy.sam > toy.bam 2 > toy.err
echo ">>>> End   SAMTLS Serial Run ..."

This script can be dropped in to a file (say samtools_ser.job) and started with the command:

qsub samtools_ser.job

Running this conversion test case should take less than 1 minutes and will produce SLURM output and error files beginning with the job name 'SAMTLS_serial'. The primary SAMTOOLS application results will be written into the user-specified file at the end of the TOPHAT command line after the greater-than sign. Here it is named 'toy.bam' The expression '2 > toy.err' at the end of the command-line directs Unix standard error to the file 'toy.err'. Users should always explicitly specify the name of the application's output files to ensure that they are written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM -l select=1:ncpus=1:mem=2880mb' and the '#SLURM -l pack=free' lines. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job on the least buy node where the requested resources can be found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Application Reference Guides

STRUCTURE (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The following SLURM batch script shows how to run a single, basic Structure serial job:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRUCT_simple
#SBATCH --nodes=1
#SBATCH --ntasks=1


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Set the root directory for the 'structure' binary
STROOT=/share/apps/structure/default/bin

# Point to the execution directory to run
echo ">>>> Begin STRUCTURE Serial Run ..."
echo ""
${STROOT}/structure -K 1 -m mainparams -i ./sim.str -o ./sim_k1_run1.out
echo ""
echo ">>>> End   STRUCTURE Serial Run ..."

This script can be dropped into a file (say 'struct_serial.job') and submitted for execution using the following SLURM command:

qsub struct_serial.job

This test input file should take less than 5 minutes to run and will produce SLURM output and error files beginning with the job name 'STRUCT_simple'. Additional, Structure-specific output files will also be created, including an output file called 'sim_k1_run1.out_f'. Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1'. The first instructs SLURM to select 1 resource 'chunk' each with 1 processor (core). The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The Structure program requires its own input and data files, properly configured, to run successfully. For the example above these include the input file ('sim.str' above), the 'mainparams' file ('mainparams.10mil.k1' above), and the 'extraparams' file (the default name, 'extraparams' is used in the example above). The user is responsible for configuring these files correctly for each run, but the data files for this example and others can be found in the directory:

/share/apps/structure/default/examples

on ANDY.

Often, Structure users are interested in making multiple runs over a large simulation regime-space. This requires appropriately configured input and parameter files for each individual run. Data file configuration can be done manually or with the help of the Python-based tool StrAuto. The HPC Center has installed StrAuto to support running multiple Structure runs. StrAuto is documented at its download site here [1] and all the files, including the primary Python-based tool, 'strauto-0.3.1.py' are available in:

/share/apps/strauto/default

In this process, the StrAuto script, 'strauto-0.3.1.py', (found in '/share/apps/strauto/default/bin') is run in the presence of a user-created, regime-space configuration file called 'input.py'. This produces a Unix script file called 'runstructure' that can then be used to run the user-defined spectrum of cases, one after another. NOTE: the 'strauto-0.3.1.py' script requires Python 2.7.2 to run correctly. This version is NOT the default version of Python installed on BOB; and therefore, users of StrAuto must invoke the 'strauto-0.3.1.py' script using a specially installed version of Python, as follows:

/share/apps/epd/7.3-2/bin/python ./strauto-0.3.1.py

The above command assumes that 'strauto-0.3.1.py' has been copied into the user's directory and that the required 'input.py' file is also present there. The contents of the 'runstructure' file produced can then be integrated into a SLURM batch script similar to the simple, single-run script shown above, but designed to run each case in the simulation regime-space in succession. Here is an example of just such a runstructure-adapted SLURM script:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRUCT_cmplx
#SBATCH --nodes=1
#SBATCH --ntasks=1


#-----------------------------------------------------------------------------------
# This SLURM batch script is based on the 'runstructure' script generated by 
# Vikram Chhatre's setup and pre-processing program 'strauto-0.3.1.py' written
# in Python at Texas A&M University to be used with the 'structure' application.
#
# Each 'runstructure' script is custom-generated by the 'strauto-0.3.0.py' python 
# based on a custom input file.  It completes a series of runs over a regime defined 
# by the 'structure' user for that custom input file only.  This means it will only 
# work for that input data file. 
#                   Email: crypticlineage (at) tamu.edu                        
#-----------------------------------------------------------------------------------

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Setup a directory structure for the multiple 'structure' runs
mkdir results_f log harvester
mkdir k1
mkdir k2
mkdir k3
mkdir k4
mkdir k5

cd log
mkdir k1
mkdir k2
mkdir k3
mkdir k4
mkdir k5

cd ..

# Set the root directory for the 'structure' binary
STROOT=/share/apps/structure/default/bin

# Point to the execution directory to run
echo ">>>> Begin Multiple STRUCTURE Serial Runs ..."
echo ""

${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run1 2>&1 | tee log/k1/sim_k1_run1.log
${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run2 2>&1 | tee log/k1/sim_k1_run2.log
${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run3 2>&1 | tee log/k1/sim_k1_run3.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run1 2>&1 | tee log/k2/sim_k2_run1.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run2 2>&1 | tee log/k2/sim_k2_run2.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run3 2>&1 | tee log/k2/sim_k2_run3.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run1 2>&1 | tee log/k3/sim_k3_run1.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run2 2>&1 | tee log/k3/sim_k3_run2.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run3 2>&1 | tee log/k3/sim_k3_run3.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run1 2>&1 | tee log/k4/sim_k4_run1.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run2 2>&1 | tee log/k4/sim_k4_run2.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run3 2>&1 | tee log/k4/sim_k4_run3.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run1 2>&1 | tee log/k5/sim_k5_run1.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run2 2>&1 | tee log/k5/sim_k5_run2.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run3 2>&1 | tee log/k5/sim_k5_run3.log

# Consolidate all results in a single 'zip' file
mv k1 k2 k3 k4 k5  results_f/
cd results_f/
cp k*/*_f . && zip sim_Harvester-Upload.zip *_f && rm *_f
mv sim_Harvester-Upload.zip ../harvester/
cd ..

echo ""
echo ">>>> Zip Archive: sim_Harvester-Upload.zip is Ready ... "
echo ">>>> End  Multiple  STRUCTURE Serial Runs ..."

This script can be dropped into a file (say 'struct_cmplx.job') and submitted for execution using the following SLURM command:

qsub struct_cmplx.job

The 'struct_cmplx.job' script runs one Structure job after another each with a slightly different set of input parameters. All the associated files and directories from a successful StrAuto-supported run of Structure using this script can be found on ANDY in:

/share/apps/strauto/default/examples
Application Reference Guides

TOPHAT (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The other tools in this collection, BOWTIE, CUFFLINKS, and SAMTOOLS are also installed at the CUNY HPCC. Additional information can be found at the TOPHAT home page here [1].

At the CUNY HPCC TOPHAT is installed on ANDY. TOPHAT is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the mRNA test case provided with the distribution and which can be copied from the local installation directory to your current location as follows:

cp /share/apps/tophat/default/examples/* .

To include all required environmental variables and the path to the TOPHAT executable run the modules load command (the modules utility is discussed in detail above):

module load tophat

Running 'tophat' from the interactive prompt without any options will provide a brief description of the form of the command-line argument and options. Here is SLURM batch script that builds the index and aligns the sequences in serial mode:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name TOPHAT_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Point to the execution directory to run
echo ">>>> Begin TOPHAT Serial Run ..."
tophat -r 20 test_ref reads_1.fq reads_2.fq > tophat_mrna.out 2>&1
echo ">>>> End   TOPHAT Serial Run ..."

This script can be dropped in to a file (say tophat_ser.job) and started with the command:

qsub tophat_ser.job

Running the mRNA test case should take less than 2 minutes and will produce SLURM output and error files beginning with the job name 'TOPHAT_serial'. The primary TOPHAT application results will be written into the user-specified file at the end of the TOPHAT command line after the greater-than sign. Here it is named 'tophat_mrna.out.' The expression '2>&1' at the end of the command-line combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1:ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources can be found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run TOPHAT in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run TOPHAT using two threads. ANDY has as many as 8 physical compute cores per compute node, and therefore as many as 8 cores-threads might be chosen. Once a parallel job starts it will generally (not always) complete in less time, but jobs requesting a larger the number of cores-threads or memory per node may wait longer to start on a busy system as SLURM looks for a compute node with all the resources requested.

#!/bin/bash
#SLURM --partition production
#SBATCH --job-name TOPHAT_threads
#SBATCH --nodes=1
#SBATCH --ntasks=2
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SBATCH
cd $SBATCH_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin TOPHAT Threaded Run ..."
tophat -p 2 -r 20 test_ref reads_1.fq reads_2.fq > tophat_thrds.out 2>&1
echo ">>>> End   TOPHAT Threaded Run ..."

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ntasks=2) and requests twice as much memory as before. Also, notice that the TOPHAT command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Large data jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

Application Reference Guides

USEARCH (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

USEARCH (64 bit version) is installed on Penzias HPC cluster. To start using USEARCH load corresponding module first:

module load usearch  


Example SLURM script that can be used to submit a job with a typical USEARCH workflow is shown below:

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name usearch_x
#SBATCH --nodes=1
#SBATCH --ntasks=1


cd $SLURM_SUBMIT_DIR
echo "Starting..."
cp /share/apps/usearch/8.0.1623/sample/reads.fq ./
usearch8.0.1623 -fastq_filter reads.fq  -fastaout reads.fa
usearch8.0.1623 -derep_fulllength reads.fa -fastaout derep.fa -sizeout
usearch8.0.1623 -sortbysize derep.fa -fastaout sorted.fa -minsize 1
usearch8.0.1623 -cluster_otus sorted.fa -otus otus1.fa -relabel OTU_ -sizeout -uparseout results.txt
echo "Done!"

Additional USEARCH documentation may be found on USEARCH web site.

Application Reference Guides

WRF (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

There are two distinct WRF development trees and versions, one for production forecasting and another for research and development. NCAR's experimental, advanced research version, called ARW (Advanced Research WRF) features very high resolution and is being used to explore ways of improving the accuracy of hurricane tracking, hurricane intensity, and rainfall forecasts, among a host of other meteorological questions. It is ARW along with its pre- and post- processing modules (WPS and WPP), and the MET and GRaDS display tools that are supported here at the CUNY HPCC. ARW is supported on both the the CUNY HPCC SGI (ANDY) and Cray (SALK). The CUNY HPCC build includes the NCAR Command Language (NCL) tools on both SALK and ANDY.

A complete start-to-finished use of ARW requires a significant number of steps in pre-processing, parallel production modeling, and post-processing and display. There are several alternative paths that can be taken through each stage. In particular, ARW itself offers users the ability to process either real or idealized weather data. Completing one type of simulation or the other requires different steps and even different user-compiled versions of the ARW executable. To help our users familiarize themselves with running ARW at the CUNY HPCC, the steps required to complete a start-to-finish, real-case forecast are presented below. For more complete coverage, the CUNY HPCC recommends that new users study the detailed description of the ARW package and how to use it at the University Corporation for Atmospheric Research (UCAR) website here [1].

WRF Pre-Processing with WPS

The WPS part of the WRF package is responsible for mapping time-equals-zero simulation input data onto the simulation domain's terrain. This process involves the execution of the preprocessing applications geogrid.exe, ungrib.exe, and metgrid.exe. Each of these applications reads its input parameters from the 'namelist.wps' input specifications file.

NOTE: In general, these steps do not take much processing time; however, in some cases they may. When users discover that pre-processing steps are running longer than five minutes as interactive jobs on the head node of either ANDY or SALK they should be instead run as batch jobs. HPC Center staff may decide to kill such long-running interactive pre-processing steps if they are slowing head node performance.

In the example presented here, we will run a weather simulation based on input data provided from January of 2000 for the eastern United States. These steps should work both on ANDY and SALK with minor differences as noted. To begin this example, create a working WPS directory and copy the test case namelist file into it.

mkdir -p $HOME/wrftest/wps
cd $HOME/wrftest/wps
cp /share/apps/wrf/default/WPS/namelist.wps .

Next, you should edit the 'namelist.wps' to point to the sample data made available in the WRF installation tree. This involves making sure that the 'geog_data_path' assignment in the geogrid section of the namelist file points to the sample data tree. From an editor make the following assignment:

geog_data_path = '/share/apps/wrf/default/WPS_DATA/geog'

Once this is completed, you must symbolically link or copy the geogrid data table directory to your working directory ($HOME/wrftest/wps here).

ln -sf /share/apps/wrf/default/WPS/geogrid ./geogrid

Now, you can run 'geogrid.exe', the geogrid executable, which defines the simulation domains and interpolates the various terrestrial data sets between the model's grid lines. The global environment on ANDY has been set to include the path to all the WRF-related executables including 'geogrid.exe'. On SALK, you must load the WRF module ('module load wrf') first to set the environment. The geogrid executable is an MPI parallel program which could be run in parallel as part of a SLURM batch script to complete the combined WRF preprocessing and execution steps, but often it runs only a short while and can be run interactively on ANDY's head node before submitting a full WRF batch job.

First you will first have to load the WRF module with:

module load wrf

Once this is done from the $HOME/wrftest/wps working directory run:

geogrid.exe > geogrid.out

On Salk (Cray system) you will have to run:

 aprun -n 1 geogrid.exe > geogrid.out

Note that 'geogrid.exe' is an MPI program and can be run in parallel. Long running WRF pre-processing jobs should be run either with more cores per node interactively as above (with -n 8, or -n 16) or as complete SLURM batch jobs, so that SALK's interactive nodes are not held by long running jobs.

Two domain files should be produced (geo_em.d01.nc geo_em.d02.nc) for this basic test case, as well as a log and output file which indicates success at the end with:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  Successful completion of geogrid.        !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The next required preprocessing step is to run 'ungrib.exe', the ungrib executable. The purpose of ungrib is to unpack 'GRIB' ('GRIB1' and 'GRIB2') meteorological data and pack it into an intermediate file format usable by 'metgrid.exe' in the final preprocessing step.

The data for the January 2000 simulation being documented here has already been downloaded and placed in the WRF installation tree in /share/apps/wrf/default/WPS_DATA. Before running 'ungrib.exe', the WRF installation 'Vtable' file must first be symbolically linked into the working directory with:

$ln -sf /share/apps/wrf/default/WPS/ungrib/Variable_Tables/Vtable.AWIP Vtable
$ls
geo_em.d01.nc  geo_em.d02.nc  geogrid  geogrid.log  namelist.wps  Vtable

The Vtable file specifies which fields to unpack from the GRIB files. The Vtables list the fields and their GRIB codes that must be unpacked. For this test case the required Vtable file has already been defined, but users may have to construct a custom Vtable file for their data.

Next, the GRIB files themselves must also be symbolically linked into the working directory. WRF provides a script to do this.

$link_grib.csh /share/apps/wrf/default/WPS_DATA/JAN00/2000012
$ls
geo_em.d01.nc  geogrid      GRIBFILE.AAA  GRIBFILE.AAC  GRIBFILE.AAE  GRIBFILE.AAG  GRIBFILE.AAI  GRIBFILE.AAK  GRIBFILE.AAM  namelist.wps
geo_em.d02.nc  geogrid.log  GRIBFILE.AAB  GRIBFILE.AAD  GRIBFILE.AAF  GRIBFILE.AAH  GRIBFILE.AAJ  GRIBFILE.AAL  GRIBFILE.AAN  Vtable

Note 'ls' shows that the 'GRIB' files are now present.

Next, more edits to the 'namelist.wps' file are required--one to set the start and end dates for the simulation to our January 2000 time frame, and the second to set the number of simulation seconds to complete (21600 / 3600 = 6.0 hours in this case). Edit the 'namelist.wps' file by setting the following in the shared section of the file:

 start_date = '2000-01-24_12:00:00','2000-01-24_12:00:00',
 end_date   = '2000-01-25_12:00:00','2000-01-25_12:00:00',
interval_seconds = 21600

Now you can run 'ungrib.exe' to create the intermediate files required by 'metgrid.exe':

$ungrib.exe > ungrib.out
$ls
FILE:2000-01-24_12  FILE:2000-01-25_06  geo_em.d02.nc  GRIBFILE.AAA  GRIBFILE.AAD  GRIBFILE.AAG  GRIBFILE.AAJ  GRIBFILE.AAM  ungrib.log
FILE:2000-01-24_18  FILE:2000-01-25_12  geogrid        GRIBFILE.AAB  GRIBFILE.AAE  GRIBFILE.AAH  GRIBFILE.AAK  GRIBFILE.AAN  ungrib.out
FILE:2000-01-25_00  geo_em.d01.nc       geogrid.log    GRIBFILE.AAC  GRIBFILE.AAF  GRIBFILE.AAI  GRIBFILE.AAL  namelist.wps  Vtable

Note that 'ungrib.exe', unlike the other pre-processing tools mentioned here, is NOT an MPI parallel program and for larger WRF jobs can run for a fairly long time. Long running 'ungrib.exe' pre-processing jobs should be run as complete SLURM batch jobs, so that SALK's interactive nodes are not held for hours at a time.

After a successful 'ungrib.exe' run you should get the familiar message at the end of the output file:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of ungrib.!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Like geogrid, the metgrid executable, 'metgrid.exe' needs to be able to find its table directory in the preprocessing working directory. The metgrid table directory may either be copied or symbolically linked into the working directory location.

ln -sf /share/apps/wrf/default/WPS/metgrid ./metgrid

Finally, all the files required for a successful run of 'metgrid.exe' have been provided. Like 'geogrid.exe', 'metgrid.exe' is an MPI parallel program that could be run in SLURM batch mode, but often runs for only a short time and can be run on ANDY's head node, as follows:

$metgrid.exe > metgrid.out 
$ls
FILE:2000-01-24_12  geogrid       GRIBFILE.AAF  GRIBFILE.AAM                       met_em.d02.2000-01-24_12:00:00.nc  metgrid.out
FILE:2000-01-24_18  geogrid.log   GRIBFILE.AAG  GRIBFILE.AAN                       met_em.d02.2000-01-24_18:00:00.nc  namelist.wps
FILE:2000-01-25_00  GRIBFILE.AAA  GRIBFILE.AAH  met_em.d01.2000-01-24_12:00:00.nc  met_em.d02.2000-01-25_00:00:00.nc  ungrib.log
FILE:2000-01-25_06  GRIBFILE.AAB  GRIBFILE.AAI  met_em.d01.2000-01-24_18:00:00.nc  met_em.d02.2000-01-25_06:00:00.nc  ungrib.out
FILE:2000-01-25_12  GRIBFILE.AAC  GRIBFILE.AAJ  met_em.d01.2000-01-25_00:00:00.nc  met_em.d02.2000-01-25_12:00:00.nc  Vtable
geo_em.d01.nc       GRIBFILE.AAD  GRIBFILE.AAK  met_em.d01.2000-01-25_06:00:00.nc  metgrid
geo_em.d02.nc       GRIBFILE.AAE  GRIBFILE.AAL  met_em.d01.2000-01-25_12:00:00.nc  metgrid.log

If you are on SALK (Cray XE6), you will have to run:

 aprun -n 1 metgrid.exe > metgrid.out

Note that 'metgrid.exe' is an MPI program and can be run in parallel. Long running WRF pre-processing jobs should be run either with more cores per node interactively as above (with -n 8, or -n 16) or as complete SLURM batch jobs, so that SALK's interactive nodes are not held by long running jobs.

Successful runs will produce an output file that includes:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  Successful completion of metgrid.  !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Note that the met files required by WRF are now present (see the 'ls' output above). At this point, the preprocessing phase of this WRF sample run is complete. We can move on to actually running this real (not ideal) WRF test case using the SLURM Pro batch scheduler in MPI parallel mode.

Running a WRF Real Case in Parallel Using SLURM

Our frame of reference now turns to running 'real.exe' and 'wrf.exe' in parallel on ANDY or SALK via SLURM Pro. As you perhaps noticed in walking through the preprocessing steps above, the preprocessing files are all installed in their own subdirectory (WPS) under the WRF installation tree root (/share/apps/wrf/default). The same is true for the files to run WRF. They reside under the WRF install root in the 'WRFV3' subdirectory.

Within this 'WRFV3' directory, the 'run' subdirectory contains the all common files needed for a 'wrf.exe' run except the 'met' files that were just created in the preprocessing section above and those that are produced by 'real.exe' which is run before 'wrf.exe' in real-data weather forecasts.

Note that the ARW version of WRF allows one to produce a number of different executables depending on the type of run that is needed. Here, we are relying on the fact that the 'em_real' version of the code has already been built. Currently, the CUNY HPCC has only compiled this version of WRF. Other versions can be compiled upon request. The subdirectory 'test' underneath the 'WRFV3' directory contains additional subdirectories for each type of WRF build (em_real, em_fire, em_hill2d_x, etc.).

To complete an MPI parallel run of this WRF real data case, a 'wrfv3/run' working directory for your run should be created, and it must be filled with the required files from the installation root's 'run' directory, as follows:

$cd $HOME/wrftest
$mkdir -p wrfv3/run
$cd wrfv3/run
$cp /share/apps/wrf/default/WRFV3/run/* .
$rm *.exe
$
$ls
CAM_ABS_DATA       ETAMPNEW_DATA.expanded_rain      LANDUSE.TBL            ozone_lat.formatted   RRTM_DATA_DBL      SOILPARM.TBL  URBPARM_UZE.TBL
CAM_AEROPT_DATA    ETAMPNEW_DATA.expanded_rain_DBL  MPTABLE.TBL            ozone_plev.formatted  RRTMG_LW_DATA      tr49t67       VEGPARM.TBL
co2_trans          GENPARM.TBL                      namelist.input         README.namelist       RRTMG_LW_DATA_DBL  tr49t85
ETAMPNEW_DATA      grib2map.tbl                     namelist.input.backup  README.tslist         RRTMG_SW_DATA      tr67t85
ETAMPNEW_DATA_DBL  gribmap.txt                      ozone.formatted        RRTM_DATA             RRTMG_SW_DATA_DBL  URBPARM.TBL
$

Note that the '*.exe' files were removed in the sequence above after the copy because they are already pointed to by ANDY's and SALK's system PATH variable.

Next, the 'met' files produced during the preprocessing phase above need to be copied or symbolically linked into the 'wrv3/run' directory.

$
$pwd
/home/guest/wrftest/wrfv3/run
$
$cp ../../wps/met_em* .
$ls
CAM_ABS_DATA                     grib2map.tbl                       namelist.input         RRTM_DATA_DBL      tr67t85
CAM_AEROPT_DATA                  gribmap.txt                        namelist.input.backup  RRTMG_LW_DATA      URBPARM.TBL
co2_trans                        LANDUSE.TBL                        ozone.formatted        RRTMG_LW_DATA_DBL  URBPARM_UZE.TBL
ETAMPNEW_DATA                    met_em.d01.2000-01-24_12:00:00.nc  ozone_lat.formatted    RRTMG_SW_DATA      VEGPARM.TBL
ETAMPNEW_DATA_DBL                met_em.d01.2000-01-25_12:00:00.nc  ozone_plev.formatted   RRTMG_SW_DATA_DBL
ETAMPNEW_DATA.expanded_rain      met_em.d02.2000-01-24_12:00:00.nc  README.namelist        SOILPARM.TBL
ETAMPNEW_DATA.expanded_rain_DBL  met_em.d02.2000-01-25_12:00:00.nc  README.tslist          tr49t67
GENPARM.TBL                      MPTABLE.TBL                        RRTM_DATA              tr49t85
$

The user may have edits to complete on the WRF 'namelist.input' file listed to craft the exact job they wish to run. The default namelist file copied into our working directory is in large part what is needed for this test run, but we will reduce the total simulation time (for the weather model, not the job) from from 12 to 1 hour by setting the 'run_hours' variable to 1.

At this point we are ready to submit a SLURM job. The SLURM Pro batch script below first runs 'real.exe' which creates the WRF input files 'wrfbdy_d01' and 'wrfinput_d01', and then runs 'wrf.exe' itself. Both executables are MPI parallel programs, and here they are both run on 16 processors. Here is the 'wrftest.job' SLURM script that will run on ANDY:

#!/bin/bash
#SBATCH --partition production_gdr
#SBATCH --job-name wrf_realem 
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
echo ""
hostname
echo ""

# Find out the contents of the SLURM node file which names the node
# allocated by SLURM
echo -n ">>>> SLURM Node file contains: "
echo ""
cat $SLURM_NODEFILE
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the pre-processing executable to run
echo ">>>> Runnning REAL.exe executable ..."
mpirun -np 16 /share/apps/wrf/default/WRFV3/run/real.exe
echo ">>>> Running WRF.exe executable ..."
mpirun -np 16 /share/apps/wrf/default/WRFV3/run/wrf.exe
echo ">>>> Finished WRF test run ..."

The full path to each executable is used for illustrative purposes, but both binaries (real.exe and wrf.exe) are in the WRF install tree run directory and would be picked up from the system PATH environmental variable without the full path. This job requests 16 resource chunks, each with 1 processor and 2880 MBytes of memory. This job asks to be run on the QDR InfiniBand (faster interconnect) side of the ANDY system. Details on the use and meaning of the SLURM option section of the job are available elsewhere in the CUNY HPCC Wiki.

To submit the job type:

qsub wrftest.job

A slightly difference version of the script is required to run the same job on SALK (the Cray):

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name wrf_realem 
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --o wrf_test16_O1.out




# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
echo ""
hostname
echo ""

# Find out the contents of the SLURM node file which names the node
# allocated by SLURM
echo -n ">>>> SLURM Node file contains: "
echo ""
cat $SLURM_NODEFILE
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Tune some MPICH parameters on the Cray
export MALLOC_MMAP_MAX=0
export MALLOC_TRIM_THRESHOLD=536870912
export MPICH_RANK_ORDER 3

# Just point to the pre-processing executable to run
echo ">>>> Runnning REAL.exe executable ..."
aprun -n 16  /share/apps/wrf/default/WRFV3/run/real.exe
echo ">>>> Running WRF.exe executable ..."
aprun -n 16  /share/apps/wrf/default/WRFV3/run/wrf.exe
echo ">>>> Finished WRF test run ..."

A successful run on either ANDY or SALK will produce an 'rsl.out' and 'rsl.error' file for each processor on which the job ran. So for this test case there will be 16 of each such files. The 'rsl.out' files reflect the run settings requested in the namelist file and then time-stamp the progress the job is making until the total simulation time is completed. The tail end of an 'rsl.out' file for a successful run should look like this:

:
:
v
Timing for main: time 2000-01-24_12:45:00 on domain   1:    0.06060 elapsed seconds.
Timing for main: time 2000-01-24_12:48:00 on domain   1:    0.06300 elapsed seconds.
Timing for main: time 2000-01-24_12:51:00 on domain   1:    0.06090 elapsed seconds.
Timing for main: time 2000-01-24_12:54:00 on domain   1:    0.06340 elapsed seconds.
Timing for main: time 2000-01-24_12:57:00 on domain   1:    0.06120 elapsed seconds.
Timing for main: time 2000-01-24_13:00:00 on domain   1:    0.06330 elapsed seconds.
 d01 2000-01-24_13:00:00 wrf: SUCCESS COMPLETE WRF
taskid: 0 hostname: gpute-2
taskid: 0 hostname: gpute-2

Post-Processing and Displaying WRF Results

Application Reference Guides

APPLICATIONS (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Application Installed Version Current Version Dependencies
ABINIT 8.2.2 9.6.2
ASE 3.18.0 Git commit f785806 Python 3.6+, NumPy, SciPy

Optional: Matplotlib, tkinter, Flask

G-PhoCS 1.3 1.3
GMP 6.1.2 6.1.2
GPAW 19.8.1 22.8
Gerris 20131206 20131206
HDF5 1.8.17/1.10.1 1.13.3
LAME 3.100 3.100
XML-Parser 2.44_01
abyss 1.3.7 / 1.5.7 2.3.5
adcirc 50_99_07 167f586
adda 1.2.0
anvio 2.0.2 7.1
armadillo 9.2.7 / 9.200.7 11.4.x
arpack 3.1.5 Now maintained at arpack-ng
augustus 3.2.2 3.5.0
autodock 4.2.6
autodock_vina 1.1.2 1.2.0
bamm 2.3.0
bamova 1.02
bamtools 2.30 / 2.5.2
basilisk v2019
bayescan 2.1
beast 1.8.4 / 2.4.6
beast2 2.6.0
bedops 2.4.40
bedtools 2.30.0
bigwig 011921
biobwa 0.7.17
bioperl 1.6.923
blast 2.3.0
bowtie2 2.2.6
bpp 4.4.0 / 4.4.1
cblas 1.20.11
cmaq 5.3.2
cmdstan 2.21.0
cp2k 2.5.1 / 3.0
cryoSPARC 2.11
diamond 0.7.9
doxygen 2014
dualSP 4.2 / 4.3_beta
eautils 02072017
eclipse_ptp 8.1.2 / 9.0
eigen 3.2.8
emacs 25.1
exabayes 1.5
examl 3.0.17
fdppdiv 20140728
fds_smv 6.1.11
ferret 6.96
freetype 2.5.2
fsplit 092214
ga 5.3
gamess-us 4.14.14
gamma 20111212
gap 4.6.5 / 4.7.5
gatk 3.6
gdc 1.0.1
gerris 09.30.16_EPYC / 12.06.13_BM / 12.06.13_EPYC / 12.06.13_PNZ
ghc 7.8.2
glog 0.3.3
gnuplot 4.6.3
gpaw 1.2.0
gperf 3.0.4
gpu-blast 2.2.28
gromacs 5.1.4 / 5.1.5 / 2020.1_mpi
help2man 1.47.3
hoomd 1.3.3
hpl 2.1
humann 0.7.0
ima2p 071717
ipyrad 0.7.13
itasser 4.2 / 5.0
kokkos 2.9.00
lammps 03.03.20 06.02.22
lmdb 20160810
ls-dyna 6.0.0 / 7.1.2 / 8.0.0 / 8.1.0 / 9.1.0 / 10.0.0
maker 2.31.8
mathematica 10.0
matlab R2022a
meme 4.11.2
mercurial 2.8
metaphlan2 2.0
migrate 4.2.14
minpath 1.2
mpest 1.4
mpfr 3.1.2 / 3.1.4
mrbayes 3.2.7a
msbayes 20140305
mumps 5.1.1
muscle 3.8.31
mutect 1.1.7
namd 2.9 / 2.12 / 2.13 / 2.14
nciplot 4.0
ncview 2.1.7
nek5000 19.0_epyc
netCDF 4.2 / 4.3.2 / 4.4.1 / 4.4.3 / 4.5.0
nmrpipe 20170909
nrlmol 10.0.4
nvtop 1.0.0_git
nwchem 6.6 / 6.8.1
octopus 4.1.1 / 4.1.2
openblas 2.8
opencv 3.1.2
openeye latest
openfoam 2.3.0 / 5.0
openmm 5.1
opensees 5921 / 5955
openshmem 1.0h
openwatcom 1.9
orca 5.0.3
pargap 1.3.5
perl 5.24.0
pfft 040415
phase 2.1.1
plasma 2.5 / 2.8
plumed 2.4
pyYAML 3.10
pyrad 3.0.66
qespresso 6.1
qiime 1.9.1_FULL_P2.7 / 1.9.1_FULL_P3.6 / 1.9.1 / 2.0
qiime2 2020.2
quantumEspresso 6.6_cpu
qvina
raxml 0.1.0_ng / 8.2.4
relion 1.3_gcc / 3.0 / 3.6_apollo_gnu / 3.6_apollo_intel_i7
repast 2.1.0
rtfbsDB 012021
sage 6.2 / 7.5.1 / 8.1
samtools 1.3.1 / 1.14
scons 2.3.0
singularity 2.4.6 / 3.1.1
snap 11.29.13 / 1.18_beta
sparskit 030515
splatche 2.1
sprint 1.0
sqlite 3.12.1
sra 2.5.2
stacks 1.23
stan 2.22.0
stata 12
stem 2.0
structurama 2.2.14
swig 4.0.1
tau 2.30
tcl 8.6.1
tensorflow r0.11
texinfo 6.1
tinker 6.2 / 8.8.3
tmux 2.5
trinity 2.1.0
usearch 5.2.236 / 6.0.307 / 6.1.544 / 7.0.1090 / 8.0.1517 / 8.0.1623 / 9.0.2124
util-linux 2.29
valgrind 3.10.1
vmd 1.9.2
vsearch 1.0.5 / 1.10.2 / 1.11.1
wrf 3.5.0 / 4.3.0
xmgrace 5.1.23 / 5.1.25
xplor 2.38 / 2.39

This is an index of available applications sorted by their academic relevance, as well as alphabetically.

For information about using modules to run your applications go to Using Modules To Run Your Applications.


Computational Physics and Computational Chemistry

Applications in this section use classical mechanics, quantum mechanics and thermodynamics and are applied in simulation studies of fundamental properties of atoms, molecules, and chemical reactions.

AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/amber

AUTODOCK

AutoDock is a suite of automated docking tools.

It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: autodock itself performs the docking of the ligand to a set of grids describing the target protein; autogrid pre-calculates these grids. More information about the software may be found at the autodock web-page [1]. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/autodock

CP2K

CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here CP2K.

DL_POLY

DL_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here DL_POLY.

GAMESS-US

GAMESS is a program for ab initio molecular quantum chemistry.

Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here GAMESS-US.

Gaussian09

Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at [[2]]. More information about our installation can be found here GAUSSIAN09.

GPAW

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here GPAW.

GROMACS

GROMACS (Groningen Machine for Chemical Simulations)

GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/gromacs Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

HONDO PLUS

Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf

More information about our installation can be found here HONDO PLUS.

HOOMD

Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

LAMMPS

LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [3] or from the full PDF manual here [4]. Information about our installation can be found here LAMMPS.

NAMD

NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [5].

The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here NAMD

NWChem

NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here NWChem

Octopus

Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional finite systems subject to time-dependent electromagnetic fields.

The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here OCTOPUS

OpenMM

OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

ORCA

The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here ORCA

VMD

VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the TCB's homepage.

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see this article for details) and start VMD as described above.

Computational Biology

ANVIO

Anvio is a tool for an analysis and visualization platform for ‘omics data. Anvio allows various types of workflows to be established. ANVIO

BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [6] and manual here [7]. Further information can also be found here BAMOVA.

BAYESCAN

BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

This program, BayeScan aims at identifying candidate loci under natural selection from

genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations.

More detailed information on Bayescan can be found at the web site here [8] and in the manual here [9]. More information about our installation can be found here BAYESCAN.

BEST

BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [10]. More information about our installation is available here BEST.

BEAST

BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [11]. More information about our installation can be found here BEAST.

BOWTIE2

BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [12]. Information about our installation can be found here BOWTIE2.

BPP2

BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

Additional information can be found at the download site here [13]. More information about our installation can be found here BPP2.


BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here BROWNIE.

CUFFLINKS

CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [14]. More information about our installation can be found here CUFFLINKS.

GARLI

GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [15]. More information about our installation can be found here GARLI.

MPFR

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

MRBAYES

MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here MRBAYES

msABC

msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here msABC

MSMS

MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here MSMS

POPABC

PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [16] More information about our installation can be found here POPABC

PHOENICS

PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here http://www.cham.co.uk.

Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the entire PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d_allpro, d_earth, d_enviro, d_photo, d_priv1, d_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at http://www.cham.co.uk/products/parallel.php. Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here PHOENICS

PHRAP-PHRED

PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [17], but a brief description of both, extracted from their manuals, follows.

PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here PHRAP-PHRED

PyRAD

Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here PyRAD

RAXML

Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here RAXML

Structurama

Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here STRUCTURAMA

Structure

The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [18]. Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program.

More information about our installation can be found here STRUCTURE

TOPHAT

TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here TOPHAT

Trinity

Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here TRINITY

VELVET

Velvet is a set of algorithms for de novo short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK.
More information about our installation can be found here VELVET

Computational Genomics, Proteonics, Microbiomics, Genetics

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: AUGUSTUS

CONSED

CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [19] CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [20] and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

/share/apps/consed/default

All the files in the distribution can be found there.

ExaML

ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light [1].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

[1] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

ExaBayes

ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

Availability:' PENZIAS Module file:exabayes

Citation:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

Use: The example SLURM script to run the FDPPDIV on PENZIAS is given below

#!/bin/bash
#SBATCH --partition production
#SBATCH --<name_of_job>
#SBATCH --nodes=1
#SBATCH --ntasks=2

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

mpirun -np 2 exabayes <input_file> > output_file

More information about application along with sample workflows are available on ExaBayes web site:

http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11

GENOMEPOP2

GenomePop2 is a newer and specialized version of the older program GenomePop.

GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s * h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [21]. More information about our installation can be found here GENOMEPOP2.

HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/humann2

IMa2

The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [22]. Information about our installation can be found here IMA2.

I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/itasser

LAMARC

LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [23], read this paper [24], and look at the documentation here [25]. More information about our installation can be found here LAMARC.

QIIME

QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here QIIME

USEARCH

USEARCH is a unique sequence analysis tool with thousands of users world-wide.

USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here USEARCH

VELVET

Velvet is a set of algorithms for de novo short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here VELVET.

VSEARCH

VSEARCH is a open source alternative to USEARCH.

VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.


Additional details on VSEARCH can be found at: this link

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

module load vsearch  

Math, Engineering, Computer Science

ADCIRC

ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [26] and read the ADCIRC manual [27]. Details on using SWAN with ADCIRC can be found here [28] and at the SWAN web site [29]. More information about use and set-up can be found here ADCIRC.

FDPPDIV

FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here FDPPDIV.

GAUSS

An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here GAUSS.

Hapsembler

Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with
module load hapsembler

HOPSPACK

HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th>Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u

The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -> HOPSACK.

LS-DYNA

From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [30]. All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:


/share/apps/lsdyna/default/[bin,examples]


More information about our installation can be found here LSDYNA.


Network Simulator-2 (NS2)

NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

It is installed on BOB at the CUNY HPCC. For more detailed information look here here. More information about our installation can be found here NS2

OpenFOAM

OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

More information about our installation can be found here OpenFOAM

OpenSEES

OpenSEES, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSEES is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

ParGAP

ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here ParGAP

SAGE

Sage can be used to study elementary and advanced, pure and applied mathematics.

This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here SAGE

WRF

The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here WRF

Economics, Business, Statistics, Analytics

R

R is a free software environment for statistical computing and graphics.

General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here R

R-devel

R is a language and environment for statistical computing and graphics. R-devel provides both core R userspace and all R development components.

Stata/MP

Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here STATA

SAS

SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

It enables the programmer to perform:

  • data entry, retrieval, management, and mining
  • report writing and graphics
  • statistical analysis
  • business planning, forecasting, and decision support
  • operations research and project management
  • quality improvement
  • applications development
  • data warehousing (extract, transform, load)
  • platform independent and remote computing

More information about our installation can be found here SAS

General Development Systems

Coming soon.

Tools, Libraries, Compilers

CGAL

The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/CGAL.

GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

  • Karle under /usr/bin/gnuplot
  • Andy under /share/apps/gnuplot/default/bin/gnuplot

Extensive documentation of gnuplot is available at the gnuplot's homepage.

JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at http://www.wolfram.com/learningcenter/

More information is available in this wiki, find it here MATHEMATICA.

MATLAB

The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

Typical uses include:

Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building

More information about our installation can be found here MATLAB

MET (Model Evaluation Tools)

MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well.

MET provides a variety of verification techniques, including:

  • Standard verification scores comparing gridded model data to point-based observations
  • Standard verification scores comparing gridded model data to gridded observations
  • Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
  • Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here MET

Migrate

Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian

inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here MIGRATE

Python

Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [31]

There are two supported versions installed on Andy system:

  • Python 3.1.3 located under /share/apps/python/3.1.3/bin
  • Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here PYTHON

SAMTOOLS

SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.

More information about our installation can be found here SAMTOOLS

Thrust Library (CUDA)

Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here THRUST

Xmgrace

Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page http://plasma-gate.weizmann.ac.il/Grace/

Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see this article for details) and start Xmgrace as described above.

Alphabetical List

A

ADCIRC

ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [32] and read the ADCIRC manual [33]. Details on using SWAN with ADCIRC can be found here [34] and at the SWAN web site [35]. More information about use and set-up can be found here ADCIRC.

AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/amber

ANVIO

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. ANVIO

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: AUGUSTUS

AUTODOCK

AutoDock is a suite of automated docking tools.

It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: autodock itself performs the docking of the ligand to a set of grids describing the target protein; autogrid pre-calculates these grids. More information about the software may be found at the autodock web-page [36]. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/autodock

B

BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [37] and manual here [38]. Further information can also be found here BAMOVA.

BAYESCAN

BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation-

specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations. More detailed information on Bayescan can be found at the web site here [39] and in the manual here [40]. More information about our installation can be found here BAYESCAN.

BEAST

BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [41]. More information about our installation can be found here BEAST.

BEST

BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [42]. More information about our installation is available here BEST.

BOWTIE2

BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [43]. Information about our installation can be found here BOWTIE2.

BPP2

BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

Additional information can be found at the download site here [44]. More information about our installation can be found here BPP2.

BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here BROWNIE.

C

CGAL

The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/CGAL.

CONSED

CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [45] CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [46] and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

/share/apps/consed/default

All the files in the distribution can be found there.

CP2K

CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here CP2K.

CUFFLINKS

CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [47]. More information about our installation can be found here CUFFLINKS.

D

DL_POLY

DL_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here DL_POLY.

E

ExaML

ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light [1].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

[1] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

ExaBayes

ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

Availability:' PENZIAS Module file:exabayes

Citation:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

Use: The example SLURM script to run the FDPPDIV on PENZIAS is given below

#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file

More information about application along with sample workflows are available on ExaBayes web site:

http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11

F

FDPPDIV

FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here FDPPDIV.

G

GAMESS-US

GAMESS is a program for ab initio molecular quantum chemistry.

Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here GAMESS-US.

GARLI

GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [48]. More information about our installation can be found here GARLI.

GAUSS

An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here GAUSS.

Gaussian09

Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at [[49]]. More information about our installation can be found here GAUSSIAN09.

GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

  • Karle under /usr/bin/gnuplot
  • Andy under /share/apps/gnuplot/default/bin/gnuplot

Extensive documentation of gnuplot is available at the gnuplot's homepage.

GenomePop2

GenomePop2 is a newer and specialized version of the older program GenomePop.

GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s * h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [50]. More information about our installation can be found here GENOMEPOP2.

GROMACS

GROMACS (Groningen Machine for Chemical Simulations)

GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/gromacs Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

GPAW

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here GPAW.

H

Hapsembler

Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with
module load hapsembler

HOOMD

Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [51]. More information about our installation can be found here HOOMD.

HOPSPACK

HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th>Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u

The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -> HOPSACK.

HONDO PLUS

Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf

More information about our installation can be found here HONDO PLUS.

HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/humann2

I

IMa2

The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [52]. Information about our installation can be found here IMA2.

I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/itasser

J

JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

L

LAMARC

LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [53], read this paper [54], and look at the documentation here [55]. More information about our installation can be found here LAMARC.

LAMMPS

LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [56] or from the full PDF manual here [57]. Information about our installation can be found here LAMMPS.

LS-DYNA

From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [58]. All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:


/share/apps/lsdyna/default/[bin,examples]


More information about our installation can be found here LSDYNA.


M

MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at http://www.wolfram.com/learningcenter/

More information is available in this wiki, find it here MATHEMATICA.

MATLAB

The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

Typical uses include:

Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building

More information about our installation can be found here MATLAB

MET (Model Evaluation Tools)

MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well.

MET provides a variety of verification techniques, including:

  • Standard verification scores comparing gridded model data to point-based observations
  • Standard verification scores comparing gridded model data to gridded observations
  • Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
  • Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here MET

Migrate

Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian

inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here MIGRATE

MPFR

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

MRBAYES

MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here MRBAYES

msABC

msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here msABC

MSMS

MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here MSMS

N

NAMD

NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [59].

The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here NAMD

Network Simulator-2 (NS2)

NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

It is installed on BOB at the CUNY HPCC. For more detailed information look here here. More information about our installation can be found here NS2

NWChem

NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here NWChem

O

Octopus

Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional finite systems subject to time-dependent electromagnetic fields.

The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here OCTOPUS

OpenMM

OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

OpenFOAM

OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

More information about our installation can be found here OpenFOAM

OpenSees

OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

ORCA

The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here ORCA

P

ParGAP

ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here ParGAP

POPABC

PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [60] More information about our installation can be found here POPABC

PHOENICS

PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here http://www.cham.co.uk.

Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the entire PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d_allpro, d_earth, d_enviro, d_photo, d_priv1, d_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at http://www.cham.co.uk/products/parallel.php. Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here PHOENICS

PHRAP-PHRED

PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [61], but a brief description of both, extracted from their manuals, follows.

PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here PHRAP-PHRED

PyRAD

Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here PyRAD

Python

Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [62]

There are two supported versions installed on Andy system:

  • Python 3.1.3 located under /share/apps/python/3.1.3/bin
  • Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here PYTHON

Installing Python packages

Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

module load python/2.7.13_anaconda
pip install guppy --user

For Python 3.6.0 in Anaconda build

module load python/3.6.0_anaconda
pip install guppy --user

For Python 2.7.13 in Miniconda

module load python/miniconda2
pip install guppy --user

For Python 3.6.0 in Miniconda 3

module load python/miniconda3
pip install guppy --user

To check if the package is properly installed type:

pip list | grep guppy

Q

QIIME

QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here QIIME

R

R

R is a free software environment for statistical computing and graphics.

General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here R

RAXML

Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here RAXML

S

SAGE

Sage can be used to study elementary and advanced, pure and applied mathematics.

This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here SAGE

SAMTOOLS

SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.

More information about our installation can be found here SAMTOOLS

SAS

SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

It enables the programmer to perform:

  • data entry, retrieval, management, and mining
  • report writing and graphics
  • statistical analysis
  • business planning, forecasting, and decision support
  • operations research and project management
  • quality improvement
  • applications development
  • data warehousing (extract, transform, load)
  • platform independent and remote computing

More information about our installation can be found here SAS

Stata/MP

Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here STATA

Structurama

Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here STRUCTURAMA

Structure

The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [63]. Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program.

More information about our installation can be found here STRUCTURE

T

Thrust Library (CUDA)

Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here THRUST

TOPHAT

TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here TOPHAT

Trinity

Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here TRINITY

U

USEARCH

USEARCH is a unique sequence analysis tool with thousands of users world-wide.

USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here USEARCH

V

VELVET

Velvet is a set of algorithms for de novo short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here VELVET.

VSEARCH

VSEARCH is a open source alternative to USEARCH.

VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.


Additional details on VSEARCH can be found at: this link

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

module load vsearch  

VMD

VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the TCB's homepage.

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see this article for details) and start VMD as described above.

W

WRF

The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here WRF

X

Xmgrace

Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page http://plasma-gate.weizmann.ac.il/Grace/

Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see this article for details) and start Xmgrace as described above.


Application Reference Guides

APPLICATIONS INDEX (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

The purpose of this page is to provide an all-inclusive, alphabetical list of available applications, tools, and libraries.

For information about using modules to run your applications go to Using Modules To Run Your Applications. For a list of applications sorted by academic relevance go to Academic Relevance.


A

ADCIRC

ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [1] and read the ADCIRC manual [2]. Details on using SWAN with ADCIRC can be found here [3] and at the SWAN web site [4]. More information about use and set-up can be found here ADCIRC.

AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/amber

ANVIO

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. ANVIO

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: AUGUSTUS

AUTODOCK

AutoDock is a suite of automated docking tools.

It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: autodock itself performs the docking of the ligand to a set of grids describing the target protein; autogrid pre-calculates these grids. More information about the software may be found at the autodock web-page [5]. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/autodock

B

BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [6] and manual here [7]. Further information can also be found here BAMOVA.

BAYESCAN

BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation-

specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations. More detailed information on Bayescan can be found at the web site here [8] and in the manual here [9]. More information about our installation can be found here BAYESCAN.

BEAST

BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [10]. More information about our installation can be found here BEAST.

BEST

BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [11]. More information about our installation is available here BEST.

BOWTIE2

BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [12]. Information about our installation can be found here BOWTIE2.

BPP2

BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

Additional information can be found at the download site here [13]. More information about our installation can be found here BPP2.

BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here BROWNIE.

C

CGAL

The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/CGAL.

CONSED

CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [14] CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [15] and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

/share/apps/consed/default

All the files in the distribution can be found there.

CP2K

CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here CP2K.

CUFFLINKS

CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [16]. More information about our installation can be found here CUFFLINKS.

D

DL_POLY

DL_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here DL_POLY.

E

ExaML

ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light [1].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

[1] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

ExaBayes

ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

Availability:' PENZIAS Module file:exabayes

Citation:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

Use: The example SLURM script to run the FDPPDIV on PENZIAS is given below

#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file

More information about application along with sample workflows are available on ExaBayes web site:

http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11

F

FDPPDIV

FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here FDPPDIV.

G

GAMESS-US

GAMESS is a program for ab initio molecular quantum chemistry.

Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here GAMESS-US.

GARLI

GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [17]. More information about our installation can be found here GARLI.

GAUSS

An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here GAUSS.

Gaussian09

Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at [[18]]. More information about our installation can be found here GAUSSIAN09.

GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

  • Karle under /usr/bin/gnuplot
  • Andy under /share/apps/gnuplot/default/bin/gnuplot

Extensive documentation of gnuplot is available at the gnuplot's homepage.

GenomePop2

GenomePop2 is a newer and specialized version of the older program GenomePop.

GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s * h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [19]. More information about our installation can be found here GENOMEPOP2.

GROMACS

GROMACS (Groningen Machine for Chemical Simulations)

GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/gromacs Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

GPAW

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here GPAW.

H

Hapsembler

Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with
module load hapsembler

HOOMD

Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [20]. More information about our installation can be found here HOOMD.

HOPSPACK

HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th>Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u

The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -> HOPSACK.

HONDO PLUS

Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf

More information about our installation can be found here HONDO PLUS.

HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/humann2

I

IMa2

The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [21]. Information about our installation can be found here IMA2.

I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/itasser

J

JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

L

LAMARC

LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [22], read this paper [23], and look at the documentation here [24]. More information about our installation can be found here LAMARC.

LAMMPS

LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [25] or from the full PDF manual here [26]. Information about our installation can be found here LAMMPS.

LS-DYNA

From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [27]. All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:


/share/apps/lsdyna/default/[bin,examples]


More information about our installation can be found here LSDYNA.


M

MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at http://www.wolfram.com/learningcenter/

More information is available in this wiki, find it here MATHEMATICA.

MATLAB

The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

Typical uses include:

Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building

More information about our installation can be found here MATLAB

MET (Model Evaluation Tools)

MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well.

MET provides a variety of verification techniques, including:

  • Standard verification scores comparing gridded model data to point-based observations
  • Standard verification scores comparing gridded model data to gridded observations
  • Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
  • Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here MET

Migrate

Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian

inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here MIGRATE

MPFR

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

MRBAYES

MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here MRBAYES

msABC

msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here msABC

MSMS

MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here MSMS

N

NAMD

NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [28].

The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here NAMD

Network Simulator-2 (NS2)

NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

It is installed on BOB at the CUNY HPCC. For more detailed information look here here. More information about our installation can be found here NS2

NWChem

NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here NWChem

O

Octopus

Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional finite systems subject to time-dependent electromagnetic fields.

The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here OCTOPUS

OpenMM

OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

OpenFOAM

OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

More information about our installation can be found here OpenFOAM

OpenSees

OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

ORCA

The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here ORCA

P

ParGAP

ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here ParGAP

POPABC

PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [29] More information about our installation can be found here POPABC

PHOENICS

PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here http://www.cham.co.uk.

Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the entire PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d_allpro, d_earth, d_enviro, d_photo, d_priv1, d_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at http://www.cham.co.uk/products/parallel.php. Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here PHOENICS

PHRAP-PHRED

PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [30], but a brief description of both, extracted from their manuals, follows.

PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here PHRAP-PHRED

PyRAD

Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here PyRAD

Python

Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [31]

There are two supported versions installed on Andy system:

  • Python 3.1.3 located under /share/apps/python/3.1.3/bin
  • Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here PYTHON

Installing Python packages

Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

module load python/2.7.13_anaconda
pip install guppy --user

For Python 3.6.0 in Anaconda build

module load python/3.6.0_anaconda
pip install guppy --user

For Python 2.7.13 in Miniconda

module load python/miniconda2
pip install guppy --user

For Python 3.6.0 in Miniconda 3

module load python/miniconda3
pip install guppy --user

To check if the package is properly installed type:

pip list | grep guppy

Q

QIIME

QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here QIIME

R

R

R is a free software environment for statistical computing and graphics.

General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here R

RAXML

Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here RAXML

S

SAGE

Sage can be used to study elementary and advanced, pure and applied mathematics.

This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here SAGE

SAMTOOLS

SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.

More information about our installation can be found here SAMTOOLS

SAS

SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

It enables the programmer to perform:

  • data entry, retrieval, management, and mining
  • report writing and graphics
  • statistical analysis
  • business planning, forecasting, and decision support
  • operations research and project management
  • quality improvement
  • applications development
  • data warehousing (extract, transform, load)
  • platform independent and remote computing

More information about our installation can be found here SAS

Stata/MP

Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here STATA

Structurama

Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here STRUCTURAMA

Structure

The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [32]. Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program.

More information about our installation can be found here STRUCTURE

T

Thrust Library (CUDA)

Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here THRUST

TOPHAT

TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here TOPHAT

Trinity

Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here TRINITY

U

USEARCH

USEARCH is a unique sequence analysis tool with thousands of users world-wide.

USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here USEARCH

V

VELVET

Velvet is a set of algorithms for de novo short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here VELVET.

VSEARCH

VSEARCH is a open source alternative to USEARCH.

VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.


Additional details on VSEARCH can be found at: this link

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

module load vsearch  

VMD

VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the TCB's homepage.

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see this article for details) and start VMD as described above.

W

WRF

The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here WRF

X

Xmgrace

Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page http://plasma-gate.weizmann.ac.il/Grace/

Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see this article for details) and start Xmgrace as described above.

Application Reference Guides

APPLICATIONS ENVIRONMENT (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Using Modules to Run your Applications

Modules is a software package that provides for the fast and convenient management of the components of a user's environment via modulefiles. When executed by the module command each module file fully configures the environment for its associated application or application group.

The modules configuration language allows for the management of applications environment conflicts and dependencies as well. The modules software allows users to load (and unload and reload) an application and/or system environment that is specific to their needs and avoids the need to set and manage a large, one-size-fits-all, generic environment for everyone at login.

Modules is the default approach to managing the user applications environment. CUNY HPCC system BOB, currently used almost entirely for Gaussian jobs will NOT be reconfigured with the modules software. Module version 3.2.9 is the default on the CUNY HPCC systems.

  • Modules, Learning by Example
    • Example 1, Basic Non-Cray System
    • Example 2, Less Basic From SALK (Cray System)

Using the module package users can easily set a collection of environmental variables that are specific to their compilation, parallel programming, and/or application requirements on the HPC Center's systems. The modules system also makes it convenient to advance or regress compiler, parallel programming, or applications versions when defaults are found to have bugs or performance issues. Whatever the task, the modules package can adjust the environment in an orderly way altering or setting of such environmental variables as PATH, MANPATH, LD_LIBRARY_PATH, etc. and providing some basic descriptive information about the application version being loaded and purpose of the modules file through the module help facility.

In addition to each application-specific modulefile, the module package functions through the use of a collection of sub-commands given after the initial module command itself as in "module list" for instance. All these module sub- command are described in detail in the module man page ("man module"), but a list of some of the more important and commonly used sub-commands is provided here:

Module sub-commands:

list
load
unload
switch
avail
show
help
purge

Modules, Learning by Example

The best way to explain how to use the modules package and its sub-command is to consider some simple examples of a typical workflows that involve modules. Here are two examples. Again, for a more complete description of the modules package please refer to "man module".

Example 1, Basic Non-Cray System

Consider the unmodified PATH variable right after login to one of the CUNY HPCC systems.

Without any custom or local environmental path settings, it would look something like this with no compiler, parallel programming model, or application-specific information in it:

username@service0:~> echo $PATH | tr -s ':' '\n'
/scratch/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin

We take note that there appears to be no path to the application that we are interested in running which is Wolfram's Mathematica in this example. Typing "which math" to find Mathematica ("math" is the command-line name for Mathematica) at the terminal yields:

 
username@service0:~>  which math
which: no math in (/scratch/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/c3/bin)

The Mathematica executable "math" is not found in the default PATH variabl defined by the system at login. Modules can be used to remedy this problem by adding the required path. To check which module files (if any) are already loaded into our environment, we are can type the "module list" sub-command at the terminal prompt:

username@service0:~> module list
No Modulefiles Currently Loaded.
username@service0:~>

No modules loaded. So the module file for Mathematica has not been loaded and it is no surprise that the Mathematica command-line "math" was not found. The next question is has the HPC Center installed Mathematica on this system and created a module file for it? To find this out we use the "module avail" sub-command:

username@service0:~> module avail
---------------------------- /share/apps/modules/default/modulefiles_UserApplications --------------------------------------

adf/2012.01(default)         cesm/1.0.3                   hoomd/0.9.2(default)         ncar/5.2.0_NCL(default)      pgi/12.3(default)
auto3dem/4.02(default)       cesm/1.0.4(default)          intel/12.1.3.293(default)    nwchem/6.1.1(default)        phoenics/2009(default)
autodock/4.2.3(default)      cuda/5.0(default)            ls-dyna/6.0.0(default)       octopus/4.0.0(default)       r/2.14.1(default)
beagle/0.2(default)          gromacs/4.5.5_32bit          mathematica/8.0.4(default)   openmpi/1.5.5_intel(default) wrf/3.4.0(default)
best/2.2L(default)           gromacs/4.5.5_64bit(default) matlab/R2012a(default)       openmpi/1.5.5_pgi

--------------------------------- /share/apps/modules/default/modulefiles_System -------------------------------------------

module-info   modules       version/3.2.9

The listing shows all available module files on this system, both those that are user-application related and those that are more system related. As shown in the output, these two types of module files are stored in different directories. Looking through the application list, there is a module for Mathematica version 8.0.4, which is also happens to be the default. On this system, the modules package has only just been installed, and therefore only one version of each application has been adapted to the module system and that version is the default.

The module file that is responsible for setting up correct environment needed to run Mathematica can now be loaded:

module load mathematica

Because there is only one version and it is the default, there is no need to include the version-specific extension to load it. To explicitly load version 8.0.4 (or any other specific and non-default version) one would use:

module load mathematica/8.0.4

After loading, the environmental PATH variable includes the path to Mathematica:

username@service0:~> echo $PATH | tr -s ':' '\n'
/scratch/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
/share/apps/mathematica/8.0.4/Executables

This can be verified by rerunning the "which math" command:

username@service0:~> which math
/share/apps/mathematica/8.0.4/Executables/math

Once the head or login node enviroment variables are properly set, one can create a SLURM script to run an Mathematica job on a compute node and ensure that the head or login node environment just set is passed on to the compute nodes by using the "#SLURM -V" option inside you SLURM script:

#!/bin/bash
#SLURM -N mmat8_serial1
#SLURM -q production
#SLURM -l select=1:ncpus=1:mem=1920mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Just point to the serial executable to run
echo ">>>> Begin Mathematica Serial Run ..."
echo ""
math -run <test_run.nb > output
echo ""
echo ">>>> End   Mathematica Serial Run ..."

Since the PATH variable in the login environment is now includes the location of the Mathematica executable and the "#SLURM -V" option ensures that this is passed to the compute node that the job is run on, the last line of the SLURM script will be executed without environment-related problems.

Example 2, Less Basic From SALK (Cray System)

As do all of the systems at the CUNY HPCC, the Cray SALK has multiple compiler, parallel programming

models, libraries, and applications. In addition, SALK uses a custom high-performance interconnect with its own libraries, has its own compiler suite and compiling system, and many other custom libraries. Setting up and/or tearing down a given environment that makes all this work correctly is more complicated that it is on the other systems at the HPC Center. Modules simplifies this process tremendously for the user.

Here is an example of how to swap out the default Cray compiler environment on SALK and swap in the compiler suite from the Portland Group including all the right MPI libraries from Cray. In this case, we swap in a new release of the Portland Group compilers, not the current default on the Cray, and the version of the NETCDF library that has been compiled with the Portland group.

Having logged into SALK, we determine what modules have been load by default with "module list":

user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) cce/8.0.7
 15) acml/5.1.0
 16) xt-libsci/11.1.00
 17) pmi/3.0.0-1.0000.8661.28.2807.gem
 18) rca/1.0.0-2.0400.31553.3.58.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-cray/4.0.46
 22) xtpe-mc8
 23) cray-mpich2/5.5.3
 24) SLURM/11.3.0.121723

From the list, we see that the Cray Programming Environment ("PrgEnv-cray/4.0.46") and the Cray Compiler environment are loaded ("cce/8.0.7") by default among other things (SLURM, MPICH, etc.). To unload these Cray modules and load in the Portland Group (PGI) equivalents we need to know the names of the PGI modules. The "module avail" command will tell us this:

user@salk:~> module avail
.
.
(several sections of output removed)
.
.
------------------------------------------------ /opt/modulefiles -----------------------------------------------------
Base-opts/1.0.2-1.0400.31284.2.2.gem(default)     gcc/4.1.2                                         SLURM/11.2.0.113417
PrgEnv-cray/3.1.61                                gcc/4.2.4                                         SLURM/11.3.0.121723(default)
PrgEnv-cray/4.0.46(default)                       gcc/4.4.2                                         petsc/3.1.08
PrgEnv-gnu/3.1.61                                 gcc/4.4.4                                         petsc/3.1.09
PrgEnv-gnu/4.0.46(default)                        gcc/4.5.1                                         petsc-complex/3.1.08
PrgEnv-intel/3.1.61                               gcc/4.5.2                                         petsc-complex/3.1.09
PrgEnv-intel/4.0.46(default)                      gcc/4.5.3                                         pgi/12.10
PrgEnv-pathscale/3.1.61                           gcc/4.6.1                                         pgi/12.3
PrgEnv-pathscale/4.0.46(default)                  gcc/4.7.1(default)                                pgi/12.6(default)
PrgEnv-pgi/3.1.61                                 hss-llm/6.0.0(default)                            pgi/12.8
PrgEnv-pgi/4.0.46(default)                        intel/12.1.1.256                                  wrf/3.3.0
acml/4.4.0                                        intel/12.1.4.319(default)                         wrf/3.4.0(default)
acml/5.1.0(default)                               intel/12.1.5.339                                  xt-asyncpe/5.01
admin-modules/1.0.2-1.0400.31284.2.2.gem(default) java/jdk1.6.0_24                                  xt-asyncpe/5.05
amber/12(default)                                 java/jdk1.7.0_03(default)                         xt-asyncpe/5.13(default)
cce/8.0.7(default)                                mazama/6.0.0(default)                             xt-libsci/11.0.00
chapel/1.4.0                                      modules/3.2.6.6(default)                          xt-libsci/11.0.04
chapel/1.5.0(default)                             mrnet/3.0.0(default)                              xt-libsci/11.1.00(default)
fftw/2.1.5.3                                      pathscale/4.0.12.1(default)                       xt-papi/4.2.0
fftw/3.2.2.1(default)                             pathscale/4.0.9                                   xt-papi/4.3.0(default)
fftw/3.3.0.1                                      SLURM/11.1.0.111761

There are several versions of the PGI compilers and two version of the PGI Programming Environment for the Cray (SALK). We are interested in loading PGI's 12.10 release (not the default which is "pgi/12.6") and the most current release of the PGI programming environment ("PrgEnv-pgi/4.0.46"), which is the default. The PGI programming environment for the Cray provides all the environmental settings required to use the PGI compilers on the Cray which includes a number of custom libraries.

Here is a series of module commands to unload the Cray defaults, load the PGI modules mentioned, and load version 4.2.0 of NETCDF compiled with the PGI compilers.

user@salk:~> module unload PrgEnv-cray
user@salk:~> module load PrgEnv-pgi
user@salk:~> module unload pgi
user@salk:~> module load pgi/12.10
user@salk:~> 
user@salk:~> module load netcdf/4.2.0
user@salk:~>
user@salk;~> cc -V
/opt/cray/xt-asyncpe/5.13/bin/cc: INFO: Compiling with CRAYPE_COMPILE_TARGET=native.

pgcc 12.10-0 64-bit target on x86-64 Linux 
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.

Several comments about this series of command are perhaps useful. First, the first three commands do not include version numbers and will therefore load or unload the current default versions. In the third line, we unload the default version of the PGI compiler (version 12.6) which is loaded with the rest of the PGI Programming Environment in the second line. We then load the non-default and more recent release from PGI, version 12.10 in the fourth line. Later, we load NETCDF version 4.2.0 which, because we have already loaded the PGI Programming Environment, will load the version of NETCDF 4.2.0 compiled with the PGI compilers. Finally, we check to see which compiler the Cray "cc" compiler wrapper actually invokes after this sequence of module commands. We see that indeed "pgcc" version 12.10 is being used.

We can confirm all this by again entering "module list". Notice that the Cray-related compiler modules have been replaced by those from PGI and that NETCDF version 4.2.0 has been loaded. We are ready to use new PGI compiler suite based environment. It is left as an exercise to the reader to figure out how the series of commands listed above could have been shortened by using the "module swap" sub- command.

user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) xtpe-mc8
 15) cray-mpich2/5.5.3
 16) SLURM/11.3.0.121723
 17) xt-libsci/11.1.00
 18) pmi/3.0.0-1.0000.8661.28.2807.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-pgi/4.0.46
 22) pgi/12.10
 23) hdf5/1.8.8
 24) netcdf/4.2.0

Applications

This an overview of the user-level HPC applications supported by the HPC Center staff for the benefit of the entire CUNY HPCC user community. A user can chose to install any application that they are licensed for on their own account, or appeal (based on general interest) to have it installed by HPC Center staff in the shared system directory (usually /shared/apps).

Not every user-level application is installed on every system. This is because system architectural differences, load-balancing considerations, licensing limitations, the time required to maintain them, and other factors, sometimes dictate otherwise. Here, we present the current CUNY HPCC user-level application catalogue and note the system on which each application is installed and licensed to run.

We encourage the CUNY HPCC community to help the HPC Center staff create a applications catalogue that is closely tuned to the needs of the community. As such, we hope that users will solicit staff-help in growing our application install base to suite the needs of the community whatever the application discipline (CAE, CFD, COMPCHEM, QCD, BIOINFORMATICS, etc.). The CUNY HPCC will do the best to try and satisfy reasonable software requests.
Software requests must be submitted by Supervisors and/or PI's only. Users can install applications in their own home directory as needed.

Unless otherwise noted, all applications built locally were built using our default Intel-OpenMPI applications stack. Furthermore, the SLURM Pro job submission scripts below are promised to work (at the time this section of the Wiki was written), but the number of processors (cores), memory, and process placement defined in the example scripts is not necessarily optimal for wall-clock or cpu-time performance. The user should use their knowledge of the application, the system, and the benefit of their experience to choose the optimal combination of processors and memory for their scripts. Details on how to make full use of the SLURM Pro job submission options are covered in the SLURM Pro section below.

ADCIRC

ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [1] and read the ADCIRC manual [2]. Details on using SWAN with ADCIRC can be found here [3] and at the SWAN web site [4]. More information about use and set-up can be found here ADCIRC.

AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/amber

ANVIO

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. ANVIO

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: AUGUSTUS

AUTODOCK

AutoDock is a suite of automated docking tools.

It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: autodock itself performs the docking of the ligand to a set of grids describing the target protein; autogrid pre-calculates these grids. More information about the software may be found at the autodock web-page [5]. Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/autodock

BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [6] and manual here [7]. Further information can also be found here BAMOVA.

BAYESCAN

BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

This program, BayeScan aims at identifying candidate loci under natural selection from

genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations.

More detailed information on Bayescan can be found at the web site here [8] and in the manual here [9]. More information about our installation can be found here BAYESCAN.

BEAST

BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [10]. More information about our installation can be found here BEAST.

BEST

BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [11]. More information about our installation is available here BEST.

BOWTIE2

BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [12]. Information about our installation can be found here BOWTIE2.

BPP2

BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

Additional information can be found at the download site here [13]. More information about our installation can be found here BPP2.

BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here BROWNIE.

CGAL

The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/CGAL.

CONSED

CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [14] CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [15] and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

/share/apps/consed/default

All the files in the distribution can be found there.

CP2K

CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here CP2K.

CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [16]. More information about our installation can be found here CUFFLINKS.

DL_POLY

DL_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here DL_POLY.

ExaML

ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light [1].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

[1] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

ExaBayes

ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

Availability:' PENZIAS Module file:exabayes

Citation:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

Use: The example SLURM script to run the FDPPDIV on PENZIAS is given below

#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file

More information about application along with sample workflows are available on ExaBayes web site:

http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11

FDPPDIV

FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here FDPPDIV.

GAMESS-US

GAMESS is a program for ab initio molecular quantum chemistry.

Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here GAMESS-US.

GARLI

GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [17]. More information about our installation can be found here GARLI.

GAUSS

An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY and BOB. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here GAUSS.

Gaussian09

Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

Gaussian09 is available for general use on Andy. The Gaussian User Guide can be found here at [[18]]. More information about our installation can be found here GAUSSIAN09.

GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

  • Karle under /usr/bin/gnuplot
  • Andy under /share/apps/gnuplot/default/bin/gnuplot
  • Bob under /share/apps/gnuplot/default/bin/gnuplot

Extensive documentation of gnuplot is available at the gnuplot's homepage.

GENOMEPOP2

GenomePop2 is a newer and specialized version of the older program GenomePop.

GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s * h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [19]. More information about our installation can be found here GENOMEPOP2.

GROMACS

GROMACS (Groningen Machine for Chemical Simulations)

GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/gromacs Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

GPAW

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here GPAW.

Hapsembler

Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with

module load hapsembler

HOOMD

Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [20]. More information about our installation can be found here HOOMD.

HOPSPACK

HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th>Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u

The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -> HOPSACK.

HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network).

Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/humann2


IMa2

The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [21]. Information about our installation can be found here IMA2.

I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database.

Details and submission scripts can be found at: http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications_Environment/itasser


JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments.

Julia is installed on Penzias.

HONDO PLUS

Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf

More information about our installation can be found here HONDO PLUS.

LAMARC

LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [22], read this paper [23], and look at the documentation here [24]. More information about our installation can be found here LAMARC.

LAMMPS

LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [25] or from the full PDF manual here [26]. Information about our installation can be found here LAMMPS.

LS-DYNA

From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [27]. All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:


/share/apps/lsdyna/default/[bin,examples]


More information about our installation can be found here LSDYNA.


MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities. Mathematica version 10.0 is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at http://www.wolfram.com/learningcenter/

More information is available in this wiki, find it here MATHEMATICA.

MATLAB

The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

Typical uses include:

Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building

More information about our installation can be found here MATLAB

Migrate

Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian

inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here MIGRATE

MPFR

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

MRBAYES

MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here MRBAYES

msABC

msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here msABC

MSMS

MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here MSMS

NAMD

NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [28].

The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here NAMD

Network Simulator-2 (NS2)

NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

It is installed on BOB at the CUNY HPCC. For more detailed information look here here. More information about our installation can be found here NS2

NWChem

NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here NWChem

Octopus

Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional finite systems subject to time-dependent electromagnetic fields.

The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here OCTOPUS

OpenMM

OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

OpenFOAM

OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

More information about our installation can be found here OpenFOAM

OpenSees

OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

ORCA

The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here ORCA

ParGAP

ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here ParGAP

POPABC

PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [29] More information about our installation can be found here POPABC

PHOENICS

PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here http://www.cham.co.uk.

Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the entire PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d_allpro, d_earth, d_enviro, d_photo, d_priv1, d_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at http://www.cham.co.uk/products/parallel.php. Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here PHOENICS

PHRAP-PHRED

PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [30], but a brief description of both, extracted from their manuals, follows.

PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here PHRAP-PHRED

PyRAD

Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here PyRAD

Python

Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [31]

There are two supported versions installed on Andy system:

  • Python 3.1.3 located under /share/apps/python/3.1.3/bin
  • Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here PYTHON

Installing Python packages

Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

module load python/2.7.13_anaconda
pip install guppy --user

For Python 3.6.0 in Anaconda build

module load python/3.6.0_anaconda
pip install guppy --user

For Python 2.7.13 in Miniconda

module load python/miniconda2
pip install guppy --user

For Python 3.6.0 in Miniconda 3

module load python/miniconda3
pip install guppy --user

To check if the package is properly installed type:

pip list | grep guppy

QIIME

QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here QIIME

R

R is a free software environment for statistical computing and graphics.

General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here R

RAXML

Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here RAXML

SAGE

Sage can be used to study elementary and advanced, pure and applied mathematics.

This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here SAGE

SAMTOOLS

SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.

More information about our installation can be found here SAMTOOLS

SAS

SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

It enables the programmer to perform:

  • data entry, retrieval, management, and mining
  • report writing and graphics
  • statistical analysis
  • business planning, forecasting, and decision support
  • operations research and project management
  • quality improvement
  • applications development
  • data warehousing (extract, transform, load)
  • platform independent and remote computing

More information about our installation can be found here SAS

Stata/MP

Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here STATA

Structurama

Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here STRUCTURAMA

Structure

The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [32]. Structure is installed on BOB at the CUNY HPCC. Structure is a serial program.

More information about our installation can be found here STRUCTURE

Thrust Library (CUDA)

Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here THRUST

TOPHAT

TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here TOPHAT

Trinity

Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here TRINITY

USEARCH

USEARCH is a unique sequence analysis tool with thousands of users world-wide.

USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here USEARCH

VELVET

Velvet is a set of algorithms for de novo short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK.
More information about our installation can be found here VELVET

VSEARCH

VSEARCH is a open source alternative to USEARCH.

VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.


Additional details on VSEARCH can be found at: this link

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

module load vsearch  

VMD

VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the TCB's homepage.

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see this article for details) and start VMD as described above.

WRF

The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here WRF

Xmgrace

Grace is a WYSIWYG 2D plotting tool for the X Window System and M*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page http://plasma-gate.weizmann.ac.il/Grace/

Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see this article for details) and start Xmgrace as described above.

MET (Model Evaluation Tools)

MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well.

MET provides a variety of verification techniques, including:

  • Standard verification scores comparing gridded model data to point-based observations
  • Standard verification scores comparing gridded model data to gridded observations
  • Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
  • Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here MET

Application Reference Guides

MODULES, MANAGING YOUR CUNY HPCC ENVIRONMENT (Reference Guide)

These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.

Modules, Managing Your CUNY HPCC Environment

Modules is a software package that provides for the fast and convenient management of the components of a user's environment via modulefiles. When executed by the module command each module file fully configures the environment for its associated application or application group. The modules configuration language allows for the management of applications environment conflicts and dependencies as well. The modules software allows users to load (and unload and reload) an application and/or system environment that is specific to their needs and avoids the need to set and manage a large, one-size-fits-all, generic environment for everyone at login.

Modules has been the default approach to managing the user applications environment on SALK, the CUNY HPCC Cray, since its installation in 2011. By the end of 2012, all non-legacy and future systems at the CUNY HPCC will use modules to manage the user environment instead of generic environmental initialization files stored in /etc/profile.d. The only system that will need to transition from this older approach to the all-modules approach will be ANDY. All new systems, such as Penzias and the new SGI UV2, will come up as modules-based when they are ready for production use. The legacy system, BOB, is currently used almost entirely for Gaussian jobs will NOT be reconfigured with the modules software. Module version 3.2.6 is installed on SALK, and version 3.2.9 will be the default on the other HPC Center systems.

Using the module package users can easily set a collection of environmental variables that are specific to their compilation, parallel programming, and/or application requirements on the HPC Center's systems. The modules system also makes it convenient to advance or regress compiler, parallel programming, or applications versions when defaults are found to have bugs or performance issues. Whatever the task, the modules package can adjust the environment in an orderly way altering or setting of such environmental variables as PATH, MANPATH, LD_LIBRARY_PATH, etc. and providing some basic descriptive information about the application version being loaded and purpose of the modules file through the module help facility.

In addition to each application-specific modulefile, the module package functions through the use of a collection of sub-commands given after the initial module command itself as in "module list" for instance. All these module sub- command are described in detail in the module man page ("man module"), but a list of some of the more important and commonly used sub-commands is provided here:

Module sub-commands:

list
load
unload
switch
avail
show
help
purge

Modules, Learning by Example

The best way to explain how to use the modules package and its sub-command is to consider some simple examples of a typical workflows that involve modules. Here are two examples. Again, for a more complete description of the modules package please refer to "man module".

Example 1, Basic Non-Cray System

Consider the unmodified PATH variable right after login to one of the CUNY HPCC systems. Without any custom or local environmental path settings, it would look something like this with no compiler, parallel programming model, or application-specific information in it:

username@service0:~> echo $PATH | tr -s ':' '\n'
/home/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin

We take note that there appears to be no path to the application that we are interested in running which is Wolfram's Mathematica in this example. Typing "which math" to find Mathematica ("math" is the command-line name for Mathematica) at the terminal yields:

 
username@service0:~>  which math
which: no math in (/home/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/c3/bin)

The Mathematica executable "math" is not found in the default PATH variabl defined by the system at login. Modules can be used to remedy this problem by adding the required path. To check which module files (if any) are already loaded into our environment, we are can type the "module list" sub-command at the terminal prompt:

username@service0:~> module list
No Modulefiles Currently Loaded.
username@service0:~>

No modules loaded. So the module file for Mathematica has not been loaded and it is no surprise that the Mathematica command-line "math" was not found. The next question is has the HPC Center installed Mathematica on this system and created a module file for it? To find this out we use the "module avail" sub-command:

username@service0:~> module avail
---------------------------- /share/apps/modules/default/modulefiles_UserApplications --------------------------------------

adf/2012.01(default)         cesm/1.0.3                   hoomd/0.9.2(default)         ncar/5.2.0_NCL(default)      pgi/12.3(default)
auto3dem/4.02(default)       cesm/1.0.4(default)          intel/12.1.3.293(default)    nwchem/6.1.1(default)        phoenics/2009(default)
autodock/4.2.3(default)      cuda/5.0(default)            ls-dyna/6.0.0(default)       octopus/4.0.0(default)       r/2.14.1(default)
beagle/0.2(default)          gromacs/4.5.5_32bit          mathematica/8.0.4(default)   openmpi/1.5.5_intel(default) wrf/3.4.0(default)
best/2.2L(default)           gromacs/4.5.5_64bit(default) matlab/R2012a(default)       openmpi/1.5.5_pgi

--------------------------------- /share/apps/modules/default/modulefiles_System -------------------------------------------

module-info   modules       version/3.2.9

The listing shows all available module files on this system, both those that are user-application related and those that are more system related. As shown in the output, these two types of module files are stored in different directories. Looking through the application list, there is a module for Mathematica version 8.0.4, which is also happens to be the default. On this system, the modules package has only just been installed, and therefore only one version of each application has been adapted to the module system and that version is the default.

The module file that is responsible for setting up correct environment needed to run Mathematica can now be loaded:

module load mathematica

Because there is only one version and it is the default, there is no need to include the version-specific extension to load it. To explicitly load version 8.0.4 (or any other specific and non-default version) one would use:

module load mathematica/8.0.4

After loading, the environmental PATH variable includes the path to Mathematica:

username@service0:~> echo $PATH | tr -s ':' '\n'
/home/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
/share/apps/mathematica/8.0.4/Executables

This can be verified by rerunning the "which math" command:

username@service0:~> which math
/share/apps/mathematica/8.0.4/Executables/math

Once the head or login node enviroment variables are properly set, one can create a SLURM script to run an Mathematica job on a compute node and ensure that the head or login node environment just set is passed on to the compute nodes by using the "#SLURM -V" option inside you SLURM script:

#!/bin/bash
#SLURM -N mmat8_serial1
#SLURM -q production
#SLURM -l select=1:ncpus=1:mem=1920mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Just point to the serial executable to run
echo ">>>> Begin Mathematica Serial Run ..."
echo ""
math -run <test_run.nb > output
echo ""
echo ">>>> End   Mathematica Serial Run ..."

Since the PATH variable in the login environment is now includes the location of the Mathematica executable and the "#SLURM -V" option ensures that this is passed to the compute node that the job is run on, the last line of the SLURM script will be executed without environment-related problems.

Example 2, Less Basic From SALK (Cray System)

As do all of the systems at the CUNY HPCC, the Cray SALK has multiple compiler, parallel programming models, libraries, and applications. In addition, SALK uses a custom high-performance interconnect with its own libraries, has its own compiler suite and compiling system, and many other custom libraries. Setting up and/or tearing down a given environment that makes all this work correctly is more complicated that it is on the other systems at the HPC Center. Modules simplifies this process tremendously for the user.

Here is an example of how to swap out the default Cray compiler environment on SALK and swap in the compiler suite from the Portland Group including all the right MPI libraries from Cray. In this case, we swap in a new release of the Portland Group compilers, not the current default on the Cray, and the version of the NETCDF library that has been compiled with the Portland group.

Having logged into SALK, we determine what modules have been load by default with "module list":

user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) cce/8.0.7
 15) acml/5.1.0
 16) xt-libsci/11.1.00
 17) pmi/3.0.0-1.0000.8661.28.2807.gem
 18) rca/1.0.0-2.0400.31553.3.58.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-cray/4.0.46
 22) xtpe-mc8
 23) cray-mpich2/5.5.3
 24) SLURM/11.3.0.121723

From the list, we see that the Cray Programming Environment ("PrgEnv-cray/4.0.46") and the Cray Compiler environment are loaded ("cce/8.0.7") by default among other things (SLURM, MPICH, etc.). To unload these Cray modules and load in the Portland Group (PGI) equivalents we need to know the names of the PGI modules. The "module avail" command will tell us this:

user@salk:~> module avail
.
.
(several sections of output removed)
.
.
------------------------------------------------ /opt/modulefiles -----------------------------------------------------
Base-opts/1.0.2-1.0400.31284.2.2.gem(default)     gcc/4.1.2                                         SLURM/11.2.0.113417
PrgEnv-cray/3.1.61                                gcc/4.2.4                                         SLURM/11.3.0.121723(default)
PrgEnv-cray/4.0.46(default)                       gcc/4.4.2                                         petsc/3.1.08
PrgEnv-gnu/3.1.61                                 gcc/4.4.4                                         petsc/3.1.09
PrgEnv-gnu/4.0.46(default)                        gcc/4.5.1                                         petsc-complex/3.1.08
PrgEnv-intel/3.1.61                               gcc/4.5.2                                         petsc-complex/3.1.09
PrgEnv-intel/4.0.46(default)                      gcc/4.5.3                                         pgi/12.10
PrgEnv-pathscale/3.1.61                           gcc/4.6.1                                         pgi/12.3
PrgEnv-pathscale/4.0.46(default)                  gcc/4.7.1(default)                                pgi/12.6(default)
PrgEnv-pgi/3.1.61                                 hss-llm/6.0.0(default)                            pgi/12.8
PrgEnv-pgi/4.0.46(default)                        intel/12.1.1.256                                  wrf/3.3.0
acml/4.4.0                                        intel/12.1.4.319(default)                         wrf/3.4.0(default)
acml/5.1.0(default)                               intel/12.1.5.339                                  xt-asyncpe/5.01
admin-modules/1.0.2-1.0400.31284.2.2.gem(default) java/jdk1.6.0_24                                  xt-asyncpe/5.05
amber/12(default)                                 java/jdk1.7.0_03(default)                         xt-asyncpe/5.13(default)
cce/8.0.7(default)                                mazama/6.0.0(default)                             xt-libsci/11.0.00
chapel/1.4.0                                      modules/3.2.6.6(default)                          xt-libsci/11.0.04
chapel/1.5.0(default)                             mrnet/3.0.0(default)                              xt-libsci/11.1.00(default)
fftw/2.1.5.3                                      pathscale/4.0.12.1(default)                       xt-papi/4.2.0
fftw/3.2.2.1(default)                             pathscale/4.0.9                                   xt-papi/4.3.0(default)
fftw/3.3.0.1                                      SLURM/11.1.0.111761

There are several versions of the PGI compilers and two version of the PGI Programming Environment for the Cray (SALK). We are interested in loading PGI's 12.10 release (not the default which is "pgi/12.6") and the most current release of the PGI programming environment ("PrgEnv-pgi/4.0.46"), which is the default. The PGI programming environment for the Cray provides all the environmental settings required to use the PGI compilers on the Cray which includes a number of custom libraries.

Here is a series of module commands to unload the Cray defaults, load the PGI modules mentioned, and load version 4.2.0 of NETCDF compiled with the PGI compilers.

user@salk:~> module unload PrgEnv-cray
user@salk:~> module load PrgEnv-pgi
user@salk:~> module unload pgi
user@salk:~> module load pgi/12.10
user@salk:~> 
user@salk:~> module load netcdf/4.2.0
user@salk:~>
user@salk;~> cc -V
/opt/cray/xt-asyncpe/5.13/bin/cc: INFO: Compiling with CRAYPE_COMPILE_TARGET=native.

pgcc 12.10-0 64-bit target on x86-64 Linux 
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.

Several comments about this series of command are perhaps useful. First, the first three commands do not include version numbers and will therefore load or unload the current default versions. In the third line, we unload the default version of the PGI compiler (version 12.6) which is loaded with the rest of the PGI Programming Environment in the second line. We then load the non-default and more recent release from PGI, version 12.10 in the fourth line. Later, we load NETCDF version 4.2.0 which, because we have already loaded the PGI Programming Environment, will load the version of NETCDF 4.2.0 compiled with the PGI compilers. Finally, we check to see which compiler the Cray "cc" compiler wrapper actually invokes after this sequence of module commands. We see that indeed "pgcc" version 12.10 is being used.

We can confirm all this by again entering "module list". Notice that the Cray-related compiler modules have been replaced by those from PGI and that NETCDF version 4.2.0 has been loaded. We are ready to use new PGI compiler suite based environment. It is left as an exercise to the reader to figure out how the series of commands listed above could have been shortened by using the "module swap" sub- command.

user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) xtpe-mc8
 15) cray-mpich2/5.5.3
 16) SLURM/11.3.0.121723
 17) xt-libsci/11.1.00
 18) pmi/3.0.0-1.0000.8661.28.2807.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-pgi/4.0.46
 22) pgi/12.10
 23) hdf5/1.8.8
 24) netcdf/4.2.0