Transitioning from fenn to apollo

Transitioning from fenn to apollo

How do I access apollo?

Users with an existing account on fenn already have an account on apollo. Note that all access requires the use emailof the VCU VPN. You should connect via SSH using your VCU eID and VCU password (not the fenn password) on the command line prompt on Windows, Mac, or Linux. You can SSH into apollo by running:

ssh yourvcueid@apollo.hprc.vcu.edu

If you wish you can set up a passwordless access using SSH keys. While most operations in a cluster are based on the command line, there is also an option to using X11 Forwarding to Run Remote Graphical Applications.

You can also see the new web interface based on Open OnDemand, which is a web portal to the Apollo cluster providing a graphical user interface for the most commonly used applications including Matlab, RStudio, Jupyter lab, SAS, VS Code, etc.

Do I need to copy my files from fenn to apollo?

No. We already copied your files from fenn on apollo. Your files are already accessible. Do not make any further changes to files on fenn, as they will not be synchronized on apollo.

We recommend research groups sharing files and folders to have a shared group folder among multiple users, please reach out to tsresearch@vcu.edu and we'll create one for your group.

Do I need to make any changes to run my scripts?

Yes. Fenn uses Sun Grid Engine (SGE) and apollo uses Slurm, which is a new job scheduler. In the following, we'll show the main differences to help you convert your SGE scripts to Slurm.

Commands

User Command

SGE

SLURM

User Command

SGE

SLURM

Interactive Login

qlogin

srun -p $partition_name --pty bash

Job submission

qsub $script_file

sbatch $script_file

Job deletion

qdel $job_id

scancel $job_id

Job status by job

qstat -u \* -j $job_id

squeue $job_id

Job status by user

qstat -u $user_name

squeue -u $user_name

Queue list

qstat -f

squeue

List nodes

qhost

scontrol show nodes

Environment Variables

Information

SGE

SLURM

Information

SGE

SLURM

Job ID

$JOB_ID

$SLURM_JOBID

Submit directory

$SGE_O_WORKDIR

$SLURM_SUBMIT_DIR

Submit host

$SGE_O_HOST

$SLURM_SUBMIT_HOST

Node list

$PE_HOSTFILE

$SLURM_JOB_NODELIST

Job Array Index

$SGE_TASK_ID

$SLURM_ARRAY_TASK_ID

Job Specification

Information

SGE

SLURM

Information

SGE

SLURM

Script directive

#$

#SBATCH

queue/partition

-q $queue

-p $partition

count of nodes

N/A

-N [min[-max]]

CPU count

-pe smp <count> OR -pe orte <count>

-n <count>

stdout file

-o <file_name>

-o <file_name>

stderr file

-e <file_name>

-e <file_name>

copy environment

-V

--export=(ALL/NONE/<variables>)

event notification

-m abe

--mail-type=<events>

send notification email

-M <address>

--mail-user=<address>

job name

-N <name>

--job-name=<name>

Restart job

-r [yes|no]

--requeue OR --no-requeue

set working directory

-wd <dir_name>

--workdir=<dir_name>

Resource sharing

-l exclusive

--exclusive OR —shared

Memory size

-l mem_free=[memory][K|M|G]

--mem=[mem][M|G|T] OR --mem-percpu=[mem][M|G|T]

Charge to an account

-A <account>

--account=<account>

Tasks per node

fixed rule in parallel environment (PE)

--tasks-per-node=<count>

Job dependency

-hold_jid <job_id> OR -hold_jid=<job_name>

--depend=[<state>:]<job_id>

Job project

-P <name>

--wckey=<name>

Job host preferences

-q <queue>@<node>

--nodelist=<nodes> AND/OR —exclude=<nodes>

Job arrays

-t $array_spec

--array=$array_spec

Generic Resources

-l $resource=$value

--gres=<resource_spec> (e.g. --gres gpu:1 )

Submit Scripts

SGE

SLURM

SGE

SLURM

#!/bin/bash

#$ -N test
#$ -j y
#$ -o test.output
#$ -cwd
#$ -M MYUSER@vcu.edu
#$ -m bea
#$ -P cpu
#$ -l mem_free=8G
#$ -pe smp 1

myprogram inputfile.txt

#!/bin/bash

#SBATCH --job-name test
#SBATCH --output test."%j".out
#SBATCH --error test."%j".err
#SBATCH --mail-user MYUSER@vcu.edu
#SBATCH --mail-type=ALL
#SBATCH --partition cpu
#SBATCH --mem 8G
#SBATCH --ntasks 1
#SBATCH --cpus-per-task 1

myprogram inputfile.txt

Do I need to recompile my source code for applications like MPI?

Yes. If your code needs to be compiled (typically using "make"), you need to recompile the code on apollo. The reason is that any compiled code on fenn may not work on apollo because the linking to different versions of shared libraries.

If you receive an error like "error while loading shared libraries: libXXXXX.so: cannot open shared object file: No such file or directory" when running a program that worked on fenn, you need to recompile your code on apollo. If you still get an error regarding shared libraries after recompiling your code, please reach out to tsresearch@vcu.edu The library may need to be installed on apollo.

I use anaconda / miniconda / miniforge, what do I need to do?

Installations of anaconda / miniconda / miniforge on the user's home folder are strongly discouraged because they slow down significantly the user's session. Therefore, we recommend that you remove it and use the anaconda / miniconda / miniforge we installed as modules. To disable your home's conda environment, edit your .bashrc file and comment the conda section by adding ### to the lines contained within the "conda initialize" lines.

(base) [user@apollo ~]$ nano .bashrc ### Add ### to the conda section ### >>> conda initialize >>> ### !! Contents within this block are managed by 'conda init' !! ###__conda_setup="$('/lustre/home/user/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" ###if [ $? -eq 0 ]; then ### eval "$__conda_setup" ###else ### if [ -f "/lustre/home/user/anaconda3/etc/profile.d/conda.sh" ]; then ### . "/lustre/home/user/anaconda3/etc/profile.d/conda.sh" ### else ### export PATH="/lustre/home/user/anaconda3/bin:$PATH" ### fi ###fi ###unset __conda_setup ### <<< conda initialize <<<

Exit the ssh session and reconnect to the cluster to load the new settings. The (base) prefix to your command line prompt will have disappeared. At this point, you can load anaconda3 / miniconda3 / miniforge3, list, and activate your own environments.

[user@apollo ~]$ module load miniconda3 [user@apollo ~]$ conda info --envs # conda environments: pytorch-venv /lustre/home/user/.conda/envs/pytorch-venv mycondaenv /lustre/home/user/miniconda3/envs/mycondaenv base * /opt/miniconda3-py39_23.9.0 [user@apollo ~]$ conda activate mycondaenv (mycondaenv) [user@apollo ~]$

You can also create and activate a new environment using:

[user@apollo ~]$ module load miniconda3 [user@apollo ~]$ conda create --name myvenv python=3.11 [user@apollo ~]$ conda activate myvenv (myvenv) [user@apollo ~]$

Will fenn be discontinued?

Yes. All nodes in fenn will transition to apollo and fenn will be shut down. The data storage of fenn will continue running for backup for a little bit longer.

Common errors

srun/sbatch: error: invalid partition specified: basic / GPU

The names of the partitions on apollo are "cpu" and "gpu" (case sensitive).

srun/sbatch: error: Unable to allocate resources: Invalid qos specification

Remove any "--qos" from your script.

srun/sbatch: error: Unable to allocate resources: Requested node configuration is not available

This error means that the resources requested to run the job are not available. Please check that the number of CPUs (--cpus-per-task), memory (--mem), nodes (--nodes), and GPUs (--gres gpu) are within the specifications. Please review the hardware specifications of each node and consider the following:

  • The maximum number of CPUs on any node is equal to the number of cores minus two (reserved for the operating system). The effective maximum number of CPUs for any node on apollo is 126. If your job has --cpus-per-task > 126 it won't ever run.

  • The maximum memory on any node is equal to the RAM size minus 8 GB (reserved for the operating system). The maximum memory available per node is 117G, 242G, 494G for 128GB, 256GB and 512GB nodes, respectively.

  • The number of GPUs vary per partition (e.g. gpu-v100 has 2 GPUs per node, gpu-a100 has 4 GPUs per node). You may not request a number of GPUs larger than the number of GPUs available in one node. You may not request GPUs in any of the CPU partitions.

Lmod has detected the following error: The following module(s) are unknown:

The software modules on apollo have been updated to newer versions. You can run "module avail" to list all the modules available and their versions. Edit your script to load the correct version of the software module.

error while loading shared libraries: libXXXXX.so: cannot open shared object file: No such file or directory

You need to recompile your code on apollo. If you still get an error regarding shared libraries after recompiling your code, please reach out to tsresearch@vcu.edu The library may need to be installed on apollo.