Software

Most software on the Hoffman2 Cluster is available via environmental modules. To list every application available via modules, enter at the terminal prompt:

$ module spider

To search for a particular application, and see which modules to load to use it:

$ module spider <app-name>

or:

$ modules_lookup -m <app-name>

or:

$ h2 modules <app-name>

Some modules are visible only after the module they depend on is loaded, so module avail may not list them: see How to find which applications are available via environmental modules.

Some applications are available as python or conda packages, which are not listed as modules.

Each application below says whether it is available on the Slurm (production) cluster, on the Grid Engine (legacy) cluster, or on both. Applications are still being installed on the Slurm cluster: if one you need is available only on the Grid Engine cluster, please request it by opening a ticket. To request or suggest software installation or updates, please submit via our helpdesk. Only software/applications that is required by multiple groups may be centrally installed or you and your group will receive given guidance on how to perform software installation in your $HOME or, if applicable, in your group project directory.

Available software on the Hoffman2 Cluster organized by category is discussed below, for faster navigation use the menu (which, depending on your device, might be located in the sidebar or accessible via the collapsed menu icon: ≡):

Software/Applications categories

Productivity

Development

Discipline

Hoffman2 Cluster tools

Compilers

Bioinformatics and biostatistics

Environmental modules

Debuggers

Chemistry and chemical engineering

Containers

Build tools

Engineering and mathematics

Editors

Programming languages

Physics

Programming libraries

Statistics

Visualization and rendering

Miscellaneous

Jupyter Notebooks/Lab

Hoffman2 Cluster tools

A collection of commands designed to show the status of specific user attributes on the cluster. The commands are designed to be issued from a terminal connected to the Hoffman2 Cluster.

Tools on the Slurm (production) cluster

h2

job.q

modules_lookup

myjobs

myquota

shownews

CLUSTER_AT_A_GLANCE

GPU_NODES_AT_A_GLANCE(_WITH_USED_GPUs)

The following tools work on the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu. Except for modules_lookup, myquota and shownews, which work on both clusters, they are not available on the Slurm cluster:

Tools on the Grid Engine (legacy) cluster

check_usage

modules_lookup

myquota

myresources

set_qrsh_env

shownews

webshare

CLUSTER_AT_A_GLANCE

GPU_NODES_AT_A_GLANCE(_WITH_USED_GPUs)

h2

h2 is a command line tool for the Slurm (production) cluster that answers common questions about your accounts, jobs, GPUs and software, and checks and submits job scripts. It is installed as /u/local/bin/h2 and is not available on the Grid Engine (legacy) cluster. Its output is formatted as Markdown, so it is readable in a terminal and can also be pasted into a ticket or an email.

To see all its commands, from a terminal connected to the Hoffman2 Cluster issue:

$ h2 --help

and, for the options of one command (e.g. recent):

$ h2 recent -h
h2 commands

Command

What it does

h2 whoami

Your Slurm accounts, where the jobs of each account run, whether you can use --qos=highp, your per-user limits and your current jobs. See Accounts, QOS and where your jobs run.

h2 gpus

Free and total GPUs by model and by node, with the -C tag that selects each model. See Requesting GPUs with Slurm.

h2 modules <name>

The versions of an application installed as modules, and the modules to load first. See How to find which applications are available via environmental modules.

h2 validate <script>

Checks a job script against the cluster rules (e.g. a missing runtime, memory or account, a runtime over the limit, $SCRATCH in an #SBATCH line, Grid Engine syntax, modules that don’t exist).

h2 submit <script>

Runs h2 validate and, if the script has no errors, submits it with sbatch.

h2 convert-uge <file>

Translates a Grid Engine (#$) job script to Slurm and prints the result. See Converting Grid Engine job scripts to Slurm.

h2 why-pending <jobid>

Explains why a job is still pending: the reason, its place in the queue, and whether any node can run it.

h2 diagnose <jobid>

For a job that failed or behaved unexpectedly: the job’s details, the likely cause and how to fix it, and the end of its output.

h2 job <jobid>

A job’s full accounting record: how it was submitted, its timing and its steps.

h2 recent

Your recent jobs (by default, the last 3 days). Options include --days N and --state (e.g. --state FAILED,TIMEOUT).

h2 usage

CPU and GPU hours used, by user, account and GPU model, with queue waits (--account, --days, --start/--end). The hours are what jobs requested, not what they used.

h2 node <node>

One compute node as Slurm sees it: its state, the CPUs, memory and GPUs in use, and its jobs.

h2 pi <name>

One PI group’s partition: its nodes, the jobs running on them (the group’s highp jobs or other groups’ shared jobs) and its pending jobs.

h2 setup-agent

For AI coding assistants (Claude Code, Codex, OpenCode): links the Hoffman2 Cluster skill, which describes how to use the cluster, into the assistant’s skill directory. h2 remove-agent undoes it.

For example, to see which modules you need to load to use amber:

$ h2 modules amber
## Modules matching 'amber'

- amber/24_GPU: module load cuda/12.8; module load amber/24_GPU

and to check, and then submit, a job script:

$ h2 validate myjob.sh
$ h2 submit myjob.sh

h2 submit submits the job right away if h2 validate finds no errors, without asking. It clears the SLURM_* environment variables before calling sbatch, so a job submitted from inside an interactive session doesn’t inherit that session’s settings. From a login node, sbatch myjob.sh works as well.

Problems with these instructions? Please send comments here.

modules_lookup

modules_lookup finds every version of an application installed as an environmental module and prints the module load commands needed to use it, including any modules that must be loaded first. It works on both the Slurm (production) and the Grid Engine (legacy) clusters, and lists the modules of the cluster you run it on. On the Slurm cluster, h2 modules and job.q use it to look up modules.

To look up an application, from a terminal connected to the Hoffman2 Cluster issue modules_lookup -m followed by its name (not a name and version). For example, on the Slurm cluster:

$ modules_lookup -m amber

   Looking for application = amber

    amber/24_GPU    via: module load cuda/12.8; module load amber/24_GPU

Run the commands after via: in the order shown: here module load cuda/12.8 first, because amber/24_GPU is visible only after cuda/12.8 is loaded (see How to find which applications are available via environmental modules). Application names are case sensitive (e.g. R, matlab). If the application isn’t installed as a module, modules_lookup says so; it may then be available as a Python or conda package, or as a container.

Its options are:

$ modules_lookup -m <name>   # every version of <name>, and how to load it
$ modules_lookup -a          # every module installed (slow; on the Slurm cluster, module spider is faster)
$ modules_lookup -h          # help

Problems with these instructions? Please send comments here.

myjobs

myjobs (or myjob) displays your running and pending jobs, or those of another user given with -u. On the Slurm (production) cluster it runs squeue -u <username>; on the Grid Engine (legacy) cluster it is a wrapper around qstat. To see its options, from a terminal connected to the Hoffman2 Cluster issue the command:

$ myjobs -h
Usage: /u/local/bin/myjobs [-u username]
  -u username  Specify the user to check (defaults to current user: joebruin)
  -h           Show this help message

where username is any valid username on the cluster. For more ways to look at your Slurm jobs, see Monitoring and canceling Slurm jobs.

Problems with these instructions? Please send comments here.

myquota

myquota is a system utility that reports storage quota utilization for users and/or groups. It works the same way on the Slurm (production) and the Grid Engine (legacy) clusters.

Tip

If myquota is not reporting storage quota utilization for your filesystem consider running countdiskspace in the directory for which you would like to get space usage information (this command make take a long to time to run depending on the number of files and the space used by them).

To view the current quota and space utilization on filesystems to which you have access open a terminal on the Hoffman2 Cluster and issue myquota. For example, user joebruin, part of bruingrp for which project space was purchased, could see:

$ myquota
User quotas for joebruin (UID 1234) (in GBs):
Filesystem            Usage (in GB)          Quota     File Count     File Quota
/u/project/bruingrp            0.00          40000              1       40000000
Filesystem /u/project/bruingrp usage: 25297.3 of 40000.0 GBs (63.2%) and 10921845 of 40000000 files (27.3%)
/scratch                       0.00           2000            138        5000000
Filesystem /scratch usage: 0.0 of 2000.0 GBs (0.0%) and 13 of 5000000 files (0.0%)
/u/home                        1.5              19         407620         200000
Filesystem /u/home usage: 1.5 of 19.5 GBs (7.7%) and 113003 of 200000 files (56.5%)

where the data columns, from left to right, describe:

  • The first column lists the filesystem for which the quota is being reported.

  • The second column shows your current usage (in GB by default) on the filesystem.

  • The third column is your quota on the filesystem.

  • The fourth column shows your current file usage on the filesystem.

  • The fifth column shows your file quota on the filesystem.

Following each filesystem line of data is a summary that shows your usage (also in percent) on the filesystem. For a project directory, this summary line will tell you how much of the total project directory disk and file quota has been consumed in the aggregate by all users who have access to it.

To display the utilization, sorted by space consumption, by all users on a project directory on a terminal on the Hoffman2 Cluster issue myquota -ss -g myproject (where myproject is the name of your project directory if applicable). For example, to display the utilization on /u/project/bruingrp:

$ myquota -ss -g bruingrp
Group bruingrp (GID 4321) Report (/u/project/bruingrp):
Username  UID    Usage (in GB)          Quota     File Count     File Quota
jsmith    15896           0.00          20000              1       20000000
amyr      15693           0.35          20000             22       20000000
bjones    16042          79.84          20000          74413       20000000
trant     15355         147.80          20000          11008       20000000
speedy    15493        2094.58          20000          65895       20000000
lquaid    15527       11652.37          20000         383864       20000000
Filesystem /u/project/bruingrp usage: 13974.9 of 20000.0 GBs (69.9%) and 535203 of 20000000 files (2.7%)

Short help display:

$ myquota -h
Usage: /u/local/bin/myquota.pyc [-v] [-u username] [-g groupname] [-q] [-p /path/to/volume] [-x{bkmgt}] [-P] [-i] [-f cachefile] [-F] [-w] [-r] [-s{sfni}[r]] [-t] [-V] [-h]
(use --help for extended help)

Full help display:

$ myquota --help
Usage: /u/local/bin/myquota.pyc [-v] [-u username] [-g groupname] [-q] [-p /path/to/volume] [-x{bkmgt}] [-P] [-i] [-f cachefile] [-F] [-w] [-r] [-s{sfni}[r]] [-t] [-V] [-h]
(use --help for extended help)
    -u: comma separated username/uid list for which to print quota information
    -g: comma separated groupname/gid list for which to print quota information
    -q: print quotagroup information for groups without their own filesystem instead of regular group report
    -p: path to volume (i.e. /u/project/jbruin)
    -v: verbose output, includes core limits on user groups, etc.
    -x{bkmgt}: numeric prefix (bytes, kB, MB, GB, TB)
    -P: print usage percentages
    -i: ignore invalid username (report on prototypical user)
    -f: cachefile to use instead of /u/local/var/cache/quota.dat
    -F: force rewrite of cache file with new data and do not output queue information (similar to -w -r but doesn't output queue info)
    -w: rewrite cache file
    -r: regenerate data instead of reading from cache
    -s{s,f,n,i}: sort by space used, file count, name, or ID (UID/GID).  adding an 'r' reverses the sort.
    -h: help
    -t: minute timeout before cache is considered stale (default 60)
    -V: anti-verbose (brief) output
    --rawdatadir: path to directory containing raw data files.  Defaults are titan_quotas, passwd, group
    --${STGSYSTEM}quotafile: full path to quota file (netapp, panasas) (i.e. titan_quotas)
    --fslist: full path to sponsor filesystems file
    --passwdfile: full path to password file (i.e. /etc/passwd)
    --groupfile: full path to group file (i.e. /etc/group)
    --help: extended help
    version 1.1

Problems with these instructions? Please send comments here.

shownews

shownews shows the latest Hoffman2 Cluster announcements, such as newly installed software or changes to the computing environment. It works on both clusters, but each cluster has its own version and its own news items. From the Hoffman2 Cluster command line, issue:

$ shownews

On the Slurm (production) cluster, shownews lists the news items in a menu in your terminal (or in a window, if you have GUI applications enabled). Some useful options are:

$ shownews -b         # print the current news items and exit
$ shownews -a         # show archived news items
$ shownews slurm      # show only the items whose name matches "slurm"
$ shownews -h         # all the options

On the Grid Engine (legacy) cluster, shownews is a GUI application. You can add words to show only the matching news items (e.g., shownews slurm).

Problems with these instructions? Please send comments here.

check_usage

Note

check_usage now works only on the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu. It is not available on the Slurm (production) cluster, hoffman2.oarc.ucla.edu.

check_usage is text-based command that allows users to monitor their jobs instantaneous resources utilization (in terms of memory and CPU) and compare it with the actual resource requested. check_usage is based on the Unix command top which displays sorted information about processes running. When check_usage is invoked on a terminal opened on the Hoffman2 Cluster, it will show a summary of the current resource utilization of the user’s jobs (batch jobs and interactive sessions).

For example, user joebruin running job ID number 5611331 on host n2030, for which the user has requested exclusive access, 8 computing cores and at least 3GB per core, could see:

$ check_usage

User is joebruin
This command may take a few seconds before giving output...

==== on node: n2030
 HOSTNAME    CORES_USD   CORES_REQ    N_PROCS         RES MEM(GB)     VMEM(GB):
 n2030       4.851       8            1               8.5             13.2
List of Job IDs, related resources requested and nodes on which the job is, or its tasks are, running:
 JOBID: 5611331
  hard resource_list: exclusive=TRUE,h_data=3g,h_rt=43200 exec_host_list 1: n2030:8
 +++++

the output of check_usage indicates that the instantaneous resource consumption of job 5611331 is: of 4.851 cores (CORES_USD column) out of the 8 cores requested (CORES_REQ column) and of 8.5 GB of resident memory (RES MEM(GB) column) and 13.2 GB of virtual memory (VMEM(GB) column).

To see which processes are actually consuming the computational resources on the node the command can be run with the -v, verbose, flag as shown below:

$ check_usage -v

User is joebruin
This command may take a few seconds before giving output...

==== on node: n2030 processes are
Output from command top:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
23409 joebruin  20   0 12.7g 8.5g  58m S 635.8 27.1 306:44.45 python
Summary:
 HOSTNAME    CORES_USD  CORES_REQ     N_PROCS         RES MEM(GB)     VMEM(GB):
 n2030       6.358      8             1               8.5             12.7
List of Job IDs, related resources requested and nodes on which the job is, or its tasks are, running:
 JOBID: 5611331
  hard resource_list: exclusive=TRUE,h_data=3g,h_rt=43200 exec_host_list 1: n2030:8
+++++

the verbose output of check_usage shows the relevant output from the command top for any processes running by the user joebruin and its summary. In the present case only one process is running, python (COMMAND column of output of top), and the summary shows that at the time the command was run the user’s job was using 6.358 (CORES_USD column of the summary) of the 8 computing cores available to the job (CORES_REQ column), 8.5 GB of resident memory (RES MEM(GB) column).

If a user is running more than one job the output of check_usage contains the information for each and every job on each node in which is running (including array jobs for which tasks are shown).

To see a complete list of option at the command line issue:

$ check_usage --help

Usage: /u/local/bin/check_usage [OPTIONS]
Prints out instantaneous resource usage of SGE jobs by a given user

       With no [OPTION]        prints out resource usage of current user
       -u <username>   prints out resource usage of user <username>
       -v                      prints out a verbose report of the resource usage
       -h                      displays help

Problems with these instructions? Please send comments here.

myresources

Note

myresources now works only on the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu. It is not available on the Slurm (production) cluster, hoffman2.oarc.ucla.edu. On the Slurm cluster, h2 whoami shows your Slurm accounts and where their jobs run (see Accounts, QOS and where your jobs run).

A text-based tool to display accesslist membership and compute resources. To see to which computing resources you (or any valid user on the cluster) have access issue from a terminal connected to the Hoffman2 Cluster the command:

$ myresources

To see a compete list of options, use instead:

$ myresources --help

Usage: /u/local/bin/myresources [OPTIONS]
Prints out highp resource for a given user (if any)

   With no [OPTION]  prints out highp of the current user
   -u <username>     prints out highp resource of user <username>
   -h                        displays help

Problems with these instructions? Please send comments here.

set_qrsh_env

Note

set_qrsh_env now works only on the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu. It is not available on the Slurm (production) cluster, hoffman2.oarc.ucla.edu. On the Slurm cluster it isn’t needed: a Slurm interactive session already has the job environment (e.g., $SLURM_JOB_ID).

Upon requesting an interactive session via the command qrsh you will be logged into a compute node. To load in the interactive session the scheduler environment (e.g., the job ID number, $JOB_ID, etc.) users should source the following script according to the shell they are using. The following commands are meant to be issued from a terminal connected to the Hoffman2 Cluster.

If the output of the command:

$ echo $SHELL
/bin/bash

or:

$ echo $SHELL
/bin/zsh

then issue:

$ . /u/local/bin/set_qrsh_env.sh

If the output of the command:

$ echo $SHELL
/bin/csh

or:

$ echo $SHELL
/bin/tcsh

then issue:

$ source /u/local/bin/set_qrsh_env.csh

Problems with these instructions? Please send comments here.

webshare

Note

webshare now works only on the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu. It is not available on the Slurm (production) cluster, hoffman2.oarc.ucla.edu.

webshare is a system utility that allows publicly sharing data on the hoffman2 cluster with anonymous users via HTTPS.

Note

Webshare functionality must be enabled by the system administrators and approved by the PI sponsoring a project directory before it can be used. Please open a support ticket to request enabling this application.

From a terminal connected to the Hoffman2 Cluster, to see how webshare works, issue:

$ webshare
Use -h for help
Usage: webshare [ [-s /path] | [-u /path] | [-c prj_dir_name new_share_name] | [-l [-o | -g]] ]
    -s /path/to/share - Shares an existing public path
    -c Project_Directory_Name New_Share_Name - create new share
       example: webshare -c smith project1
       -o  personally owned share (default)
       -g  group share
    -u  [/path/to/unshare|share code]  - removes a previously shared path
    -l  list currently shared paths
         -o  show self-owned links only [default]
         -g  show group-owned links as well
    -h  help

Examples:

To share an existing path:

$ webshare -s /u/project/bruingroup/PUBLIC_SHARED/some_dir_that_already_exists

Example output:

New share created:
9P49H /u/project/bruingroup/PUBLIC_SHARED/some_dir_that_already_exists  https://public.hoffman2.idre.ucla.edu/systems/9P49H/
Saving changes...

To create a new directory and begin sharing it:

webshare -c bruingroup a_new_directory_to_share

Example output:

# webshare -c systems mydir1
New share created:
WJ99Y /u/project/smithlab/PUBLIC_SHARED/mydir1 https://public.hoffman2.idre.ucla.edu/systems/WJ99Y/
Saving changes...

To unshare a directory:

webshare -u /u/project/bruingroup/PUBLIC_SHARED/some_dir_that_already_exists

or …

webshare -u 9P49H # the 5 character ID code can be used as well

Example output:

# webshare -u WJ72Y
Removed share WJ72Y (/u/project/systems/PUBLIC_SHARED/mydir1)
Saving changes...

To list all of your outstanding shares:

webshare -l

Example output:

9P49H /u/project/bruingroup/PUBLIC_SHARED/some_dir_that_already_exists  https://public.hoffman2.idre.ucla.edu/systems/9P49H/
WJ99Y /u/project/smithlab/PUBLIC_SHARED/mydir1 https://public.hoffman2.idre.ucla.edu/systems/WJ99Y/
Found 2 matching shares.

Problems with these instructions? Please send comments here.

Environmental modules

Environment Modules let you change your shell environment ($PATH, $LD_LIBRARY_PATH, etc.) on the fly, to use the compilers, libraries and applications installed on the Hoffman2 Cluster. The Slurm (production) cluster runs Environment Modules 5.6.1.

Note

This section describes the Slurm (production) cluster, hoffman2.oarc.ucla.edu. On the Grid Engine (legacy) cluster, hoffman2.idre.ucla.edu, the modules and their versions are different, and all_apps_via_modules lists the modules installed there.

How to find which applications are available via environmental modules

Modulefiles on the Hoffman2 Cluster are organized in a hierarchy. Most applications are in the base tree, which is always visible, but some are visible only after you load the module they depend on. For example, the GPU builds of amber, gromacs and plumed, and Open MPI, appear only after module load cuda/12.8, and the Intel MKL and Intel MPI modules only after you load an intel module. module avail lists only the modules that are visible right now, so it can miss an application that is installed.

To search for an application in all the trees, connect via a terminal and use one of:

$ module spider amber          # every version, in every tree
$ h2 modules amber             # every version, with the module load lines to use
$ modules_lookup -m amber      # same as h2 modules, in a different format

module spider prints each version under the tree it is in. When a tree becomes visible only after another module is loaded, the heading names that module (via ...):

$ module spider amber
------------ /u/local/Modules/cuda/12.8/modulefiles (via cuda/12.8) ------------
amber/24_GPU

h2 modules and modules_lookup -m print the commands to run, in the order to run them:

$ modules_lookup -m amber

   Looking for application = amber

    amber/24_GPU    via: module load cuda/12.8; module load amber/24_GPU

So to use amber, run module load cuda/12.8 and then module load amber/24_GPU. modules_lookup -m takes an application name, not a name and version.

To list every module installed on the cluster, in every tree, run module spider with no arguments:

$ module spider

If an application isn’t found, it may be available as a Python or conda package (see Python and Mamba) or as a container (see Containers). To ask for software to be installed, see Software installation.

Environmental modules: Basic commands

Environmental modules consists of: a collection of files, called modulefiles, containing directives to load certain environmental variables (and in certain cases unload conflicting ones) which are interpreted by the module command to dynamically change your environment without the need to edit your $PATH in your shell initialization files.

Basic environmental modules commands are:

$ module help               # prints a basic list of commands
$ module spider name        # searches every tree for the modulefile name
$ module list               # prints a list of the currently loaded modulefiles
$ module avail              # lists the modulefiles visible with the modules loaded now
$ module show modulefile    # shows how the modulefile will alter the environment
$ module whatis modulefile  # prints basic information about the software
$ module help modulefile    # prints a basic help for the modulefile
$ module load modulefile    # loads the modulefile
$ module unload modulefile  # unloads the modulefile
$ module purge              # unloads all the modulefiles

where modulefile is the name of the module file for a given application (e.g., for MATLAB the module file name is matlab, and matlab/R2026a is a specific version of it). module load with only a name (e.g., module load matlab) loads the newest version. Give the version when your results must be reproducible.

Note

module is a shell function, not a program. Run module load on a line of its own: if you pipe its output (e.g., module load matlab 2>&1 | tail), the module is loaded in a subshell and has no effect on your shell.

Loading applications in interactive sessions

To run an application, such as MATLAB, interactively, first start an interactive session on a compute node with srun. For example, to run MATLAB on one core with 10 GB of memory for 3 hours:

$ srun --time=03:00:00 --mem=10G --pty bash -l
$ module load matlab/R2026a
$ matlab -nodisplay

To use the MATLAB Desktop or another graphical application, start the session with x11session instead of srun (see Opening GUI applications from a Slurm interactive session).

Loading applications in shell scripts for batch execution

In a Slurm batch job script, start with module purge and then load the modules the job needs, prerequisites first:

#!/bin/bash
#SBATCH --account=pi_gobruin
#SBATCH --time=04:00:00
#SBATCH --mem=8G

module purge
module load cuda/12.8
module load amber/24_GPU
executable [arguments]

module purge removes the default modules, which can conflict with the application (see Default user environment upon login into the cluster), and makes the job independent of the modules loaded in the shell from which you submitted it. See Loading modules in Slurm jobs for details. To check that every module in a script exists, and that its prerequisites are loaded before it, run:

$ h2 validate myjob.sh

The module command is available in job scripts written for bash or tcsh. If a script runs in a shell where it isn’t defined (module: command not found), add the line for that shell before the first module command:

. /u/local/Modules/default/init/modules.sh

Application environment for distributed jobs

Parallel jobs that use Intel MPI or Open MPI need the same MPI library on every node they run on. Load the MPI module in the job script, after module purge, and start the program with mpirun (not srun):

  • Intel MPI is part of the intel modules (e.g., module load intel/2026.0.0). Use module avail intel to see the versions.

  • Open MPI is in the cuda tree: module load cuda/12.8, then module load openmpi/5.0.2.

Load the same compiler and MPI modules you used to build the program. Applications installed as modules (e.g., gromacs, amber) load their own MPI, so don’t load another one on top of it. For a complete example, see Distributed memory (MPI) jobs.

Default user environment upon login into the cluster

A new shell on the Slurm cluster, and therefore every job, starts with these modules loaded:

$ module list
Currently Loaded Modulefiles:
 1) OARC                        5) debugger/2026.2.0 <aL>
 2) compiler-rt/2026.2.0 <aL>   6) libfabric/2.6.13 <aL>
 3) umf/1.2.0 <aL>              7) mpi/2021.19 <aL>
 4) tcm/1.6 <aL>                8) intel/2026.2.0

Key:
<module-tag>  <aL>=auto-loaded

<aL> marks the modules that intel/2026.2.0 loaded for you. intel/2026.2.0 provides the Intel oneAPI C, C++ and Fortran compilers (icx, icpx, ifx), Intel MPI and the Intel Math Kernel Library (MKL). The GNU compilers (gcc, g++, gfortran) are those of the operating system (Rocky Linux 9, GCC 11.5) and need no module.

Many applications were built with intel/2024.1.0, which conflicts with the default intel/2026.2.0. Loading one of them in the default environment fails:

$ module load gromacs/2024.3
Loading intel/2024.1.0
  ERROR: Module cannot be loaded due to a conflict.
    HINT: Might try "module unload intel/2026.2.0" first.

Run module purge first (or module unload intel/2026.2.0) and then load the application, which loads the intel version it needs.

Changing your environment – Example 1: Loading a different compiler

To use a different version of the Intel compilers:

$ module avail intel           # check which versions are available
$ module load intel/2024.1.0   # replaces intel/2026.2.0 and its modules

When you switch to a different compiler, the modules that depend on the old one are unloaded with it. Some modules, e.g. MKL, are in the tree of each intel version, so module avail lists different modules depending on which intel module is loaded. module spider searches all of them:

$ module spider mkl
----------------- /u/local/Modules/intel/2026.2.0/modulefiles ------------------
mkl/2026.2

------- /u/local/Modules/intel/2026.0.0/modulefiles (via intel/2026.0.0) -------
mkl/2026.0

------- /u/local/Modules/intel/2024.1.0/modulefiles (via intel/2024.1.0) -------
mkl/2024.1

The first heading has no via, because intel/2026.2.0 is already loaded.

Changing your environment – Example 2: Loading a python modulefile

The operating system’s python doesn’t include the extra packages installed on the Hoffman2 Cluster. To use a cluster installation of python and its packages, load a python module:

$ module avail python          # python/3.10.20, python/3.12.13
$ module load python/3.12.13

For conda environments, see Mamba (module load miniforge).

Writing your own modulefiles

In some cases you may have applications and/or libraries compiled in your own $HOME (or in your group project directory) for which you may want to create your own modulefiles.

In these cases you will want to use the following environmental modules command:

$ module use $HOME/modulefiles

where: $HOME/modulefiles is the directory where your own modulefiles reside. The command, module use $HOME/modulefiles, adds: $HOME/modulefiles to your $MODULEPATH.

The command:

$ module avail

will now show your own modulefiles along with the modulefiles that we provide.

To make your own modulefiles available in every session, add the line:

module use $HOME/modulefiles

to your shell initialization file (~/.bashrc or ~/.cshrc). In a job script that starts with module purge, put module use $HOME/modulefiles after the purge.

A sample modulefile is included here for the application MYAPP version X.Y (installed in /path/to/my/software/dir/MYAPP/X.Y, which could, for example, be: $HOME/software/MYAPP/X.Y):

#%Module
# MYAPP module file
set name "MYAPP"
# Version number
set ver "X.Y"

module-whatis "Name        : $name"
module-whatis "Version     : $ver"
module-whatis "Description : Add desc of MYAPP here"

set base_dir  /path/to/my/software/dir/$name/$ver

prepend-path  PATH                $base_dir/bin
prepend-path  LD_LIBRARY_PATH     $base_dir/lib
prepend-path  MANPATH             $base_dir/man
prepend-path  INFOPATH            $base_dir/info

setenv        MYAPP_DIR           $base_dir
setenv        MYAPP_BIN           $base_dir/bin
setenv        MYAPP_INC           $base_dir/include
setenv        MYAPP_LIB           $base_dir/lib

N.B.: Environment Modules doesn’t know which of your modules conflict with each other. To stop two conflicting modules from being loaded together, add a conflict line to your modulefile (e.g., conflict MYAPP stops two versions of MYAPP from being loaded at once). Modulefiles are written in Tcl, so they can also use Tcl commands. For more details see man modulefile.

Problems with the instructions on this section? Please send comments here.

Containers

Apptainer

Apptainer, formally Singularity, is a free, cross-platform and open-source software that can run Operating System Virtualization also known as Containerization. This type of virtualization allows you to run an Operating System within a host Operating System.

Apptainer allows users to ‘bring their own’ Operating System and root filesystem on the Hoffman2 Cluster. In some cases this may facilitate the process of porting/installing applications on the Hoffman2 Cluster. Users can run applications using system libraries and specific OS requirements different that the underlying operating system on the Hoffman2 Cluster.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider apptainer on the Slurm cluster and module av apptainer on the Grid Engine cluster (where the older singularity modules are also available).

Note

Running of OS Containers is supported using an unprivileged (non-setuid) build of Apptainer. This allows you to download or transfer your pre-built containers to the cluster, but you will have limited functionality building or modifying containers while on the Hoffman2 Cluster.

Apptainer Workflow

In some cases the software package you would like to run on the Hoffman2 Cluster is packeged within a Docker or Apptainer container. In this case you can skip the first of the following steps.

  • Create your Container This is can be done by installing Apptainer on your local computer (where you have root/sudo access) and build a container with the needed application. Many developers have already created containers with their software application installed. DockerHub is a large repository of container images that can be used by Apptainer.

  • Transfer and bring your container to the Hoffman2 Cluster Your built container will need to be transferred to the Hoffman2 Cluster or pulled, with the command: apptainer pull, from a repository like DockerHub.

  • Run your Apptainer container You can run applications in Apptainer in two ways: with the command apptainer shell or, to run specific commands within a container, with apptainer exec.

Running Apptainer

On the Slurm cluster, request an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=20G --pty bash -l

Then load the apptainer module file:

$ module purge
$ module load apptainer/1.3.4

(to see the installed versions use module spider apptainer). The module sets the $H2_CONTAINER_LOC variable, which points to ready-made containers of popular apps (ls $H2_CONTAINER_LOC). apptainer pull, apptainer exec and apptainer shell work as described in the GE interactive tab. Apptainer keeps its cache in ~/.apptainer/cache by default; to keep it from filling your $HOME, set export APPTAINER_CACHEDIR=$SCRATCH/.cache/apptainer before pulling images.

Example: start a new Apptainer shell on a container with TensorFlow version 2.4.1 on a GPU node

$ # get an interactive session on a GPU node:
$ srun --gres=gpu:1 --time=01:00:00 --mem=16G --pty bash -l
$ # load the apptainer module file:
$ module purge
$ module load apptainer/1.3.4
$ # start the Apptainer shell on the container:
$ apptainer shell --nv $H2_CONTAINER_LOC/tensorflow-2.4.1-gpu-jupyter.sif
Apptainer>

The --nv option makes the GPU available in the container, which carries its own CUDA, so you do not need to load a cuda module (see Requesting GPUs with Slurm).

References:

Apptainer User Guide

DockerHub

UCLA HPC Workshop on Containers

Editors

Emacs

gedit

nano

Vi/Vim/eVim

Emacs

“An extensible, customizable, free/libre text editor.” – GNU Emacs GNU Emacs can be accessed in a text-based or graphical mode (with mouse accessible menus and more).

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed). On the Grid Engine cluster, a more recent version is also available as a module (see module av emacs).

To start Emacs, open a terminal on the Hoffman2 Cluster and enter:

$ emacs -nw

To start Emacs and open filename, issue:

$ emacs -nw filename

On the Grid Engine (legacy) cluster, to run a more recent version of Emacs, issue:

$ module load emacs
$ emacs

or see which versions are available with:

$ module av emacs

and load the needed VERSION with:

$ module load emacs/VERSION

While the GNU Emacs Reference Card provides an exhoustive list of keyboard shortcuts, a quick reference is also provided here:

Note

Keyboard shortcuts

Description

Ctrl-x Ctrl-w [*]

Write current buffer to a file

Ctrl-x Ctrl-s

Save current buffer to a file

Ctrl-x Ctrl-c

Exit Emacs

Ctrl-x 2 [†]

Split the emacs window vertically

Ctrl-x 3

Split the emacs window horizontally

Ctrl-x o

Switch cursor to another open window (if more than one is open)

Ctrl-x 0

Close current window (if more than one is open)

Ctrl-s

Search the current file or buffer forward

Ctrl-r

Search the current file or buffer forward

Ctrl-g

Abort current search

Ctrl-x u

Undo change

Ctrl-h

Help

Ctrl-h t

Emacs tutorial

References:

See GNU website for more information.
See the GNU Emacs Reference Card for an extensive guide to emacs key bindings (e.g., keyboard shortcuts).

Problems with the instructions on this section? Please send comments here.

gedit

A fully featured graphical text editor within Gnome desktop, gedit comes with built-in searchable documentation under its Help menu.

Note

Available on: the Grid Engine (legacy) cluster and, on the Slurm (production) cluster, only on the DCV remote desktop node (dcv2.hoffman2.oarc.ucla.edu), as part of the operating system (no module needed). gedit is not installed on the Slurm compute nodes, so you cannot open it from an x11session or another Slurm interactive session: on the Slurm cluster, use it from a DCV remote desktop session.

Note

To open the graphical user interface (GUI) of gedit on the Slurm cluster, you will need to be connected via a DCV remote desktop (gedit runs on the DCV node itself). On the Grid Engine (legacy) cluster, you will need to have connected either via a remote desktop or via terminal and SSH having followed directions on how to open GUI applications.

To start gedit from a remote desktop, click on Applications > Accessories > gedit Text Editor or, from a termial, issue the command:

$ gedit &

References:

https://help.gnome.org/users/gedit/stable/index.html.en

Problems with the instructions on this section? Please send comments here.

nano

A simple text editor with additional features and functionalities. See the GNU nano homepage for more information.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed). On the Grid Engine cluster, a more recent version is also available as a module (see module av nano).

To launch nano:

$ nano

or you can launch nano with options. To see all the options, issue:

$ nano --help

References:

Nano cheat sheet

Problems with the instructions on this section? Please send comments here.

Vi/Vim/eVim

Vi, Vim and eVim are ubiquitus text editor available in most unix instllations. With many built-in fnction vi and is a very versatile text editors most suited to edit code.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster (vi and vim), as part of the operating system (no module needed). For eVim, see the Graphical user interface tab.

The Vi editor available on most Unix/Linux distributuion is actually Vim (Vi IMproved), an improved distribution of the basic Vi editor. To start the editor in text mode (i.e., with no GUI interface), issue on the Hoffman2 Cluster shell prompt:

$ vi

Launch vim with filename:

$ vi filename

Many resources and tutorial are available online. Vi tutorials. See also vim website for more information. Documentation is also available by entering

$ :help

while in the editor.

Note

Vi is a modal editor which means that it can be accessed in two primary modes: command mode, the mode in which vi starts, in which a variety of commands can be entered (e.g., to insert, alter, or navigate within the open file, etc.) and the insert mode, in which text can be inserted as typed. Type i to toggle from the command mode to the insert mode and Esc to switch back from the insert mode to the command mode.

While the Vi Reference Card provides a more extensive list of the basic vi commands a quick reference is also provided here:

Keyboard shortcuts

Description

Esc :w

Write current buffer to a file

Esc :x

Save current buffer to a file and quit vi

Esc :q

Exit vi if no changes are made

Esc :q!

Exit vi and undo any changes

References:

Vim Cheat sheet https://vimsheet.com/

Vim Tutorial https://www.tutorialspoint.com/vim/vim_introduction.htm

Evim tutorial http://www.linux-tutorial.info/modules.php?name=ManPage&sec=1&manpage=evim

Vi Reference Card

Problems with the instructions on this section? Please send comments here.

Compilers

GNU Compiler Collection (gcc)

Intel C/C++ & Fortran compilers

NVIDIA HPC SDK (PGI C/C++ compiler)

Nvidia CUDA

GNU Compiler Collection (gcc)

“The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, and D, as well as libraries for these languages (libstdc++,…)” – GNU Compiler Collection (gcc)

Note

Available on: the Slurm (production) cluster, where GCC 11.5 is part of the operating system (no module needed: there is no gcc module), and the Grid Engine (legacy) cluster, where module av gcc shows the installed versions.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

use the GNU Compiler Collection (GCC 11.5) that is part of the operating system: there is no gcc module to load. To invoke the C, C++ and Fortran compilers, use:

$ gcc --help
$ g++ --help
$ gfortran --help

The default environment on the Slurm cluster also loads the Intel compilers (see Intel C/C++ & Fortran compilers), which do not change the GNU compilers. Please refer to GNU Compiler Collection (gcc) documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Intel C/C++ & Fortran compilers

The Intel /C++ and Fortran compilers “produce optimized code that takes advantage of the ever-increasing core count and vector register width in Intel processors” – Intel C/C++ & Fortran compilers

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider intel on the Slurm cluster and module av intel on the Grid Engine cluster.

‼️ On the Slurm cluster, use ifx instead of ifort

The classic compilers ifort, icc and icpc are not available in the default Intel modules on the Slurm (production) cluster. Use ifx (Fortran), icx (C) and icpx (C++), and for MPI mpiifx, mpiicx and mpiicpx: mpiifort, mpiicc and mpiicpc still exist but fail. To build existing code, see Building existing code with the oneAPI compilers. For the full details, see the news item Intel ifort replaced by ifx on the Slurm partition 🔧.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

the default environment already includes the Intel oneAPI compilers intel/2026.2.0 (and Intel MPI). To use another version, e.g.:

$ module purge
$ module load intel/2024.1.0

To see the installed versions, use module spider intel. The Intel oneAPI compilers are invoked with:

$ icx --help
$ icpx --help
$ ifx --help

for C, C++ and Fortran respectively. The classic compilers ifort, icc and icpc are not available (see On the Slurm cluster, use ifx instead of ifort above). For MPI programs, use mpiicx, mpiicpx or mpiifx and start them with mpirun (see Distributed memory (MPI) jobs). For example:

$ ifx -O2 -o myprog myprog.f90
$ mpiifx -O2 -o mympiprog mympiprog.f90

Building existing code with the oneAPI compilers. Most build systems let you choose the compilers on the command line, so code written for ifort, icc and icpc builds without editing its files:

$ make FC=ifx F77=ifx F90=ifx CC=icx CXX=icpx
$ ./configure FC=ifx F77=ifx CC=icx CXX=icpx
$ cmake -DCMAKE_Fortran_COMPILER=ifx -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..

For MPI code, use mpiifx, mpiicx and mpiicpx in place of ifx, icx and icpx above. If a build script calls mpiifort directly, set export I_MPI_F90=ifx before you run it. If a Makefile sets the compiler with FC=ifort and ignores the command line, change ifort to ifx in the file.

Please refer to the Intel oneAPI compilers documentation and the Intel Fortran Compiler (ifx) documentation to learn how to use these compilers.

References:

Problems with the instructions on this section? Please send comments here.

NVIDIA HPC SDK (PGI C/C++ compiler)

The PGI compilers and tools have merged into the NVIDIA HPC SDK, which provides the C, C++ and Fortran compilers nvc, nvc++ and nvfortran (the former pgcc, pgc++ and pgfortran, still available under those names), with support for OpenACC, OpenMP and CUDA Fortran.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider hpcsdk on the Slurm cluster and module av hpcsdk on the Grid Engine cluster. On the Slurm cluster the NVIDIA HPC SDK 24.9 is available built for CUDA 11 (hpcsdk/24.9-cuda11) and CUDA 12 (hpcsdk/24.9-cuda12).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load the NVIDIA HPC SDK in your environment with, e.g.:

$ module purge
$ module load hpcsdk/24.9-cuda12

which also loads the MPI library of the SDK (hpcx). To invoke the C, C++ and Fortran compilers, use:

$ nvc --help
$ nvc++ --help
$ nvfortran --help

To run code compiled for GPUs (e.g. with -acc or -cuda), request a GPU card for the session or job with --gres=gpu:1 (see Requesting GPUs with Slurm). Please refer to the NVIDIA HPC SDK documentation to learn how to use these compilers.

References:

Problems with the instructions on this section? Please send comments here.

Nvidia CUDA

“CUDA is a parallel computing platform and programming model developed by NVIDIA for general computing on graphical processing units (GPUs).” –NVIDIA CUDA Home Page

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider cuda on the Slurm cluster and module av cuda on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=8G --gres=gpu:1 --pty bash -l

load a version of CUDA in your environment with, e.g.:

$ module purge
$ module load cuda/12.8

To see the installed versions, use module spider cuda. To invoke the CUDA compiler, and to see the GPU card assigned to your session:

$ nvcc --help
$ nvidia-smi

GPU jobs must request the cards they use with --gres=gpu:N; to select a card type, add a constraint such as -C A100 (see Requesting GPUs with Slurm, and h2 gpus for the cards available). Please refer to CUDA documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Debuggers and profilers

GNU debugger

DDD

Intel Advisor

Intel VTune Profiler

Valgrind Tools

GNU debugger

“GDB, the GNU Project debugger, allows you to see what is going on ‘inside’ another program while it executes – or what another program was doing at the moment it crashed.” – GNU debugger

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed).

On the Slurm cluster, GDB is part of the operating system of the compute nodes (/usr/bin/gdb). Run it in an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example:

$ srun --time=01:00:00 --mem=4G --cpus-per-task=2 --pty bash -l

and, once the session starts, run GDB with:

$ gdb executable_name

where executable_name is your executable, compiled with -g to include debugging information.

The detailed usage for GDB can be found in the official documentation.

References:

Problems with the instructions on this section? Please send comments here.

DDD

“GNU DDD is a graphical front-end for command-line debuggers such as GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger bashdb, the GNU Make debugger remake, or the Python debugger pydb. Besides “usual” front-end features such as viewing source texts, DDD has become famous through its interactive graphical data display, where data structures are displayed as graphs.” –DataDisplayDebugger website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, users who want to use DDD MUST request an interactive session with enabling X11 forwarding for the graphical debugging process. Once a qrsh session is acquired, start DDD (it is part of the operating system, so no module is needed) with:

$ ddd &

The detailed usage for DDD can be found in the official documentation.

References:

Problems with the instructions on this section? Please send comments here.

Intel Advisor

“Intel Advisor is composed of a set of tools to help ensure your Fortran, C and C++ (as well as .NET on Windows*) applications realize full performance potential on modern processors, including Vectorization Advisor, Roofline Analysis, Threading Advisor, Offload Advisor (Intel® Advisor Beta only), Flow Graph Analyzer.” – Intel Advisor Website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. On the Slurm cluster, Advisor is a module in the Intel oneAPI module tree: module spider advisor shows which intel version provides it (currently advisor/2024.1, with intel/2024.1.0). On the Grid Engine cluster, it is the intel/advisor module (see module av intel).

On the Slurm cluster, to use the Intel Advisor command-line interface, request an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --cpus-per-task=2 --pty bash -l

and load Intel Advisor in your environment with:

$ module purge
$ module load intel/2024.1.0
$ module load advisor/2024.1

Note

If the advisor command is not found after loading the module, set up the Advisor environment with source /u/local/compilers/intel/oneapi/2024.1.0/advisor/2024.1/env/vars.sh (bash) or source /u/local/compilers/intel/oneapi/2024.1.0/advisor/2024.1/env/vars.csh (tcsh).

Then run an analysis of your program (./myprog) and view its results with:

$ advisor --collect=survey --project-dir=./advi_results -- ./myprog
$ advisor --report=survey --project-dir=./advi_results

To use the Intel Advisor graphical interface, open a GUI session on a compute node with x11session (see Opening GUI applications from a Slurm interactive session), for example:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

then load the modules as shown above and run:

$ advisor-gui &

References:

Problems with the instructions on this section? Please send comments here.

Intel VTune Profiler

“Intel VTune Profiler is a performance analysis tool for users who develop serial and multithreaded applications. VTune Profiler helps you analyze the algorithm choices and identify where and how your application can benefit from available hardware resources.” – Intel VTune Profiler

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. On the Slurm cluster, VTune is a module in the Intel oneAPI module tree: load an intel module first (intel/2026.2.0 is loaded by default) and then module load vtune; module spider vtune shows which intel version provides each VTune version. On the Grid Engine cluster, it is the intel/vtune module (see module av intel).

On the Slurm cluster, to use the Intel VTune Profiler command-line interface, request an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --cpus-per-task=2 --pty bash -l

and load VTune in your environment with:

$ module purge
$ module load intel
$ module load vtune

Then profile your program (./myprog) with:

$ vtune -collect hotspots -result-dir r000hs -- ./myprog    # to perform the hotspots collection on the given target
$ vtune -report hotspots -result-dir r000hs                 # to generate the 'hotspots' report for the result directory 'r000hs'
$ vtune -help collect                                       # to display help for the collect action

To use the VTune graphical interface, open a GUI session on a compute node with x11session (see Opening GUI applications from a Slurm interactive session), for example:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

then load the modules as shown above and run:

$ vtune-gui &

References:

Problems with the instructions on this section? Please send comments here.

Valgrind Tools

“Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools.” – valgrind.org

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed).

On the Slurm cluster, Valgrind is part of the operating system of the compute nodes (/usr/bin/valgrind), so no module is needed. Run it in an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example:

$ srun --time=01:00:00 --mem=8G --pty bash -l

Compile your program with -g (and preferably -O0) and, once the session starts, run it under Valgrind’s default tool (Memcheck) with:

$ valgrind --leak-check=yes myprog arg1 arg2

Under Valgrind your program runs much slower (e.g., 20 to 30 times) than normal and uses more memory, so request enough runtime and memory. The detailed information about how to use Valgrind can be found in the official documentation of User Manual.

References:

Problems with the instructions on this section? Please send comments here.

Build automation tools

GNU make

Cmake

GNU make

GNU Make is a tool to controls the generation of executables from the program’s non-source codes. Make configures how to build your program using a controlling file, makefile, which included each of the non-source files and how to compile the program one another.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed). On the Grid Engine cluster a make module is also available (module av make).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=4 --mem-per-cpu=2G --pty bash -l

use the version of GNU Make (4.3) that is part of the operating system (no module needed). To build a project, using the cores requested:

$ make -j $SLURM_CPUS_PER_TASK

Please refer to GNU Make documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Cmake

“CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.” – CMake web site

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider cmake on the Slurm cluster and module av cmake on the Grid Engine cluster. On the Slurm compute nodes the operating system also provides a version of cmake (no module needed).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=4 --mem-per-cpu=2G --pty bash -l

load CMake in your environment with:

$ module purge
$ module load cmake/4.3.2

To see the installed versions, use module spider cmake. Load the modules of the compilers and libraries your code needs as well (the GNU compilers need no module). To configure and build a project, using the cores requested:

$ cmake -S src -B build
$ cmake --build build --parallel $SLURM_CPUS_PER_TASK

Please refer to CMake documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Programming languages

For C/C++ or FORTRAN see Compilers.

D/GDC

Java

julia

mono

Perl

POP-C++

Python

R

Ruby

Tcl

D/GDC

“GDC is a GPL implementation of the D compiler which integrates the open source D front end with GCC.” – GDC Project website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use GDC, use the module command:

$ module load gdc

Once loaded, the paths to GDC’s top level, binaries, include files, and libraries are defined by the environment variables GDC_DIR, GDC_BIN, GDC_INC, and GDC_LIB, respectively.

See Environmental modules for further information.

References:


Problems with the instructions on this section? Please send comments here.

Java

Java is a set of computer software and specifications developed by James Gosling at Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. For more information, see the Java website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. On the Slurm cluster Java is part of the operating system (no module needed); on the Grid Engine cluster, use module av java to see the installed versions.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

Java is part of the operating system on the Slurm cluster, so no module is needed. Check its version with:

$ java -version

When you run a Java program, set the maximum size of the Java heap (-Xmx) a little below the memory requested for the session, for example:

$ java -Xmx3g -jar myprogram.jar

Please refer to the official Java documentation to learn how to use Java.

References:


Problems with the instructions on this section? Please send comments here.

julia

“The Julia Language - A fresh approach to technical computing.” – julia

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider julia on the Slurm cluster and module av julia on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load julia in your environment with:

$ module purge
$ module load julia/1.11.1

To see the installed versions, use module spider julia. To invoke julia, using the cores requested:

$ julia --threads=$SLURM_CPUS_PER_TASK

Please refer to the julia official documentation to learn how to use this language.

References:


Problems with the instructions on this section? Please send comments here.

mono

“Mono is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation. Sponsored by Microsoft, Mono is an open source implementation of Microsoft’s .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for development of cross platform applications.” –Mono Project website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session (e.g., run-time, memory, number of cores, etc. as needed), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use mono, use the module command:

$ module load mono

This will load the default Mono version. Once loaded, the paths to Mono’s top level, include files, and libraries are defined by the environment variables MONO_DIR, MONO_INC, and MONO_LIB, respectively.

See Environmental modules for further information.

Use the following command to discover other Mono versions:

$ module available mono

and load specific versions with the command:

$ module load mono/VERSION

where VERSION is replaced by the desired version of Mono (e.g. 5.10.0).

Please refer to the official Mono documentation to learn how to use Mono.

References:


Problems with the instructions on this section? Please send comments here.

Perl

“Perl is a highly capable, feature-rich programming language with over 30 years of development. Perl runs on over 100 platforms from portables to mainframes and is suitable for both rapid prototyping and large scale development projects.” – Perl website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider perl on the Slurm cluster and module av perl on the Grid Engine cluster. A version of Perl that is part of the operating system (/usr/bin/perl) is also available on both clusters without loading a module.

On the Grid Engine (legacy) cluster Perl is also available via the ActivePerl distribution.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load Perl in your environment with:

$ module purge
$ module load perl/5.40.0

To see the installed versions, use module spider perl. To run a Perl script:

$ perl myscript.pl

Please refer to the Perl documentation to learn how to use this software.

References:


Problems with the instructions on this section? Please send comments here.

ActivePerl

“ActivePerl is a distribution of Perl from ActiveState” – ActiveState .

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use ActivePerl, use the module command:

$ module load activeperl

References:


Problems with the instructions on this section? Please send comments here.

POP-C++

POP-C++ is a comprehensive object-oriented system for developing HPC applications in large, heterogeneous, parallel and distributed computing infrastructures. It consists of a programming suite (language, compiler) and a run-time system for running POP-C++ applications. For more information, see the C++ website.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

To set up your environment to use pop-c++, use the module command:

$ module load pop-c++

See Environmental modules for further information.

References:


Problems with the instructions on this section? Please send comments here.

Python

Python is an interpreted, high-level, general-purpose programming language.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider python on the Slurm cluster and module av python on the Grid Engine cluster. On the Slurm cluster the Python modules are python/3.10.20 and python/3.12.13; the python3 of the operating system (3.9) is not meant for research work.

On the Hoffman2 Cluster python is also available via Mamba.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load a version of Python in your environment with, e.g.:

$ module purge
$ module load python/3.12.13

To see the installed versions, use module spider python. After loading the module, you can start a python shell with:

$ python

To install the Python packages you need, create a Python virtual environment (or a conda environment, see Mamba) rather than using pip install --user: packages installed with --user go to $HOME/.local/lib/pythonX.Y/site-packages, are shared by every Python of the same version, and can break conda environments.

References:


Problems with the instructions on this section? Please send comments here.

Python virtual environments

Python’s venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site directories. A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available. When used from within a virtual environment, common installation tools such as pip will install Python packages into a virtual environment without needing to be told to do so explicitly.

To create a python virtual environment at a terminal prompt on the Slurm cluster type:

$ srun --time=01:00:00 --mem=10G --pty bash -l  # you can modify the resources requested as needed
$ module purge
$ module load python/3.12.13
$ python -m venv $HOME/.virtualenvs/<NAME-OF-VIRT-ENV>

Whenever you use the virtual environment, load the same python module with which you created it. On the Grid Engine (legacy) cluster type instead:

$ qrsh -l h_data=10G  # you can modify the resources requested as needed
$ module load python
$ python -m venv $HOME/.virtualenvs/<NAME-OF-VIRT-ENV>

to activate an existing python virtual environment:

$ source $HOME/.virtualenvs/<NAME-OF-VIRT-ENV>/bin/activate

where <NAME-OF-VIRT-ENV> is the name for your virtual environment. Alternatively you can modify the location of the directory containing the virtual environments to a location (such as a project directory if applicable) where you may have more space. Python virtual environments can also be created withing a project directory and conventionally stored there in a directory called venv or .venv.

Within the vitual environment packages can be installed via pip, to recreate a virtual environment you can generate a requirements.txt file from the existing environment with:

$ pip freeze > requirements.txt

and then use in the new environment:

$ pip install -r requirements.txt

Warning

Once created a python virtual environment cannot be moved or any directory in the path to the virtual environment renamed (since the path to them is hardcoded within them). Should you need to move a virtual environment directory to a new location you will need to generate a requirements.txt file from the existing environment to be moved and then recreate the environment in the new location with the requirements.txt file.


Problems with the instructions on this section? Please send comments here.

Loading a python virtual environment in a job script

On the Slurm cluster, in the job script use:

### python_virt_env_submit.job START ###
#!/bin/bash
#SBATCH --job-name=python_virt_env
# your Slurm account (see: h2 whoami):
#SBATCH --account=pi_gobruin
# Edit the lines below to request the runtime, cores and memory as needed:
#SBATCH --time=01:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=2G
# Standard output and error, in the directory you submit the job from:
#SBATCH --output=python_virt_env.%j.out
# To be emailed when the job ends or fails, remove one "#" from the next
# two lines and replace joebruin with your user name:
##SBATCH --mail-user=joebruin@mail
##SBATCH --mail-type=END,FAIL

echo "Job $SLURM_JOB_ID started on $(hostname -s) at $(date)"

# load the job environment:
module purge
module load python/3.12.13
module list

# activate an already existing virtual environment, built with the same python
# module (CHANGE THE NAME & PATH OF THE VIRTUAL ENVIRONMENT AS NEEDED):
source $HOME/.virtualenvs/<NAME-OF-VIRT-ENV>/bin/activate

# substitute the Python script to run below (use its full path):
python $HOME/myproject/myscript.py

echo "Job $SLURM_JOB_ID ended at $(date)"
### python_virt_env_submit.job STOP ###

where you would replace the account, the resources requested, the python module (the one with which you created the virtual environment), the path of the virtual environment and the Python script as needed. Submit the job from a directory under $SCRATCH (see Where to write job output), after checking it, with:

$ h2 validate python_virt_env_submit.job
$ sbatch python_virt_env_submit.job

On the Grid Engine (legacy) cluster, in the submission script use:

### python_virt_env_submit.sh START ###
#!/bin/bash
#$ -cwd
# error = Merged with joblog
#$ -o joblog.$JOB_ID
#$ -j y
# Edit the line below to request the appropriate runtime and memory
# (or to add any other resource) as needed:
#$ -l h_rt=1:00:00,h_data=1G
# Add multiple cores/nodes as needed:
#$ -pe shared 1
# Email address to notify
#$ -M $USER@mail
#$ -m bea

# echo job info on joblog:
echo "Job $JOB_ID started on:   " `hostname -s`
echo "Job $JOB_ID started on:   " `date `
echo " "

# load the job environment (load any needed package):
. /u/local/Modules/default/init/modules.sh
module load python
# To see which versions of python are available use: module av python

# activate an already existing conda environment (CHANGE THE NAME & PATH OF VIRT. ENV. AS NEEDED):
source $HOME/virtualenvs/<NAME-OF-VIRT-ENV>

# in the following two lines substitute the command with the actual command to run:
echo "python --version"
python --version

# echo job info on joblog:
echo "Job $JOB_ID ended on:   " `hostname -s`
echo "Job $JOB_ID ended on:   " `date `
echo " "
### python_python_submit.sh STOP ###

Highlighted code corresponds to part that you may need to modify.


Problems with the instructions on this section? Please send comments here.

Mamba

Mamba is a fast, robust, and cross-platform package manager. It is a drop-in replacement for Conda and uses the same commands and configuration options as conda. Almost any conda commands can be swapped with a mamba command. Mamba provides a version of python.

Note

Available on: the Slurm (production) cluster, as the miniforge module (which provides both conda and mamba), and the Grid Engine (legacy) cluster, as the mamba module. To see the installed versions, use module spider miniforge on the Slurm cluster and module av mamba on the Grid Engine cluster.

On the Slurm cluster, conda and mamba come with the Miniforge distribution: load it with module load miniforge (e.g. module load miniforge/26.5.3-0). Its mamba (version 2) accepts the same commands as conda to create environments and install packages; switch environments with conda activate, which works as soon as the module is loaded (do not run conda init). On the Grid Engine cluster, load the mamba module instead (module load mamba). Environments created with the mamba modules on the Grid Engine cluster may not work on the Slurm cluster: recreate them there from an environment.yml file (conda env export > environment.yml on the Grid Engine cluster, then conda env create -f environment.yml on the Slurm cluster).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load the Miniforge distribution, which provides conda, mamba and a version of python, in your environment with, e.g.:

$ module purge
$ module load miniforge/26.5.3-0

To see the installed versions, use module spider miniforge. The module sets up the conda command, so conda activate works right away: do not run conda init, which adds a block to your ~/.bashrc that every later job inherits. Load the module when you need it, rather than in your ~/.bashrc. To create an environment and activate it:

$ conda create -n MYENV python=3.12 numpy
$ conda activate MYENV

mamba can be used in place of conda for commands such as mamba create and mamba install; use conda activate and conda deactivate to switch environments. To check which libraries are installed in the active environment:

$ conda list

See Mamba environments for more on creating environments.

References:

https://mamba.readthedocs.io/en


Problems with the instructions on this section? Please send comments here.

Mamba environments

The simplest way to install libraries in your own $HOME when using the central mamba distribution is to create a mamba environment:

After loading a version of conda and mamba in your environment, with, for example, on the Slurm cluster:

$ module purge
$ module load miniforge/26.5.3-0

or, on the Grid Engine (legacy) cluster:

$ module load mamba

you can proceed to create a new mamba environment with:

$ mamba create -n MYENVNAME

or to create an environment with a specific version of python use, for example:

$ mamba create -n MYENVNAME python=3.9

where: MYENVNAME is the name of your conda virtual environment.

or to create an environment with a specific package use, for example:

$ mamba create -n MYENVNAME scipy

where: MYENVNAME is the name of your conda virtual environment.

which can also be achieved with:

$ mamba create -n myenv python
$ mamba install -n myenv scipy

to install a certain version of a package:

$ mamba create -n myenv scipy=0.17.3

Environments created with -n are stored in $HOME/.conda/envs, which counts against your $HOME quota. For large environments, use -p with a path in your project directory, e.g. mamba create -p /u/project/<group>/envs/myenv python=3.12, and activate it with conda activate /u/project/<group>/envs/myenv. Avoid $SCRATCH for environments you rely on, as files there that are not used for 14 days are deleted.

Environment creation from yaml files
$ mamba env create -f environment.yml
Installed mamba environments

On the Grid Engine (legacy) cluster, several general use environments for various packages have been centrally installed. On either cluster, to see which environments (yours and the centrally installed ones) are available issue:

$ mamba env list
Loading mamba environments

To load an environment:

$ conda activate ENVNAME

where ENVNAME is the name of the mamba environment. With the mamba modules on the Grid Engine (legacy) cluster you can also use mamba activate ENVNAME. On the Slurm cluster, use conda activate: mamba activate (mamba version 2) fails with Shell not initialized unless you run mamba shell init, which, like conda init, changes your ~/.bashrc and should be avoided.

Loading a mamba environment in a job script

On the Slurm cluster, in the job script use:

### mamba_python_submit.job START ###
#!/bin/bash
#SBATCH --job-name=mamba_python
# your Slurm account (see: h2 whoami):
#SBATCH --account=pi_gobruin
# Edit the lines below to request the runtime, cores and memory as needed:
#SBATCH --time=01:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=4G
# Standard output and error, in the directory you submit the job from:
#SBATCH --output=mamba_python.%j.out
# To be emailed when the job ends or fails, remove one "#" from the next
# two lines and replace joebruin with your user name:
##SBATCH --mail-user=joebruin@mail
##SBATCH --mail-type=END,FAIL

echo "Job $SLURM_JOB_ID started on $(hostname -s) at $(date)"

# load the job environment:
module purge
module load miniforge/26.5.3-0
module list

# activate an already existing conda environment (CHANGE THE NAME OF THE ENVIRONMENT)
# and ignore packages installed with pip install --user:
conda activate MYENV
export PYTHONNOUSERSITE=1

# substitute the Python script to run below (use its full path):
python $HOME/myproject/myscript.py

echo "Job $SLURM_JOB_ID ended at $(date)"
### mamba_python_submit.job STOP ###

where you would replace the account, the resources requested, the version of miniforge (use the one with which you created the environment), the environment name and the Python script as needed. export PYTHONNOUSERSITE=1 keeps packages installed with pip install --user in $HOME/.local from overriding the ones in the environment. Submit the job from a directory under $SCRATCH (see Where to write job output), after checking it, with:

$ h2 validate mamba_python_submit.job
$ sbatch mamba_python_submit.job

On the Grid Engine (legacy) cluster, in the submission script use:

### mamba_python_submit.sh START ###
#!/bin/bash
#$ -cwd
# error = Merged with joblog
#$ -o joblog.$JOB_ID
#$ -j y
# Edit the line below to request the appropriate runtime and memory
# (or to add any other resource) as needed:
#$ -l h_rt=1:00:00,h_data=1G
# Add multiple cores/nodes as needed:
#$ -pe shared 1
# Email address to notify
#$ -M $USER@mail
#$ -m bea

# echo job info on joblog:
echo "Job $JOB_ID started on:   " `hostname -s`
echo "Job $JOB_ID started on:   " `date `
echo " "

# load the job environment:
. /u/local/Modules/default/init/modules.sh
module load mamba
# To see which versions of mamba are available use: module av mamba

# activate an already existing conda environment (CHANGE THE NAME OF THE ENVIRONMENT):
conda activate MYENV

# in the following two lines substitute the command with the actual command to run:
echo "python --version"
python --version

# echo job info on joblog:
echo "Job $JOB_ID ended on:   " `hostname -s`
echo "Job $JOB_ID ended on:   " `date `
echo " "
### mamba_python_submit.sh STOP ###

Highlighted code corresponds to part that you may need to modify.


Problems with the instructions on this section? Please send comments here.

Ruby

Ruby is a high-level and general-purpose programming language. First released in 1995, Ruby has a clean and easy syntax that allows users to learn quickly and easily. It also has similar syntax to those used in C++ and Perl.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed). On the Grid Engine cluster a ruby module is also available (module av ruby).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

use the version of Ruby that is part of the operating system (no module needed). To verify the version of Ruby:

$ ruby --version

To use the interactive Ruby prompt:

$ irb

References:


Problems with the instructions on this section? Please send comments here.

Tcl

Tcl is a high-level, general-purpose, interpreted, and dynamic programming language. It was designed with the goal of being very simple but powerful. It usually goes with the Tk extension as Tcl/Tk, and enables a graphical user interface (GUI).

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed). On the Grid Engine cluster a tcl module is also available (module av tcl).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

use the version of Tcl/Tk that is part of the operating system (no module needed). Example of using Tcl interactively:

$ tclsh
% set x 32
32
% expr $x*3
96

References:


Problems with the instructions on this section? Please send comments here.

Programming libraries

ARPACK

ATLAS

BLAS

Boost C++

cuDNN

FFTW

GNU GSL

HDF

LAPACK

Intel MKL

NetCDF

PETSc

ScaLAPACK

Trilinos

zlib

ARPACK

“ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.” – ARPACK

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, request an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Load the ARPACK module which works with the compiler and MPI set as default on the Hoffman2 Cluster (or build your own version of the library against a preferred compiler/MPI):

module load arpack

To link a Fortran program against the serial ARPACK library, use:

ifort -O program.f $ARPACK_HOME/libarpack_LINUX64.a -o program

where program.f is the program you would like to link to the ARPACK library. Examples of programs that use ARPACK can be found in $ARPACK_HOME/EXAMPLES.

To link a Fortran program against the MPI ARPACK library, use:

mpiifort program.f $ARPACK_HOME/parpack_MPI-LINUX64.a $ARPACK_HOME/libarpack_LINUX64.a -o program

where program.f is the program you would like to link to the MPI ARPACK library. Examples of programs that user MPI ARPACK can be found in $ARPACK_HOME/PARPACK/EXAMPLES/MPI.

References:

Problems with the instructions on this section? Please send comments here.

ATLAS

“The ATLAS (Automatically Tuned Linear Algebra Software) project is an ongoing research effort focusing on applying empirical techniques in order to provide portable performance. At present, it provides C and Fortran77 interfaces to a portably efficient BLAS implementation, as well as a few routines from LAPACK.” –ATLAS website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Although there are versions of ATLAS installed on the Grid Engine (legacy) cluster, we recommend to use the Intel MKL library (available on both clusters) for full BLAS and LAPACK routines which performs best according to our benchmarks. Please check the Intel-MKL library page for how to use the Intel MKL-based BLAS and LAPACK libraries for optimal performance.

References:

Problems with the instructions on this section? Please send comments here.

BLAS

“The BLAS (Basic Linear Algebra Subprograms) are routines that provide standard building blocks for performing basic vector and matrix operations. The Level 1 BLAS perform scalar, vector and vector-vector operations, the Level 2 BLAS perform matrix-vector operations, and the Level 3 BLAS perform matrix-matrix operations. Because the BLAS are efficient, portable, and widely available, they are commonly used in the development of high quality linear algebra software, LAPACK for example.” –BLAS website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. We recommend the BLAS routines of Intel MKL (on the Slurm cluster module load intel and then module load mkl; on the Grid Engine cluster module load intel). The reference (Netlib) BLAS library is also part of the operating system on both clusters (link with -lblas, no module needed).

Although there are various versions of BLAS installed on the Hoffman2 Cluster, we recommend to use Intel MKL-based BLAS which performs best according to our benchmarks. Please check the Intel-MKL library page for how to use the Intel MKL-based BLAS library for optimal performance.

References:

Problems with the instructions on this section? Please send comments here.

Boost C++

Boost is a set of libraries for the C++ programming language that provides support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. It contains more than one hundred individual libraries.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, request an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

To see the available versions of Boost:

$ module available boost

To load boost into your environment:

$ module load boost/version

where version is the Boost version, e.g. 1_59_0 means Boost version 1.59.0. This command sets up the environment variables $BOOST_INC and $BOOST_LIB for the header file path and the library path, respectively.

For exmaple:

module load boost/1_59_0
echo $BOOST_INC
/u/local/apps/boost/1_59_0/gcc-4.4.7/include
echo $BOOST_LIB
/u/local/apps/boost/1_59_0/gcc-4.4.7/lib

References:

Problems with the instructions on this section? Please send comments here.

cuDNN

“The NVIDIA CUDA Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for deep neural networks. cuDNN provides highly tuned implementations for standard routines such as forward and backward convolution, pooling, normalization, and activation layers. “ –NVIDIA CUDA Home Page

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, the cuDNN library can only work with Nvidia CUDA it is also installed in the same library directory where other CUDA libraries are to load this library in your environment you will need to be on GPU node and load the cuda module (please see: Nvidia CUDA).

cuDNN will only work on GPU card with a computing capability 3.0 and up, see GPU access to see the type of cards you can request on the Hoffman2 Cluster and their computing capability.

References:

Problems with the instructions on this section? Please send comments here.

FFTW

“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). We believe that FFTW, which is free software, should become the FFT library of choice for most applications.” –FFTW website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider fftw on the Slurm cluster and module av fftw on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --cpus-per-task=2 --pty bash -l

load the serial version of FFTW in your environment with:

$ module purge
$ module load fftw/3.3.10-serial

or the version that also includes the MPI library (libfftw3_mpi) with:

$ module purge
$ module load fftw/3.3.10-parallel

Both modules load the intel/2024.1.0 module (compilers and Intel MPI) they were built with, and set the environment variables FFTW_DIR, FFTW_BIN, FFTW_INC and FFTW_LIB for FFTW’s top level, binaries, include files and (static) libraries. As the libraries were built with the Intel compilers, compile and link your program with the Intel compilers, for example:

$ icx myprog.c -I$FFTW_INC -L$FFTW_LIB -lfftw3 -o myprog
$ mpiicx myprog.c -I$FFTW_INC -L$FFTW_LIB -lfftw3_mpi -lfftw3 -o myprog

The double precision FFTW library is also part of the operating system of the compute nodes (no module needed), for use with the GNU compilers: gcc myprog.c -lfftw3 -lm -o myprog.

References:

Problems with the instructions on this section? Please send comments here.

GNU GSL

“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.” –GNU GSL website.

Note

Available on: the Slurm (production) cluster, as part of the operating system (no module needed), and the Grid Engine (legacy) cluster, as a module (to see the installed versions, use module av gsl).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

GSL is part of the operating system of the compute nodes, so no module is needed. Check the installed version with:

$ gsl-config --version

and compile and link your program with:

$ gcc myprog.c $(gsl-config --cflags) $(gsl-config --libs) -o myprog

Note

GSL is not available from Fortran.

References:

Problems with the instructions on this section? Please send comments here.

HDF

Hierarchical Data Format (HDF) is a set of file formats (HDF4, HDF5) designed to store and organize large amounts of data. Originally developed at the National Center for Supercomputing Applications, it is supported by The HDF Group, a non-profit corporation whose mission is to ensure continued development of HDF5 technologies and the continued accessibility of data stored in HDF. For more information, see the HDF Group website.

Note

Available on: the Slurm (production) cluster, where HDF5 is part of the operating system (no module needed), and the Grid Engine (legacy) cluster, where HDF4 and HDF5 are modules (to see the installed versions, use module av hdf). HDF4 and HDFView are not available on the Slurm cluster: if you need them there, please request them by opening a ticket.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

HDF5 (with its C, C++, Fortran and high-level libraries) is part of the operating system of the compute nodes, so no module is needed. Compile and link your program with the HDF5 compiler wrappers:

$ h5cc myprog.c -o myprog          # C
$ h5c++ myprog.cpp -o myprog       # C++
$ h5fc myprog.f90 -o myprog        # Fortran 90 (GNU Fortran)

The HDF5 command-line tools, such as h5dump and h5ls, are also available.

References:

Problems with the instructions on this section? Please send comments here.

LAPACK

LAPACK (“Linear Algebra Package”) is a standard software library for numerical linear algebra. It provides routines for solving systems of linear equations and linear least squares, eigenvalue problems, and singular value decomposition. For more information, see the LAPACK website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. We recommend the LAPACK routines of Intel MKL (on the Slurm cluster module load intel and then module load mkl; on the Grid Engine cluster module load intel). The reference (Netlib) LAPACK and BLAS libraries are also part of the operating system on both clusters (link with -llapack -lblas, no module needed).

Although there are various versions of LAPACK installed on the Hoffman2 Cluster, we recommend to use Intel MKL-based LAPACK which performs best according to our benchmarks. Please check the Intel-MKL library page for how to use the Intel MKL-based LAPACK library for optimal performance.

References:

Problems with the instructions on this section? Please send comments here.

Intel MKL

Intel Math Kernel Library, or Intel MKL, is a library of optimized math routines for science, engineering, and financial applications. Core math functions include BLAS, LAPACK, ScaLAPACK, sparse solvers, fast Fourier transforms, and vector math. For more information, see the Intel MKL website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. On the Slurm cluster, MKL is a module in the Intel oneAPI module tree: load an intel module first (intel/2026.2.0 is loaded by default) and then module load mkl; module spider mkl shows which intel version provides each MKL version. On the Grid Engine cluster, MKL is included in the intel module (see module av intel).

On the Slurm cluster, load Intel MKL in your environment with:

$ module load intel
$ module load mkl

which sets MKLROOT. With the Intel oneAPI compilers, the simplest way to link against MKL is the -qmkl option, for example:

$ icx myprog.c -qmkl -o myprog                  # threaded MKL
$ ifx myprog.f90 -qmkl=sequential -o myprog     # sequential MKL

Run your program on a compute node (see Slurm interactive sessions and Slurm batch jobs). Threaded MKL should use only the cores you requested with --cpus-per-task: if needed, set MKL_NUM_THREADS to $SLURM_CPUS_PER_TASK.

On the Grid Engine (legacy) cluster, Intel MKL is bundled with the Intel Parallel Studio. To use it, load the intel module:

$ module load intel

Once the Intel module is loaded, we recommend users to use the Intel MKL Link Line Advisor to make complex linking schemes for advanced MKL routines.

For example, the image below shows a snapshot to get compiling and linking options for BLAS and LAPACK routines with Intel Compiler 18 to be used in your applications from Intel MKL link Line Advisor:

BLAS-LAPACK/MKL link advisor

References:

Problems with the instructions on this section? Please send comments here.

NetCDF

NetCDF (Network Common Data Form) is a machine-independent binary data formats as well as libraries to support the creation, access, and sharing of array-oriented scientific data. This format of data and its programming interfaces are originally available for C, C++, Java, and Fortran, but now also available for Python, IDL, MATLAB, R, Ruby, and Perl. NetCDF was currently developed and is maintained at Unidata, which is a part of the University Corporation for AtmosphericResearch (UCAR).

Note

Available on: the Slurm (production) cluster, where the NetCDF C library and utilities are part of the operating system (no module needed), and the Grid Engine (legacy) cluster, where NetCDF is a module (to see the installed versions, use module av netcdf). The NetCDF Fortran and C++ libraries are not yet available on the Slurm cluster: if you need them there, please request them by opening a ticket.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

The NetCDF C library is part of the operating system of the compute nodes, so no module is needed. Check the installed version with:

$ nc-config --version

and compile and link your C program with:

$ gcc code.c $(nc-config --cflags) $(nc-config --libs) -o code

The NetCDF utilities, such as ncdump and ncgen, are also available.

References:

Problems with the instructions on this section? Please send comments here.

PETSc

PETSc, pronounced PET-see (the S is silent), is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations. It supports MPI, and GPUs through CUDA or OpenCL, as well as hybrid MPI-GPU parallelism. PETSc (sometimes called PETSc/Tao) also contains the Tao optimization software library. – PETSc website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Since PETSc has many configurable options, the recommended way to install PETSc is to install a customized version under your home directory by following the installation instructions, and build your application(s) against it. The Hoffman2 Cluster support group has expertise in using PETSc. Please contact Technical support should you have Hoffman2-specific questions about PETSc.

Problems with the instructions on this section? Please send comments here.

ScaLAPACK

“ScaLAPACK is a library of high-performance linear algebra routines for parallel distributed memory machines. ScaLAPACK solves dense and banded linear systems, least squares problems, eigenvalue problems, and singular value problems.” –ScaLAPACK website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of Intel MKL (on the Slurm cluster module load intel and then module load mkl; on the Grid Engine cluster module load intel).

The recommended way to use ScaLAPACK is via the Intel MKL, in which ScaLAPACK is built on top the optimized numerical routines available in MKL. To load Intel MKL into the user environment, see Intel MKL.

Once Intel MKL is loaded, use the Intel MKL link line advisor to determine the compile and link options. On the Slurm cluster, select Intel MPI as the MPI library (Intel MPI is loaded with the intel module) and run the resulting program with mpirun (see Distributed memory (MPI) jobs).

An example of selecting the MKL link line advisor options associated with Intel compiler 18 is appended below:

Scalapack/MKL link advisor

The compiler options and the link lines are then used build your application with ScaLAPACK.

References:

Problems with the instructions on this section? Please send comments here.

Trilinos

“The Trilinos Project is a community of developers, users and user-developers focused on collaborative creation of algorithms and enabling technologies within an object-oriented software framework for the solution of large-scale, complex multi-physics engineering and scientific problems on new and emerging high-performance computing (HPC) architectures.” –Trilinos website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Trilinos now contains more than 50 packages. Most users use only a subset of them. It is recommended to make a customized build under your home or group directory. The Hoffman2 Cluster support group has expertise in using Trilinos. Please contact Technical support if you have Hoffman2-specific Trilinos questions.

Problems with the instructions on this section? Please send comments here.

zlib

“zlib is designed to be a free, general-purpose, legally unencumbered – that is, not covered by any patents – lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms.” –zlib website

Note

Available on: the Slurm (production) cluster, as part of the operating system (no module needed), and the Grid Engine (legacy) cluster, as a module (to see the installed versions, use module av zlib).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

zlib (library and zlib.h header) is part of the operating system of the compute nodes, so no module is needed. Compile and link your program with:

$ gcc myprog.c -lz -o myprog

References:

Problems with the instructions on this section? Please send comments here.

Bioinformatics and biostatistics

Affymetrix-APT

ANNOVAR

BAMTools

BEDtools

Bowtie

BWA

Cellranger

Cufflinks

Galaxy

GATK

IMPUTE2

InsPecT

MAQ

Picard Tools

PLINK

SAMtools

SOLAR

TopHat

TreeMix

VEGAS

Affymetrix - Analysis Power Tools

“The Analysis Power Tools (APT) is a collection of command line programs for analyzing and working with Affymetrix microarray data. These programs are generally focused on CEL file level analysis.” – Affymetrix APT Documentation

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

You can check the available versions of Affymetrics’ Analysis Power Tools with:

$ module av affymetrix

To load the default version of the Affymetrix Analysis Power Tools, issue:

$ module load affymetrix

You can load a different version of Affymetrix Analysis Power Tools in your environment with:

$ module load affymetrix/VERSION

where VERSION is replaced by the desired version of affymetrix.

To get the help menu of apt-probeset-summarize:

$ apt-probeset-summarize --help

To see which Affymetrics’ Analysis Power Tools are available, please refer to the Affymetrics’ Analysis Power Tools documentation.

References:

Problems with the instructions on this section? Please send comments here.

ANNOVAR

“ANNOVAR is an efficient software tool to utilize update-to-date information to functionally annotate genetic variants detected from diverse genomes (including human genome hg18, hg19, hg38, as well as mouse, worm, fly, yeast and many others).” – ANNOVAR Documentation

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Running ANNOVAR to prepare local annotation databases

Preparation of local annotation databases using ANNOVAR requires downloading databases from outside of the Hoffman2 Cluster. This step should be performed from the Hoffman2 Cluster transfer node (referred to as dtn). The transfer node can be accessed from your local computer via terminal and an ssh client:

$ ssh login_id@dtn.hoffman2.idre.ucla.edu

or, from any node of the Hoffman2 Cluster, with either:

$ ssh dtn1

or:

$ ssh dtn2

From the transfer node load ANNOVAR in your environment:

$ module load annovar

and use the ANNOVAR command to prepare a local annotation database:

$ annotate_variation.pl -downdb [optional arguments] <table-name> <output-directory-name>

References:

Problems with the instructions on this section? Please send comments here.

BAMTools

“A software suite for programmers and end users that facilitates research analysis and data management using BAM files. BamTools provides both the first C++ API publicly available for BAM file support as well as a command-line toolkit.” – BAMTools

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider bamtools on the Slurm cluster and module av bamtools on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load BAMTools in your environment with:

$ module purge
$ module load bamtools

and check that it works with:

$ bamtools --version
$ bamtools help

Please refer to the BAMTools documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

BEDtools

“The BEDTools allow a fast and flexible way of comparing large datasets of genomic features. The BEDtools utilities allow one to address common genomics tasks such as finding feature overlaps and computing coverage.” – BEDtools

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider bedtools on the Slurm cluster and module av bedtools on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load BEDtools in your environment with:

$ module purge
$ module load bedtools

and check that it works with:

$ bedtools --version
$ bedtools --help

Please refer to the BEDtools documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Bowtie

“An ultrafast memory-efficient short read aligner. Bowtie helps you visualize your data interactively. No javascript required, you build your dashboard in pure Python. Easy to deploy so you can share results with others.” – Bowtie

Note

Available on: the Slurm (production) cluster (Bowtie 2 only) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider bowtie2 on the Slurm cluster and module av bowtie on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load Bowtie 2 in your environment with:

$ module purge
$ module load bowtie2

and check that it works with:

$ bowtie2 --version
$ bowtie2 --help

Please refer to the Bowtie 2 manual to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

BWA

“Burrows-Wheeler Aligner, BWA, is a software package for mapping low-divergent sequences against a large reference genome.” – BWA

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider bwa on the Slurm cluster and module av bwa on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

load BWA in your environment with:

$ module purge
$ module load bwa

and check that it works with:

$ bwa
$ bwa mem

Without arguments, bwa prints its version and the list of its commands.

Please refer to the BWA documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Cellranger

“Cell Ranger is a set of analysis pipelines that process Chromium single-cell data to align reads, generate feature-barcode matrices, perform clustering and other secondary analysis, and more.” – Cell Ranger

Note

Available on: the Slurm (production) cluster (Cell Ranger 9.0.0) and the Grid Engine (legacy) cluster (Cell Ranger 5.0.1 to 10.1.0, Cell Ranger ARC and ATAC, Space Ranger and Xenium Ranger). To see the installed versions, use module spider cellranger on the Slurm cluster and module av cellranger on the Grid Engine cluster. If you need a version, or one of the other pipelines, that is not yet available on the Slurm cluster, please request it by opening a ticket.

Cell Ranger pipelines need a reference transcriptome (e.g., refdata-gex-GRCh38-2024-A). On the Slurm cluster no references are installed: download the one you need from the 10x Genomics downloads page into your project directory or your scratch directory. Pipelines such as cellranger count need many cores and a lot of memory (at least 64 GB for a human sample), so run them in a batch job and not on a login node.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=02:00:00 --cpus-per-task=4 --mem=16G --pty bash -l

load Cell Ranger in your environment with:

$ module purge
$ module load cellranger/9.0.0

and check that it works with:

$ cellranger --version
$ cellranger testrun --id=check_install

cellranger testrun runs the count pipeline on a small test dataset included with Cell Ranger. Run it from a directory under $SCRATCH, as it writes its output to the directory check_install. To see the pipelines and their options:

$ cellranger --help
$ cellranger count --help

References:

Problems with the instructions on this section? Please send comments here.

Galaxy

“Galaxy is an open source, web-based platform for data intensive biomedical research.” –Galaxy website

If you are interested in using the Galaxy server on the Hoffman2 Cluster, please contact Weihong Yan wyan@chem.ucla.edu for authorization.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

References:

Problems with the instructions on this section? Please send comments here.

GATK

“The Genome Analysis Toolkit (GATK) is a set of bioinformatic tools for analyzing high-throughput sequencing (HTS) and variant call format (VCF) data. The toolkit is well established for germline short variant discovery from whole genome and exome sequencing data. GATK4 expands functionality into copy number and somatic analyses and offers pipeline scripts for workflows. Version 4 (GATK4) is open-source at https://github.com/broadinstitute/gatk.” – GATK

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider gatk on the Slurm cluster and module av gatk on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=8G --pty bash -l

load GATK in your environment with:

$ module purge
$ module load gatk

and check that it works with:

$ gatk --version
$ gatk --list

Please refer to the GATK documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

IMPUTE2

“IMPUTE version 2 (also known as IMPUTE2) is a genotype imputation and haplotype phasing program based on ideas from Howie et al. 2009:

    1. Howie, P. Donnelly, and J. Marchini (2009) A flexible and accurate genotype imputation method for the next generation of genome-wide association studies. PLoS Genetics 5(6): e1000529 [Open Access Article] [Supplementary Material]”

– IMPUTE 2 documentation website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider impute on the Slurm cluster and module av impute on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load IMPUTE2 in your environment with:

$ module purge
$ module load impute

and check that it works with:

$ impute2

Without arguments, impute2 prints its version and a short usage message.

Please refer to the IMPUTE2 documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

InsPecT

“A Computational Tool to Infer mRNA Synthesis, Processing and Degradation Dynamics From RNA- And 4sU-seq Time Course Experiments” – Inspect

Warning

Inspect is currently not loaded on the Hoffman2 Cluster.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of Inspect with:

$ module av inspect

Load the default version of Inspect in your environment with:

$ module load inspect

To load a different version, issue:

$ module load inspect/VERSION

where VERSION is replaced by the desired version of Inspect.

To invoke Inspect:

$ inspect &

Please refer to the Inspect documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

MAQ

“Maq is a software that builds mapping assemblies from short reads generated by the next-generation sequencing machines. It is particularly designed for Illumina-Solexa 1G Genetic Analyzer, and has a preliminary functionality to handle AB SOLiD data.” – maq

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of Maq with:

$ module av maq

Load the default version of maq in your environment with:

$ module load maq

To load a different version, issue:

$ module load maq/VERSION

where VERSION is replaced by the desired version of Maq.

To invoke maq:

$ maq &

Please refer to the Maq documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Picard Tools

“Picard is a set of command line tools for manipulating high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF” – Picard Tools

Note

Available on: the Slurm (production) cluster (module picard) and the Grid Engine (legacy) cluster (module picard_tools). To see the installed versions, use module spider picard on the Slurm cluster and module av picard_tools on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=8G --pty bash -l

load Picard Tools in your environment with:

$ module purge
$ module load picard

and check that it works with:

$ java -jar $PICARD -h

This lists the available tools. The module sets $PICARD to the Picard jar file, so run any tool with java [jvm-args] -jar $PICARD <PicardToolName> [options] (most tools run in 2 GB of Java heap, -Xmx2g).

Please refer to the Picard Tools documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

SAMtools

“SAM (Sequence Alignment/Map) is a flexible generic format for storing nucleotide sequence alignment. SAM tools provide efficient utilities for manipulating alignments in the SAM and Bam formats.” – SAMtools

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider samtools on the Slurm cluster and module av samtools on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load SAMtools in your environment with:

$ module purge
$ module load samtools

and check that it works with:

$ samtools --version
$ samtools help

Please refer to the SAMtools documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

SOLAR

“SOLAR-Eclipse is an extensive, flexible software package for genetic variance components analysis, including linkage analysis, quantitative genetic analysis, SNP association analysis (QTN and QTLD), and covariate screening. Operations are included for calculation of marker-specific or multipoint identity-by-descent (IBD) matrices in pedigrees of arbitrary size and complexity, and for linkage analysis of multiple quantitative traits and/or discrete traits which may involve multiple loci (oligogenic analysis), dominance effects, household effects, and interactions. Additional features include functionality for mega and meta-genetic analyses where data from diverse cohorts can be pooled to improve statistical significance.” – SOLAR

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of SOLAR with:

$ module av solar

Load the default version of SOLAR in your environment with:

$ module load solar

To load a different version, issue:

$ module load solar/VERSION

where VERSION is replaced by the desired version of SOLAR.

To invoke solar:

$ solar &

Please refer to the SOLAR documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

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

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of TopHat with:

$ module av tophat

Load the default version of TopHat in your environment with:

$ module load tophat

To load a different version, issue:

$ module load tophat/VERSION

where VERSION is replaced by the desired version of TopHat.

To invoke TopHat:

$ tophat &

Please refer to the TopHat documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

TreeMix

“TreeMix is a method for inferring the patterns of population splits and mixtures in the history of a set of populations.” – TreeMix

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of TreeMix with:

$ module av treemix

Load the default version of TreeMix in your environment with:

$ module load treemix

To load a different version, issue:

$ module load treemix/VERSION

where VERSION is replaced by the desired version of TreeMix.

To invoke TreeMix:

$ treemix &

Please refer to the TreeMix documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

VEGAS

“Versatile Gene-based Association Study” – VEGAS

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of VEGAS with:

$ module av vegas

Load the default version of VEGAS in your environment with:

$ module load vegas

To load a different version, issue:

$ module load vegas/VERSION

where VERSION is replaced by the desired version of VEGAS.

To invoke VEGAS:

$ vegas &

Please refer to VEGAS documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Chemistry and chemical engineering

Amber

CP2K

CPMD

Gaussian

GaussView

GROMACS

Jmol

LAMMPS

Molden

MOPAC

NAMD

NWChem

Open Babel

Q-Chem

Quantum ESPRESSO

VMD

Amber

“Amber is the collective name for a suite of programs that allow users to carry out molecular dynamics simulations, particularly on biomolecules.” – Amber

Note

Available on: the Slurm (production) cluster (Amber 24 GPU build only, amber/24_GPU, which needs module load cuda/12.8 first) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider amber on the Slurm cluster and module av amber on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with one GPU (see Requesting GPUs with Slurm):

$ srun --time=01:00:00 --mem=8G --gres=gpu:1 --pty bash -l

load Amber in your environment with:

$ module purge
$ module load cuda/12.8
$ module load amber/24_GPU

The amber/24_GPU module is only visible after module load cuda/12.8. It loads its own Intel MPI (intel/2024.1.0) and Python, and sets $AMBERHOME (AmberTools) and $PMEMDHOME (pmemd). To check the version of sander and of the GPU version of pmemd issue:

$ sander --version
$ pmemd.cuda --version

Please refer to Amber documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

CP2K

“CP2K is a quantum chemistry and solid state physics software package that can perform atomistic simulations of solid state, liquid, molecular, periodic, material, crystal, and biological systems.” – CP2K

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc.), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of CP2K with:

$ module av cp2k

Load the default version of CP2K in your environment with:

$ module load cp2k

To invoke CP2K:

$ cp2k.popt --version

Please refer to CP2K documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

CPMD

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Coming soon

This section is under construction. Please call again soon!

Gaussian

“Gaussian is a general purpose computational chemistry software package initially released in 1970 by John Pople and his research group at Carnegie Mellon University as Gaussian 70.” – Gaussian

Note

Available on: the Slurm (production) cluster (Gaussian 16 C.02 only) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider gaussian on the Slurm cluster and module av gaussian on the Grid Engine cluster.

Important

By contractual agreement with Gaussian, Inc., only authorized members of the UCLA community can use Gaussian. To request to be authorized to use Gaussian on the Hoffman2 Cluster you will need to perform the following two these actions:

  • navigate to the SIM account management portal and in the search bar below Request resource for your account type gaussian and press the adjacent REQUESTME button

Gaussian 16 is installed on the Slurm cluster in three builds, which must match the CPU of the compute node where they run: gaussian/g16c02_avx2 (nodes with AVX2, most nodes), gaussian/g16c02_avx (older Intel nodes with AVX only) and gaussian/g16c02_sse4. After requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --cpus-per-task=4 --mem=16G --pty bash -l

check whether the node supports AVX2 (if the command prints nothing, use the avx build, or the sse4 build if grep -w avx /proc/cpuinfo also prints nothing):

$ grep -m1 -ow avx2 /proc/cpuinfo

and load the matching build of Gaussian in your environment, e.g.:

$ module purge
$ module load gaussian/g16c02_avx2

Then run Gaussian on an input file with (set %nprocshared in the input file to the number of cores requested):

$ g16 < input.com > input.out

GaussView can be used to prepare inputs or visualize outputs. Long calculations are better run as batch jobs (see the Slurm batch tab).

Please refer to Gaussian documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

GaussView

GaussView is a graphical user to Gaussian. GaussView

Note

Available on: the Slurm (production) cluster (GaussView 6.1.1 only) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider gaussview on the Slurm cluster and module av gaussview on the Grid Engine cluster.

Important

By contractual agreement with Gaussian, Inc., only authorized members of the UCLA community can use Gaussian. To request to be authorized to use Gaussian on the Hoffman2 Cluster you will need to perform the following two these actions:

  • navigate to the SIM account management portal and in the search bar below Request resource for your account type gaussian and press the adjacent REQUESTME button

Note

To open the graphical user interface (GUI) of GaussView on the Slurm cluster, you will need to have connected to the Hoffman2 Cluster either via a remote desktop or via terminal and SSH with X11 forwarding enabled (see Opening GUI applications from a Slurm interactive session).

GaussView will let you submit a com file to Gaussian. When you close your GaussView session, any Gaussian process that is still running will be aborted, so run long calculations as Gaussian batch jobs instead.

Start an interactive session on a compute node with X11 forwarding with the x11session script (remember to specify the needed runtime, memory, number of computational cores, etc.), for example:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

then load a Gaussian build that matches the CPU of the node (gaussian/g16c02_avx2 on most nodes; see the Gaussian section) followed by GaussView, and start the GUI:

$ module purge
$ module load gaussian/g16c02_avx2
$ module load gaussview/6.1.1
$ gview &

Please refer to GaussView documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

GROMACS

“GROMACS is a versatile package to perform molecular dynamics, i.e. simulate the Newtonian equations of motion for systems with hundreds to millions of particles.” – GROMACS

Note

Available on: the Slurm (production) cluster (GROMACS 2024.3 for CPUs and 2026.1 for GPUs) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider gromacs on the Slurm cluster and module av gromacs on the Grid Engine cluster.

To run the molecular dynamics part (mdrun) of the GROMACS suite of programs, you are required to have previously generated an input file containing information about the topology, the structure and the parameters of your system. Such input file, which generally has a .tpr, a .tpb or a .tpa extension, is generated via the grompp part of GROMACS.

On the Slurm cluster two builds of GROMACS are available, both with the MPI-enabled gmx_mpi executable (there is no gmx):

  • gromacs/2024.3: CPU build with Intel MPI. It loads intel/2024.1.0, which conflicts with the default intel module, so run module purge before loading it.

  • gromacs/2026.1_ompi: GPU (CUDA) build with Open MPI and PLUMED. It is only visible after module load cuda/12.8 and loads Open MPI, UCX, PLUMED and Python for you.

You can execute the pre- and post-processing GROMACS tasks (such as gmx_mpi pdb2gmx, gmx_mpi solvate, gmx_mpi grompp, etc.) within an interactive session, which you can request for example with (remember to specify a runtime, memory, number of computational cores, etc. as needed):

$ srun --time=01:00:00 --cpus-per-task=2 --mem=4G --pty bash -l

Load GROMACS in your environment with:

$ module purge
$ module load gromacs/2024.3

or, for the GPU build in a session that requested a GPU (e.g. srun --time=01:00:00 --cpus-per-task=4 --mem=8G --gres=gpu:1 --pty bash -l, see Requesting GPUs with Slurm), with:

$ module purge
$ module load cuda/12.8
$ module load gromacs/2026.1_ompi

To check the version of GROMACS:

$ gmx_mpi -version

Please refer to GROMACS documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Jmol

“Jmol: an open-source Java viewer for chemical structures in 3D Jmol icon with features for chemicals, crystals, materials and biomolecules” – Jmol

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

No module or queue script is available for Jmol.

Note

On the Grid Engine (legacy) cluster, to open the graphical user interface (GUI) of Jmol, you will need to have connected to the Hoffman2 Cluster either via a remote desktop or via terminal and SSH having followed directions on how to open GUI applications. Under these conditions, Jmol will start in GUI mode by default.

Start requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

Then enter:

$ jmol &

References:

Problems with the instructions on this section? Please send comments here.

LAMMPS

“LAMMPS is a classical molecular dynamics code with a focus on materials modeling. It’s an acronym for Large-scale Atomic/Molecular Massively Parallel Simulator. – LAMMPS

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc.), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe dc\* 8

After the interactive session is awarded, if you will be testing the parallel version, you will want to load the scheduler environmental variables (such as $NSLOTS for the number of parallel workers, etc._:

$ . /u/local/bin/set_qrsh_env.sh

you can check the available versions of LAMMPS with:

$ modules_lookup -m lammps

Load the default version of LAMMPS in your environment with:

$ module load intel ; module load lammps

To load a different version, issue:

$ module load lammps/VERSION

where VERSION is replaced by the desired version of LAMMPS.

The LAMMPS executable is named lmp_mpi

To invoke LAMMPS in serial:

$ lmp_mpi < in.input

To invoke LAMMPS in parallel:

$ `which mpirun` -np $NSLOTS lmp_mpi

Please refer to LAMMPS documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Molden

“The Molden project aims to esthablish a drug design platform free of charge.” – MOLDEN project

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to open the graphical user interface (GUI) of Molden, you will need to have connected to the Hoffman2 Cluster either via a remote desktop or via terminal and SSH having followed directions on how to open GUI applications. Under these conditions, Molden will start in GUI mode by default.

After requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc.), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of Molden with:

$ module av molden

Load the default version of Molden in your environment with:

$ module load molden

To invoke Molden:

$ molden &

Please refer to Molden documentation to learn how to use this software.

References:

The project page (first two links below) is currently unreachable.

Problems with the instructions on this section? Please send comments here.

MOPAC

“MOPAC (Molecular Orbital PACkage) is a semiempirical quantum chemistry program based on Dewar and Thiel’s NDDO approximation.” – MOPAC

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc.), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of MOPAC with:

$ module av mopac

Load the default version of MOPAC in your environment with:

$ module load mopac

Input files to MOPAC, also known as MOPAC data sets, need to have an .mop, .dat, or .arc extension. An example of input file for geometry optimization of formic acid, formic_acid.mop is given below:

MINDO/3
Formic acid
Example of normal geometry definition
O
C    1.20 1
O    1.32 1  116.8 1    0.0 0   2  1
H    0.98 1  123.9 1    0.0 0   3  2  1
H    1.11 1  127.3 1  180.0 0   2  1  3
0    0.00 0    0.0 0    0.0 0   0  0  0

save this file as: formic_acid.mop and invoke MOPAC with:

$ mopac formic_acid.mop

Please refer to MOPAC documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

NAMD

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Coming soon

This section is under construction. Please call again soon!

NWChem

“NWChem provides many methods for computing the properties of molecular and periodic systems using standard quantum mechanical descriptions of the electronic wavefunction or density.” – NWChem

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider nwchem on the Slurm cluster and module av nwchem on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with 4 MPI processes on one node:

$ srun --time=01:00:00 --ntasks=4 --mem-per-cpu=2G --pty bash -l

load NWChem in your environment with:

$ module purge
$ module load nwchem/7.2.3
$ export NWCHEM_BASIS_LIBRARY=$NWCHEM_DIR/data/libraries/
$ export NWCHEM_NWPW_LIBRARY=$NWCHEM_DIR/data/libraryps/

(the two export lines tell NWChem where its basis set and pseudopotential libraries are). nwchem/7.2.3 loads its own Intel MPI (intel/2024.1.0), which conflicts with the default intel module: do not skip module purge and do not load another MPI on top of it. To invoke NWChem:

$ mpirun $NWCHEM_BIN/nwchem input.nw

where input.nw will need to be substituted with the actual name of your NWChem input file. mpirun takes the number of MPI processes from the Slurm allocation (start NWChem with mpirun, never with srun).

Please refer to NWChem documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Open Babel

“Open Babel is a chemical toolbox designed to speak the many languages of chemical data. It’s an open, collaborative project allowing anyone to search, convert, analyze, or store data from molecular modeling, chemistry, solid-state materials, biochemistry, or related areas.” – Open Babel

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider openbabel on the Slurm cluster and module av openbabel on the Grid Engine cluster.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=4G --pty bash -l

load Open Babel in your environment with:

$ module purge
$ module load openbabel/3.1.1

To invoke Open Babel:

$ obabel --help

(the old babel command is not part of Open Babel 3, use obabel). Please refer to Open Babel documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Q-Chem

“Q-Chem is a comprehensive ab initio quantum chemistry software for accurate predictions of molecular structures, reactivities, and vibrational, electronic and NMR spectra.” – Q-Chem

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. On the Slurm cluster, Q-Chem 6.3.0 is available as qchem/6.3.0_SHRDMEM, the shared-memory (multi-threaded) version, which runs on the cores of one node. The parallel (MPI) version for the Slurm cluster is still being tested and will be documented here when it is ready. To see the installed versions, use module spider qchem on the Slurm cluster and module av qchem on the Grid Engine cluster.

On the Slurm cluster, request an interactive session with the cores, runtime and memory you need. For the shared-memory version, ask for one task with several cores, for example:

$ srun --nodes=1 --ntasks=1 --cpus-per-task=8 --mem-per-cpu=2G --time=01:00:00 --pty bash -l

then load Q-Chem in your environment and run it on the cores of your session with:

$ module purge
$ module load qchem/6.3.0_SHRDMEM
$ qchem -nt $SLURM_CPUS_PER_TASK sample.in sample.out

where you will modify the name of the input, sample.in, and output, sample.out, files as needed. The -nt option sets the number of threads; keep it equal to the number of cores of your session ($SLURM_CPUS_PER_TASK).

To modify the default memory create the file $HOME/.qchemrc and set its content to, for example:

$rem
 MEM_TOTAL  8000
$end

Please refer to the Q-Chem documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Quantum ESPRESSO

“Quantum ESPRESSO is an integrated suite of Open-Source computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials.” – Quantum ESPRESSO

Note

Available on: the Slurm (production) cluster (Quantum ESPRESSO 7.3.1 only, serial build) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider espresso on the Slurm cluster and module av espresso on the Grid Engine cluster. If you need an MPI-parallel build on the Slurm cluster, please request it by opening a ticket.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=5G --pty bash -l

load Quantum ESPRESSO in your environment with:

$ module purge
$ module load espresso/7.3.1

espresso/7.3.1 loads intel/2024.1.0, which conflicts with the default intel module, so do not skip module purge. This build is serial (pw.x prints “Serial version”): run it on one core, without mpirun. To invoke, for example, the pw.x Quantum ESPRESSO binary use:

$ pw.x -inp <espresso.in>

where <espresso.in> is the name of the input file.

Please refer to Quantum ESPRESSO documentation to learn how to use this software.

References:


This Quantum ESPRESSO section was last updated on: Dec 01, 2026.
Problems with the instructions on this section? Please send comments here.

VMD

“VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.” – VMD

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to open the graphical user interface (GUI) of VMD, you will need to have connected to the Hoffman2 Cluster either via a remote desktop or via terminal and SSH having followed directions on how to open GUI applications. Under this conditions, VMD will start in GUI mode by default.

After requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc.), for example with:

$ qrsh -l h_rt=1:00:00,h_data=2G -pe shared 2

you can check the available versions of VMD with:

$ module av vmd

Load the default version of VMD in your environment with:

$ module load vmd

To invoke VMD:

$ vmd &

Please refer to VMD documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Engineering and mathematics

ABAQUS

Ansys

COMSOL

Maple

MATLAB

Mathematica

NCO

Octave

OpenSees

ABAQUS

Abaqus is a software suite for finite element analysis.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider abaqus on the Slurm cluster and module av abaqus on the Grid Engine cluster.

Note

To open the Abaqus/CAE graphical user interface (GUI) on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session).

On the Slurm cluster, from a terminal on the DCV desktop request an interactive session for GUI applications (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

For command-line work only (no GUI), an interactive session started with srun is enough:

$ srun --time=02:00:00 --cpus-per-task=2 --mem=8G --pty bash -l

Then load Abaqus in your environment with:

$ module purge
$ module load abaqus/2025

(to see the installed versions use module spider abaqus). To invoke Abaqus/CAE (from an x11session shell):

$ abaqus cae &

To see the options of the abaqus command:

$ abaqus help

References:

Problems with the instructions on this section? Please send comments here.

Ansys

“Next-generation pervasive engineering simulations” – Ansys

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider ansys on the Slurm cluster and module av ansys on the Grid Engine cluster.

Note

To run the Ansys graphical user interface (GUI) on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session).

On the Slurm cluster, from a terminal on the DCV desktop request an interactive session for GUI applications (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

Then load Ansys in your environment with:

$ module purge
$ module load ansys/2026R1

(to see the installed versions use module spider ansys). To invoke Ansys Workbench:

$ runwb2 &

or, for Ansys Fluent:

$ fluent &

References:

Problems with the instructions on this section? Please send comments here.

COMSOL

COMSOL Multiphysics is a cross-platform finite element analysis, solver and multiphysics simulation software. It allows conventional physics-based user interfaces and coupled systems of partial differential equations. For more information, see the COMSOL website.

Note

OARC does not own publicly available licenses for this software. If you are interested to run COMSOL on the Hoffman2 Cluster you will need to either check out a license from a COMSOL license manager to which you have access or consider taking advantage of the licensing services available on the Hoffman2 Cluster and purchase a network type license directly with COMSOL, you will then need to communicate with us to request installation of the license and the license server Host ID.

Warning

If your group does not own or can connect to a license manager with a valid COMSOL license, any interactive or batch job submission will receive a licensing error as all licenses running on the cluster are reserved for the respective licensees.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider comsol on the Slurm cluster and module av comsol on the Grid Engine cluster.

Note

To run the COMSOL graphical user interface (GUI) on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session).

COMSOL input files are generally created within the COMSOL GUI frontend. On the Slurm cluster, from a terminal on the DCV desktop request an interactive session for GUI applications (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

Then, at the compute node shell prompt, enter:

$ module purge
$ module load comsol/6.4
$ comsol &

To see the installed versions use module spider comsol.

References:

Problems with the instructions on this section? Please send comments here.

Maple

Maple is a symbolic and numeric computing environment as well as a multi-paradigm programming language. It covers several areas of technical computing, such as symbolic mathematics, numerical analysis, data processing, visualization, and others. See the Maplesoft website for more information.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for Maple.

To run Maple interactively with its GUI interface you must first connect to the cluster login node with X11 forwarding enabled. Then use qrsh to obtain an interactive compute node.

Note

To run Maple you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

module load maple

Next, enter:

maple [maple-command-line-parameters]

or,

xmaple [xmaple-command-line-parameters]

or,

mint [mint-command-line-parameters]

Note: Classic worksheet (-cw) is not available. Default is interface(prettyprint=true);

References:

Problems with the instructions on this section? Please send comments here.

Mathematica

Wolfram Mathematica is a modern technical computing system spanning most areas of technical computing — including neural networks, machine learning, image processing, geometry, data science, visualizations, and others. The system is used in many technical, scientific, engineering, mathematical, and computing fields. For more informaiton, see the Wolfram website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider mathematica on the Slurm cluster and module av mathematica on the Grid Engine cluster.

You can use any text editor to make the appropriate input files for Mathematica.

Note

To run the Mathematica notebook interface (GUI) on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session).

On the Slurm cluster, for the GUI, from a terminal on the DCV desktop request an interactive session with, for example:

$ x11session --time=01:00:00 --mem=8G

or, for the command line interface only, request an interactive session with, for example:

$ srun --time=01:00:00 --mem=8G --pty bash -l

Then enter:

$ module purge
$ module load mathematica/15.0

To start the notebook interface (from an x11session shell):

$ wolframnb &

Or, to use its command line interface, enter:

$ math

To see the installed versions use module spider mathematica.

References:

Problems with the instructions on this section? Please send comments here.

MATLAB

“MATLAB combines a desktop environment tuned for iterative analysis and design processes with a programming language that expresses matrix and array mathematics directly.” – MathWorks

Under the Total Academic Headcount License, MATLAB and the full suite of toolboxes is available to the UCLA research community. On the Hoffman2 Cluster you have access to an unlimited number of licenses and to the full suite of MathWorks toolboxes including the MATLAB Parallel Server which lets you submit your MATLAB programs and Simulink simulations to an unlimited number of computational cores.

Note

Available on: the Slurm (production) cluster (MATLAB R2026a) and the Grid Engine (legacy) cluster. To see the installed versions, use module spider matlab on the Slurm cluster and module av matlab on the Grid Engine cluster.

Note

To open the MATLAB desktop on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session).

Warning

Do not use srun --x11 to open the MATLAB desktop: Slurm’s X11 forwarding can deadlock with it and freeze your whole DCV desktop. Use x11session instead.

On the Slurm cluster, from a terminal on the DCV desktop request an interactive session for GUI applications with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ x11session --time=02:00:00 --mem=8G -c 2

The MATLAB desktop needs about 5 GB of memory to start, so request at least 8 GB. Then load MATLAB in your environment with:

$ module purge
$ module load matlab/R2026a

(to see the installed versions use module spider matlab) and invoke the MATLAB desktop with:

$ matlab &

Drawing the desktop over X11 can be slow; for a faster start, use the MATLAB command window without the desktop:

$ matlab -nodesktop -nosplash

For work that does not need graphics, an interactive session started with srun is enough:

$ srun --time=02:00:00 --cpus-per-task=2 --mem=8G --pty bash -l
$ module purge
$ module load matlab/R2026a
$ matlab -nodisplay

To use the MATLAB compiler to create a stand-alone executable, load the MATLAB module and use mcc as described in the GE interactive tab:

$ mcc -m [mcc-options] main.m f1.m f2.m

Please refer to the MATLAB documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

NCO

“The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5. It exploits the geophysical expressivity of many CF (Climate & Forecast) metadata conventions, the flexible description of physical dimensions translated by UDUnits, the network transparency of OPeNDAP, the storage features (e.g., compression, chunking, groups) of HDF (the Hierarchical Data Format), and many powerful mathematical and statistical algorithms of GSL (the GNU Scientific Library). NCO is fast, powerful, and free.” – The NCO website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use NCO, use the module command:

module load nco

You will then be able to invoke NCO’s binaries (i.e., ncap2, ncatted, ncbo, ncclimo, nces, ncecat, ncflint, ncks, ncpdq, ncra, ncrcat, ncremap, ncrename, ncwa) from the command line.

Please refer to the NCO documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Octave

GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB. For more information, see the GNU Octave website.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use Octave, use the module command:

$ module load octave

See How to use the module command for further information.

Please refer to the Octave documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

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.” – OpenSees Wiki website.

On the Hoffman2 Cluster, OpenSees and OpenSeesMP is installed as an Apptainer container. This container is located on the Hoffman2 Cluster at $H2_CONTAINER_LOC/h2-opensees_3.3.0.sif

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as Apptainer containers (OpenSees 2.4.4, 3.3.0, 3.4.0 and 3.5.0). To see the installed versions, use module load apptainer and then ls $H2_CONTAINER_LOC/h2-opensees* on either cluster.

You can use any text editor to make the appropriate input files for OpenSees.

On the Slurm cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

At the compute node shell prompt, enter:

$ module purge
$ module load apptainer/1.3.4
$ apptainer exec $H2_CONTAINER_LOC/h2-opensees_3.5.0.sif OpenSees sample.tcl

where sample.tcl is your input file, or open a shell in the container (the prompt changes to Apptainer>) and run OpenSees, OpenSeesSP or OpenSeesMP from there:

$ apptainer shell $H2_CONTAINER_LOC/h2-opensees_3.5.0.sif
Apptainer> OpenSees

Please see the OpenSees documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

Physics

CERN ROOT

Geant4

CERN ROOT

ROOT is an object-oriented program and library developed by CERN. It was originally designed for particle physics data analysis and contains several features specific to this field, but it is also used in other applications such as astronomy and data mining. For more information, see the ROOT website.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=2G,h_rt=1:00:00

Use qrsh to obtain a session on a compute node. Then enter:

$ module load cern-root
$ root

To exit the cint C++ interpreter, at the ROOT prompt, enter:

.q

References:

Problems with the instructions on this section? Please send comments here.

Geant4

“Geant4 is a toolkit for the simulation of the passage of particles through matter. Its areas of application include high energy, nuclear and accelerator physics, as well as studies in medical and space science. “ – Geant4

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

$ qrsh -l h_data=5G,h_rt=1:00:00 -pe shared 1

To set up your environment to use Geant4, use the module command:

$ module load gcc/8.30
$ module load geant4

To test the installation:

$ module load gcc/8.30; module load geant4
$ cp -rp /u/local/apps/geant4/11.0.1/gcc-8.3.0/examples/basic/B1 ./
$ cd B1
$ mkdir build
$ cd build
$ cmake ..

References:

Problems with the instructions on this section? Please send comments here.

Statistics

R

RStudio

Stata

R

R is a programming language and free software environment for statistical computing and graphics supported by the R Foundation for Statistical Computing. The R language is widely used among statisticians and data miners for developing statistical software and data analysis. For more information, see the R-project website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider R on the Slurm cluster and module av R on the Grid Engine cluster.

You can use any text editor to make the appropriate input files for R. RStudio, an IDE for R, can be used to prepare R scripts.

On the Slurm cluster, request an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example:

$ srun --time=01:00:00 --mem=4G --pty bash -l

At the compute node shell prompt, enter:

$ module purge
$ module load R/4.6.1
$ R

To see which versions of R are installed on the Slurm cluster use:

$ module spider R

and load the version you need with module load R/VERSION. If your R code runs in parallel (e.g., with the parallel package), request the cores with --cpus-per-task and use $SLURM_CPUS_PER_TASK as the number of workers.

Please refer to the R documentation to learn how to use this software.

References:

R Libraries

R includes a set of base packages and additional add-on libraries. Several additional libraries have already been installed in any version of R available on the Hoffman2 Cluster (to see all versions currently available use: modules_lookup -m R). To see a list of the installed libraries, at the R command prompt, enter:

> library()

Additional libraries can be installed in each user directory where they are available to the particular user who has performed the installation. If a group project space is available, R libraries of common use for a group can also be installed in a group project space where they can be made available to all the users of such group.

Additional libraries not already installed with the versions of R available on the cluster (to see all versions currently available use module spider R on the Slurm cluster and modules_lookup -m R on the Grid Engine cluster), can be installed in a personal R library directory. On the Slurm cluster, each R module sets R_LIBS_USER to a personal library directory for that version of R (e.g., $HOME/R/4.6.1/gcc-11.5.0_intel-2026.2.0), so install.packages installs there directly. To install a library and its dependencies in this location you will need to run R interactively and issue at the R command line:

> install.packages('package_name', dependencies=TRUE)

R will inform you that you can’t write to the global directory, and ask if you want to use a personal library instead. When prompted answer yes. R will then prompt you with a path and ask if you want to use this. When prompted answer yes. R will then install the library in this location.

See the R Installation and Administration guide for more information on how to customize the install.packages command (for example you could add the repository by including in the argument of your install.packages command the string: repos=”http://cran.r-project.org”).

To see a list of directories that R searches for libraries issue at the R prompt:

> .libPaths()

Problems with the instructions on this section? Please send comments here.

R libraries references:

Additional libraries, that are of relevant usage to the Hoffman2 Cluster community, can also be installed in the central repository upon request. See the Software installation page.

Problems with the instructions on this section? Please send comments here.

RStudio

RStudio is an integrated development environment for R, a programming language for statistical computing and graphics. For more information, see the RStudio website.

On the Hoffman2 Cluster, you can run either the RStudio IDE or RStudio Server versions.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions of the RStudio IDE, use module spider rstudio on the Slurm cluster and module av Rstudio on the Grid Engine cluster. The RStudio Server containers are available on both clusters (module load apptainer and then ls $H2_CONTAINER_LOC/h2-rstudio*sif).

RStudio IDE

RStudio IDE (formerly known as RStudio Desktop) is a standalone desktop version that can be launched on a compute node on the Hoffman2 Cluster. To open the RStudio IDE GUI, users need to follow the steps outlined in the opening GUI applications section. RStudio Desktop supports all versions of R that are installed on the Hoffman2 Cluster.

Warning

To open the RStudio IDE GUI on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session). Do not use srun --x11 for RStudio: Slurm’s X11 forwarding can deadlock with it and freeze your whole DCV desktop.

On the Slurm cluster, from a terminal on the DCV desktop, request an interactive session for GUI applications with the resources (memory and/or cores, computing time, etc.) that your R scripts will be needing, for example, for 2 cores with 4GB of memory each for 2 hours:

$ x11session --time=02:00:00 --mem-per-cpu=4G -c 2

At the compute node shell prompt, enter:

$ module purge
$ module load rstudio/2026.10.0
$ rstudio &

(to see the installed versions use module spider rstudio; note the lower-case module name on the Slurm cluster).

Note

The RStudio module loads the default version of R on the Slurm cluster. To use a different version of R, load the needed R module first (e.g., module load R/4.4.1, see module spider R) and then the RStudio module.

If RStudio’s Save As or Open dialogs fail to open, uncheck Tools ‣ Global Options ‣ General ‣ Advanced ‣ Use native file and message dialog boxes.

References:

Problems with the instructions on this section? Please send comments here.

RStudio Server

RStudio Server allows users to start an RStudio session on a compute node that can be accessed through a web browser running on the local computer. As RStudio Server is executed inside a software container accessible via Apptainer, the version of R available to this version of RStudio is limited to the one installed within the container. RStudio Server bypasses the need to access a GUI application remotely, thus avoiding any associated inefficiencies.

The RStudio Server application is ran using Apptainer on a compute node to be rendered on a web browsed running on your local machine.

To find available RStudio container versions on the Hoffman2 Cluster issue the following commands from a terminal:

module load apptainer
ls $H2_CONTAINER_LOC/h2-rstudio*sif

You can follow these steps to start a RStudio Server session on the Slurm cluster:

  1. Open a terminal and connect to the Hoffman2 Cluster (hoffman2.oarc.ucla.edu), request an interactive session and start RStudio Server in it:

    # get an interactive session:
    srun --time=02:00:00 --mem=10G --pty bash -l
    # create small tmp directories for RStudio to write into:
    mkdir -pv $SCRATCH/rstudiotmp/var/lib $SCRATCH/rstudiotmp/var/run $SCRATCH/rstudiotmp/tmp
    # set up apptainer:
    module purge
    module load apptainer/1.3.4
    # run RStudio Server (to use a different version of R, choose another
    # container from: ls $H2_CONTAINER_LOC/h2-rstudio*sif):
    apptainer run -B $SCRATCH/rstudiotmp/var/lib:/var/lib/rstudio-server -B $SCRATCH/rstudiotmp/var/run:/var/run/rstudio-server -B $SCRATCH/rstudiotmp/tmp:/tmp $H2_CONTAINER_LOC/h2-rstudio_4.5.0.sif
    

    As described in the GE interactive tab, the apptainer run ... command prints the node and the port on which RStudio Server is listening, the SSH tunnel command to run on your local computer and the temporary password for the session.

    Important

    The tunnel command printed by the container names the legacy login host, hoffman2.idre.ucla.edu. For a session on the Slurm cluster, use hoffman2.oarc.ucla.edu instead.

  2. Open a new terminal window on your local computer and start the SSH tunnel. For example, user joebruin whose RStudio Server session started on node n1234 and on port 8787 would run:

    $ ssh -N -L 8787:n1234:8787 joebruin@hoffman2.oarc.ucla.edu
    
  3. Open your web browser to http://localhost:8787 (use your port) and log in with your Hoffman2 Cluster user name and the temporary password.

To end the session, press Control-C in the terminal where apptainer run ... is running, then exit the interactive session.

References:

Problems with the instructions on this section? Please send comments here.

Stata

Stata is a general-purpose statistical software package. Most of its users work in research, especially in the fields of economics, sociology, political science, biomedicine, and epidemiology. For more information, see the Stata website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster. To see the installed versions, use module spider stata on the Slurm cluster and module av stata on the Grid Engine cluster.

Note

To open the graphical user interface (GUI) of Stata, xstata, on the Slurm cluster, connect via DCV remote desktop (or via terminal and SSH with X11 forwarding enabled) and start your session with x11session (see Opening GUI applications from a Slurm interactive session). Alternatively you can open the text-based Stata interface in any interactive session.

On the Slurm cluster, request an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example:

$ srun --time=01:00:00 --cpus-per-task=4 --mem=8G --pty bash -l

or, for the GUI, from a terminal on the DCV desktop:

$ x11session --time=01:00:00 --mem=8G -c 4

Then load Stata in your environment with:

$ module purge
$ module load stata/19

(to see the installed versions use module spider stata). To run Xstata, the multi-processor version of the GUI (from an x11session shell), enter:

$ xstata-mp &

To run Stata without its GUI interface, enter:

$ stata-mp

and, at the Stata prompt, use as many processors as cores requested (4 in the example above) with:

. set processors 4

xstata-se and stata-se are also available. The instructions on temporary files ($STATATMP), environment variables and user-written packages in the GE interactive tab also apply on the Slurm cluster, where the job ID is in $SLURM_JOB_ID (instead of $JOB_ID) and the array task ID in $SLURM_ARRAY_TASK_ID (instead of $SGE_TASK_ID).

Please refer to the Stata documentation to learn how to use Stata.

References:

Problems with the instructions on this section? Please send comments here.

Visualization and rendering

GnuPlot

GRACE

Graphviz

IDL

ImageMagick

Maya

NCAR

OpenDX

ParaView

POV-Ray

VTK

GnuPlot

GnuPlot is a command-line program that can generate two- and three-dimensional plots of functions, data, and data fits. The program runs on all major computers and operating systems. For more information, see the GnuPlot website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed).

GnuPlot opens its plots in a graphical window. On the Slurm cluster, after connecting via Remote Desktop or via terminal and SSH with X11 Forwarding enabled, request an interactive session with X11 forwarding with x11session (see Opening GUI applications from a Slurm interactive session), for example with:

$ x11session --time=01:00:00 --mem-per-cpu=2G -c 1

GnuPlot is part of the operating system, so no module is needed. In the interactive session enter:

$ gnuplot

To only write plots to files (e.g., with set terminal pngcairo and set output 'myplot.png' in your GnuPlot script), a plain interactive session is enough:

$ srun --time=01:00:00 --mem=2G --pty bash -l
$ gnuplot $HOME/myproject/myplot.gp

Please see the Gnuplot documentation to learn how to use this software.

References:

Problems with the instructions on this section? Please send comments here.

GRACE

“Grace is a WYSIWYG tool to make two-dimensional plots of numerical data. It runs under various (if not all) flavors of Unix with X11 and M*tif (LessTif or Motif). It also runs under VMS, OS/2, and Windows (95/98/NT/2000/XP). Its capabilities are roughly similar to GUI-based programs like Sigmaplot or Microcal Origin plus script-based tools like Gnuplot or Genplot. Its strength lies in the fact that it combines the convenience of a graphical user interface with the power of a scripting language which enables it to do sophisticated calculations or perform automated tasks.” - GRACE Documentation website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for GRACE.

To run GRACE interactively you must connect to the cluster login node with X11 forwarding enabled. Then use qrsh to obtain an interactive session.

Note

To run GRACE you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

xmgrace

References:

Problems with the instructions on this section? Please send comments here.

Graphviz

“Graphviz is open source graph visualization software. Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. It has important applications in networking, bioinformatics, software engineering, database and web design, machine learning, and in visual interfaces for other technical domains.” -Graphviz website

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

you can run the Graphviz programs (dot, neato, circo, etc.), which are part of the operating system, so no module is needed. For example, to draw the graph described in the file mygraph.dot as a PNG image:

$ dot -V
$ dot -Tpng $HOME/myproject/mygraph.dot -o mygraph.png

To look at the images on the cluster, connect via Remote Desktop or via terminal and SSH with X11 Forwarding enabled and start the interactive session with x11session instead (see Opening GUI applications from a Slurm interactive session).

References:

Problems with the instructions on this section? Please send comments here.

IDL

IDL, short for Interactive Data Language, is a programming language used for data analysis. It is popular in particular areas of science, such as astronomy, atmospheric physics and medical imaging. See the IDL webpage for more information.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for IDL.

To run IDL interactively you must first connect to the cluster login node with X11 forwarding enabled. Then use qrsh to obtain an interactive session.

Note

To run IDL you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

When the interactive session is granted enter at the command prompt of the compute node:

module load idl
idl

Please notice: IDL scripts (containing IDL commands and ending with a .pro extension) can be executed at the IDL command line.

References:

Problems with the instructions on this section? Please send comments here.

ImageMagick

ImageMagick is a free and open-source software suite for displaying, creating, converting, modifying, and editing raster images. It can read and write over 200 image file formats. For more information, see ImageMagick website.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for ImageMagick.

To run ImageMagick interactively you must connect to the cluster login node with X11 forwarding enabled. Then use qrsh to obtain an interactive compute node.

Note

To run ImageMagick you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

image-magick-command {see options}

where image-magick-command is one of the ImageMagick programs.

Each ImageMagick program is invoked by a separate command. To run an ImageMagick program, either enter the command that invokes it at the command line shell prompt, or use it in a script file and execute your script.

Documentation exist for all the ImageMagick commands.

For a list of commands, issue:

man ImageMagick

For image settings and image operators, issue:

man display

References:

Problems with the instructions on this section? Please send comments here.

Maya

“3D computer animation, modeling, simulation, and rendering software “ – Autodesk Maya

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to run Autodesk’s Maya you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

After requesting an interactive session (remember to specify a runtime, memory, number of cores, etc. as needed), for example with:

qrsh -l h_rt=1:00:00,exclusive

You can check the available versions of Autodesk’s Maya with:

module av maya

Load the default version of Maya in your environment with:

module load maya

To load a different version, issue:

module load maya/VERSION

where VERSION is replaced by the desired version of Maya.

To invoke Maya:

maya &

Please refer to Autodesk’ Maya documentation to learn how to use this software Autodesk’ Maya documentation.

References:

Problems with the instructions on this section? Please send comments here.

NCAR

“The NCAR Command Language (NCL), a product of the Computational & Information Systems Laboratory at the National Center for Atmospheric Research (NCAR) and sponsored by the National Science Foundation, is a free interpreted language designed specifically for scientific data processing and visualization.” -NCL website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to run NCL you will need to have followed directions to Opening GUI applications.

After requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

/u/local/apps/ncl/current/bin/ncl

References:

Problems with the instructions on this section? Please send comments here.

OpenDX

OpenDX is a programming environment for data visualization and analysis that employs a data-flow driven client-server execution model. It provides a graphical program editor that allows the user to create an interactive visualization using a point and click interface. It supports interactions in a number of ways, including via a graphical user interface with direct (i.e., in images) and indirect (i.e., via Motif widgets) interactors, visual programming, a high-level scripting language and a programming API. Furthermore, the indirect interactors are data-driven (i.e., self-configuring by data characteristics). Visual and scripting language programming support hierarchy (i.e., macros) and thus, can be used to build complete applications. The programming API provides data support, error handling, access to lower level tools, etc. for building modules and is associated with a Module Builder utility.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for OpenDX.

Note

To run OpenDX you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

dx

References:

Problems with the instructions on this section? Please send comments here.

ParaView

“ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques. The data exploration can be done interactively in 3D or programmatically using ParaView’s batch processing capabilities.

ParaView was developed to analyze extremely large datasets using distributed memory computing resources. It can be run on supercomputers to analyze datasets of petascale size as well as on laptops for smaller data, has become an integral tool in many national laboratories, universities and industry, and has won several awards related to high performance computation.” -Paraview website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to run ParaView you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

After requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Then enter:

paraview

References:

Problems with the instructions on this section? Please send comments here.

POV-Ray

The Persistence of Vision Ray Tracer, most commonly acronymed as POV-Ray, is a cross-platform ray-tracing program that generates images from a text-based scene description. See the POV-Ray website for more information.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for POV-Ray.

Note

To run POV-Ray you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

The easiest way to run POV-Ray in batch from a Grid Engine login node is to use the queue scripts. See Altair Grid Engine batch jobs with qsub for a discussion of the queue scripts and how they are used.

Create a simple script that calls /u/local/bin/povray or the /u/local/apps/povray/current/bin/povray executable. Use the Grid Engine job.q or jobarray.q queue scripts to create your UGE command file. (The job.q on the Slurm cluster is a different script, which writes Slurm job scripts; see Building a job script with job.q.)

POV-Ray can generate the frames of a movie using its animation options in cases when motion or other factors change with time. This requires only a single invocation of POV-Ray. For example, it is an ideal way to render a movie in which the camera rotates around the scene so that the scene can be viewed from all sides. To render the frames of a movie in which the geometry for each frame comes from a different time step of a simulation, you could have one POV-Ray scene file for each time step and submit the rendering to batch using UGE Job Arrays.

References:

Problems with the instructions on this section? Please send comments here.

VTK

“The Visualization Toolkit is an open-source software system for 3D computer graphics, image processing and visualization. VTK is distributed under the OSI-approved BSD 3-clause License.” – VTK website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

Note

On the Grid Engine (legacy) cluster, to run VTK you will need to have connected to the Hoffman2 Cluster either via a Remote desktop or via terminal and SSH having followed directions to Opening GUI applications.

After requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

Set up your environment to use VTK by using the module command:

module load vtk

See Environmental modules for further information.

References:

Problems with the instructions on this section? Please send comments here.

Miscellaneous

cURL

Lynx

MIGRATE-N

SVN subversion

TeXLive

tmux

cURL

cURL is a computer software project providing a library and command-line tool for transferring data using various network protocols. The name stands for “Client URL.” For more information, see the cURL website.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed); the Grid Engine cluster also has a newer version as a module (module av curl).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

you can use cURL, which is part of the operating system, so no module is needed. For example:

$ curl --version
$ curl -L -O https://www.example.com/path/to/file.tar.gz

References:

Problems with the instructions on this section? Please send comments here.

Lynx

Lynx provides software frameworks, hypervisors, and RTOS technologies for mission critical platforms in aerospace &amp; defense, industrial IoT, enterprise, and automotive markets. See the Lynx website for more information.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use Lynx, use the module command:

module load lynx

See Environmental modules for further information.

References:

Problems with the instructions on this section? Please send comments here.

MIGRATE-N

“Migrate estimates effective population sizes,past migration rates between n population assuming a migration matrix model with asymmetric migration rates and different subpopulation sizes, and population divergences or admixture. Migrate uses Bayesian inference to jointly estimate all parameters. It can use the following data: Sequence data with or without site rate variation, single nucleotide polymorphism data (sequence-like data input, HAPMAP-like data), Microsatellite data using brownian motion approximation to the stepwise mutation model (using the repeatlength input format or the fragment-length input), and also Electrophoretic data using an ‘infinite’ allele model. The output can contain: Tables of mode, average, median, and credibility intervals for all paramters, histograms approximating the marginal posterior probability density of each parameter. Marginal likelihoods of the model to allow comparison of different MIGRATE runs to select be best model.” –Migrate website

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, you can use any text editor to make the appropriate input files for migrate.

To run migrate interactively you must use qrsh to obtain an interactive session.

Start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for exmaple:

qrsh -l h_data=2G,h_rt=1:00:00

Then, enter:

module load migrate
migrate

References:

Problems with the instructions on this section? Please send comments here.

SVN subversion

Apache Subversion (often abbreviated SVN, after its command name svn) is a software versioning and revision control system distributed as open source under the Apache License. See the Subversion website for more information.

Note

Available on: the Grid Engine (legacy) cluster only. It is not yet available on the Slurm (production) cluster: if you need it there, please request it by opening a ticket.

On the Grid Engine (legacy) cluster, start by requesting an interactive session with the needed resources (e.g., run-time, memory, number of cores, etc.), for example with:

qrsh -l h_data=2G,h_rt=1:00:00

To set up your environment to use Subversion, use the module command:

module load svn

See Environmental modules for further information.

References:

Problems with the instructions on this section? Please send comments here.

TeXLive

“TeX Live is intended to be a straightforward way to get up and running with the TeX document production system. It provides a comprehensive TeX system with binaries for most flavors of Unix, including GNU/Linux, macOS, and also Windows. It includes all the major TeX-related programs, macro packages, and fonts that are free software, including support for many languages around the world. Many operating systems provide it via their own distributions.” –The TeX Users Group (TUG) website

Note

Available on: the Slurm (production) cluster, as part of the operating system (TeX Live 2020, no module needed), and the Grid Engine (legacy) cluster. To see the installed versions on the Grid Engine cluster, use module av texlive.

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

you can use the TeX Live programs (pdflatex, latex, xelatex, lualatex, bibtex, etc.), which are part of the operating system, so no module is needed. For example:

$ pdflatex --version
$ cd $HOME/myproject
$ pdflatex mydocument.tex

References:

Problems with the instructions on this section? Please send comments here.

tmux

tmux is a terminal multiplexer for Unix-like operating systems. It allows multiple terminal sessions to be accessed simultaneously in a single window. It is useful for running more than one command-line program at the same time. For more information, see the tmux github site.

Note

Available on: the Slurm (production) cluster and the Grid Engine (legacy) cluster, as part of the operating system (no module needed); the Grid Engine cluster also has it as a module (module av tmux).

On the Slurm cluster, after requesting an interactive session (remember to specify a runtime, memory, number of computational cores, etc. as needed), for example with:

$ srun --time=01:00:00 --mem=2G --pty bash -l

you can start tmux, which is part of the operating system, so no module is needed:

$ tmux

A tmux session started inside an interactive session ends when the interactive session ends (at the end of its runtime, or when you exit it).

References:

Problems with the instructions on this section? Please send comments here.