Guides
A list of more “how to” vs “how to learn” documents
A list of more “how to” vs “how to learn” documents
tl;dr Put the following in your .bashrc use_build() { if hostname | grep "^i" &>/dev/null; then echo "loading improv spack" module load gcc/13.2.0 module load openmpi/5.0.1-gcc-13.2.0 source $HOME/git/spack-improv/share/spack/setup-env.sh source $HOME/git/spack-improv/share/spack/spack-completion.bash export clustername=improv fi #other LCRC Machines export SPACK_USER_CONFIG_PATH="$HOME/.spack/$clustername" export SPACK_USER_CACHE_PATH="$SPACK_USER_CONFIG_PATH" } Then run mkdir -p ~/git git clone https://github.com/spack/spack git/spack-improv git clone https://github.com/robertu94/spack_packages git/robertu94_packages source ~/.bashrc use_build spack compiler find # for extra packages like libpressio spack repo add ~/git/robertu94_packages First create packages....
tl;dr Put the following in your .bashrc function use_build { # other ALCF machines if hostname | grep cooley &>/dev/null || hostname | grep cc &> /dev/null; then soft add +gcc-8.2.0 soft add +cmake-3.20.4 soft add +cuda-11.0.2 soft add +mvapich2 source ${HOME}/git/spack-cooley/share/spack/setup-env.sh export clustername=cooley fi export SPACK_USER_CONFIG_PATH="$HOME/.spack/$clustername" export SPACK_USER_CACHE_PATH="$SPACK_USER_CONFIG_PATH" } Then run mkdir -p ~/git git clone https://github.com/spack/spack git/spack-cooley git clone https://github.com/robertu94/spack_packages git/robertu94_packages source ~/.bashrc use_build spack compiler find # for extra packages like libpressio spack repo add ~/git/robertu94_packages First create packages....
tl;dr Put the following in your .bashrc function use_build { # other ALCF machines if hostname -f | grep polaris &>/dev/null; then echo "loading polaris spack" module swap PrgEnv-nvhpc PrgEnv-gnu module load cudatoolkit-standalone source ${HOME}/git/spack-theta/share/spack/setup-env.sh export CRAYPE_LINK_TYPE=dynamic export clustername=polaris fi export SPACK_USER_CONFIG_PATH="$HOME/.spack/$clustername" export SPACK_USER_CACHE_PATH="$SPACK_USER_CONFIG_PATH" } Then run mkdir -p ~/git git clone https://github.com/spack/spack git/spack-polaris git clone https://github.com/robertu94/spack_packages git/robertu94_packages git clone https://github.com/mochi-hpc/mochi-spack-packages git/mochi-spack-packages source ~/.bashrc use_build spack compiler find # for extra packages like libpressio and thallium spack repo add ~/git/robertu94_packages spack repo add ~/git/mochi-spack-packages First create packages....
tl;dr Put the following in your .bashrc function use_build { # other ALCF machines if hostname | grep theta &>/dev/null; then echo "loading theta spack" module swap PrgEnv-intel PrgEnv-gnu module swap gcc/11.2.0 source ${HOME}/git/spack-theta/share/spack/setup-env.sh export CRAYPE_LINK_TYPE=dynamic export clustername=theta export HTTP_PROXY=http://theta-proxy.tmi.alcf.anl.gov:3128 export HTTPS_PROXY=http://theta-proxy.tmi.alcf.anl.gov:3128 export http_proxy=http://theta-proxy.tmi.alcf.anl.gov:3128 export https_proxy=http://theta-proxy.tmi.alcf.anl.gov:3128 fi export SPACK_USER_CONFIG_PATH="$HOME/.spack/$clustername" export SPACK_USER_CACHE_PATH="$SPACK_USER_CONFIG_PATH" } Then run mkdir -p ~/git git clone https://github.com/spack/spack git/spack-theta git clone https://github.com/robertu94/spack_packages git/robertu94_packages git clone https://github.com/mochi-hpc/mochi-spack-packages git/mochi-spack-packages source ~/....
For Windows choco.exe install podman podman machine init podman machine start For MacOS # install brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # use brew to install podman and qemu brew install podman qemu # configure podman to have a linux vm podman machine init podman machine start You may also want to run an x86_64 container in which case you will need the --platform linux/amd64 flag For Linux Ubuntu apt update apt install podman Fedora dnf install podman