1
Fork 0

fix(hpc): additional insights

This commit is contained in:
Tibo De Peuter 2026-04-04 20:26:09 +02:00
parent 4339978cc6
commit a512682edd
3 changed files with 21 additions and 10 deletions

View file

@ -1,7 +1,10 @@
#!/bin/bash
# scripts/hpc/install.sh
#
# Usage (from project root):
# Usage:
# module swap cluster/donphan
# qsub -I -l nodes=1:ppn=8:gpus=1
# (Wait for session to start, then:)
# bash scripts/hpc/install.sh
set -eo pipefail
@ -13,9 +16,12 @@ mkdir -p "$PIP_CACHE_DIR" "$UV_CACHE_DIR"
module load vsc-venv
# Temporarily disable 'unbound variable' check for vsc-venv compatibility
set +u
source vsc-venv --activate \
--modules env/hpc/modules.txt \
--requirements env/hpc/requirements.txt
set -u
python -m ipykernel install --user --name="sel3_${VSC_INSTITUTE_CLUSTER}" \
--display-name "SEL3 (${VSC_INSTITUTE_CLUSTER})"

View file

@ -30,7 +30,9 @@ DATA_RUNDIR="$VSC_DATA/runs/$RUN_ID"
mkdir -p "$PIP_CACHE_DIR" "$UV_CACHE_DIR" "$SCRATCH_RUNDIR" "$DATA_RUNDIR" runs/
module load vsc-venv
set +u
source vsc-venv --activate --modules env/hpc/modules.txt
set -u
export MUJOCO_GL=egl
export WANDB_DIR="$SCRATCH_RUNDIR"