Skip to content
Snippets Groups Projects
Select Git revision
  • a1873b87782b480d3aacb243d722d99ae98ce90c
  • master default protected
  • tf2
  • tf2_pytorch
  • issue_3
  • issue_2
  • 2019a
  • juwels_2019a
  • jureca_2019_a
9 results

README.md

Blame
  • setupHPC.sh 989 B
    # This is the main installation script for the HPC systems JUWELS and HDFML operated by JSC.
    # It loads all preinstalled HPC-modules, installs additional packages via pip3, and finally creates the sbatch-runscripts.
    # If you use other HPC-systems you can use this script and related scripts in HPC_setup/ as blue print.
    # __author__ = Felix Kleinert
    
    basepath=${PWD}/
    settingpath=HPC_setup/
    
    if [[ $HOSTNAME == *"juwels"* ]]; then
      echo "You are on juwels. Prepare env for juwels..."
      hpcsys="juwels"
    elif [[ $HOSTNAME == *"hdfml"* ]]; then
      echo  "You are on hdfml. Prepare env for hdfml..."
      hpcsys="hdfml"
    else
      echo "Unknown hpc host \`$HOSTNAME\`. Script only works on juwels and hdfml."
      echo "exit"
      exit
    fi
    
    echo "execute: HPC_setup/setup_venv_${hpcsys}.sh $basepath$settingpath"
    source HPC_setup/setup_venv_${hpcsys}.sh $basepath$settingpath
    
    echo "execute: HPC_setup/create_runscripts_HPC.sh $hpcsys $basepath"
    source HPC_setup/create_runscripts_HPC.sh $hpcsys $basepath