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.eduIf 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 |
|---|---|---|
Interactive Login |
|
|
Job submission |
|
|
Job deletion |
|
|
Job status by job |
|
|
Job status by user |
|
|
Queue list |
|
|
List nodes |
|
|
Environment Variables
Information | SGE | SLURM |
|---|---|---|
Job ID |
|
|
Submit directory |
|
|
Submit host |
|
|
Node list |
|
|
Job Array Index |
|
|
Job Specification
Information | SGE | SLURM |
|---|---|---|
Script directive |
|
|
queue/partition |
|
|
count of nodes | N/A |
|
CPU count |
|
|
stdout file |
|
|
stderr file |
|
|
copy environment |
|
|
event notification |
|
|
send notification email |
|
|
job name |
|
|
Restart job |
|
|
set working directory |
|
|
Resource sharing |
|
|
Memory size |
|
|
Charge to an account |
|
|
Tasks per node | fixed rule in parallel environment (PE) |
|
Job dependency |
|
|
Job project |
|
|
Job host preferences |
|
|
Job arrays |
|
|
Generic Resources |
|
|
Submit Scripts
SGE | SLURM |
|---|---|
#$ -N test
|
#SBATCH --job-name test 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.