Software on sapslurm tmp
Introduction
Centrally-installed software on SapSlurm will typically be in one of three formats: a software module, a Singularity container, or a Conda environment. Outline here is an explanation of each category software and how to use them.
Software Modules
The majority of software centrally installed on SapSlurm is installed in the form of a software module. A software module is a grouping of some software and dependencies. By leveraging software modules, you gain access to only the software you need when you need it. This is achieved by modifying your PATH environmental variable as well as creating other environment variables.
Software modules are in the format Name/Version-Toolchain. A toolchain is a collection of ancillary software discussed further here.
Here are some examples of Python modules on SapSlurm:
Python/2.7.16-GCCcore-8.3.0 Python/3.7.4-GCCcore-8.3.0 Python/3.8.2-GCCcore-8.3.0
Here is an example of how the command "python" changes its path and thus version after a module is loaded:
bc06026@ra4-2 ~$ which python /usr/bin/python bc06026@ra4-2 ~$ python -V Python 2.7.5 bc06026@ra4-2 ~$ module load Python/3.8.2-GCCcore-8.3.0 bc06026@ra4-2 ~$ which python /apps/eb/Python/3.8.2-GCCcore-8.3.0/bin/python bc06026@ra4-2 ~$ python -V Python 3.8.2 bc06026@ra4-2 ~$
Software Module Commands
Software modules are managed with module
commands. Here are some useful module
commands:
module spider pattern
- search for available software, i.e.,module spider Python
module load moduleName
– loads a software module for use, i.e.,module load Python/3.8.2-GCCcore-8.3.0
module unload moduleName
– unloads a software module, i.e.,module unload Python/3.8.2-GCCcore-8.3.0
module list
– lists currently loaded software modulesmodule avail
– lists all available software modules
Using Software Modules
When you first log into ss-sub1, you will not have any modules loaded. There are two scenarios in which you would module load
a software module, in a submission script and in an interactive job session. You may search for modules on the login node with the module spider
command, but please never load software modules from the login node.
Here is an example of loading a software module in a submission script:
#!/bin/bash #SBATCH --job-name=testserial # Job name #SBATCH --partition=batch # Partition (queue) name #SBATCH --ntasks=1 # Run on a single CPU #SBATCH --mem=1gb # Job memory request #SBATCH --time=02:00:00 # Time limit hrs:min:sec #SBATCH --output=testserial.%j.out # Standard output log #SBATCH --error=testserial.%j.err # Standard error log #SBATCH --mail-type=END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL) #SBATCH --mail-user=username@uga.edu # Where to send mail cd $SLURM_SUBMIT_DIR module load R/3.6.2-foss-2019b R CMD BATCH add.R
Note that the module is loaded after the Slurm headers (#SBATCH lines), but before calling the software, which in this case is R.
Searching for Software Modules
If you do not find some software that you would like to use already installed on Sapelo2, you may request that we install it here.
Important Notes Regarding Software Modules
Singularity Containers
...
Conda Environments
...