Setting Up an HPC¶
Environment Variables
Admins will need to setup the below env vars.
- $PROJECTS_HOME
- $WORKDIR
- $BC_* (Baseline Configuration Env Vars)
Directories
Admins will need to create the below directories
- $PROJECTS_HOME/singularity/containers
- $PROJECTS_HOME/datools
Utils
mkdir $PROJECTS_HOME/datoolscd $PROJECTS_HOME/datoolsgit clone git@gitlab.infinitetactics.com:scale/ilauncher-utils.git - (requires ssh keys)git clone http://gitlab.infinitetactics.com/scale/ilauncher-utils.gitmv iLauncher-utils utilschgrp -R datools utilschmod -R 775 utilsContainers
Select an HPC with all desired containers (preferably at the same DSRC as the HPC you are setting up). Archive the desired containers into a single file (tar). SCP files to HPC at $PROJECTS_HOME/singularity/containers/datools. The archive file should be quite large so a help desk ticket may be required to increase your disk quota.
mkdir $PROJECTS_HOME/singularity/containers/datoolschgrp datools datools && chmod 775 datoolscd $PROJECTS_HOME/singularity/containers/datoolsscp onyx.erd.hpc.mil:/p/app/unsupported/singularity/containers/datools/containers.tar .tar xzvf containers.tarchgrp datools * && chmod 775 *Conda
Requires the below images in at *$PROJECTS_HOME/singularity/containers/datools
- conda-cpu27.simg
- conda-cpu36.simg
- conda-cpu37.simg
- conda-gpu_cuda8027.simg
- conda-gpu_cuda9027.simg
- conda-gpu_cuda11036.simg
- conda-gpu_cuda11037.simg
- conda-gpu_cuda11038.simg
Copy files from another HPC and create sym links
cd $PROJECTS_HOME/datoolsmkdir conda-bin2.7 conda-bin3.6 conda-bin3.7 logsln -s conda-bin2.7 conda-bin2 && ln -s anconda-bin3.7 conda-bin3scp onyx.erdc.hpc.mil:/p/app/unsupported/datools/conda-bin2.7/conda conda-bin2.7/scp onyx.erdc.hpc.mil:/p/app/unsupported/datools/conda-bin3.6/conda conda-bin3.6/scp onyx.erdc.hpc.mil:/p/app/unsupported/datools/conda-bin3.7/conda conda-bin3.7/cd $PROJECTS_HOME/datools/conda-bin2.7 && Create sym links as described belowcd $PROJECTS_HOME/datools/conda-bin3.6 && Create sym links as described belowcd $PROJECTS_HOME/datools/conda-bin3.7 && Create sym links as described belowcd $PROJECTS_HOME/datools && chgrp -R datools conda-bin* logs && chown -R 775 conda-bin* logsConda Sym Links
Command
bashfor cmd in python python3 dask-worker dask-scheduler \jupyter pip pip3 tensorboard conda-bash conda ipengine ipython ipcontroller; doln -s conda "$cmd"doneResult
Cuda Stubs¶
Needs Updated
Misc
Copy misc directories and files from another HPC that has already been setup. Choose an HPC and replace $HPC with the fully qualified domain name in the below commands. Replace $PH with the $PROJECTS_HOME on you selected HPC in the below commands.
cd $PROJECTS_HOME/datoolsscp -r $HPC:$PH/datools/utils/VM .scp -r $HPC:$PH/datools/utils/VirtualGL .scp $HPC:$PH/datools/utils/zeppelin.tgz .chmod and chgrp all files and directories