fix(hpc): disk quota
This commit is contained in:
parent
3f9c751312
commit
a02b5d5f16
2 changed files with 7 additions and 0 deletions
|
|
@ -34,11 +34,15 @@ mkdir -p "$PIP_CACHE_DIR" "$UV_CACHE_DIR"
|
|||
module load vsc-venv
|
||||
|
||||
echo ">>> Synchronizing and activating environment (vsc-venv)..."
|
||||
# cd to $VSC_DATA so vsc-venv creates its venvs/ directory there, not in $HOME.
|
||||
mkdir -p "$VSC_DATA/$PROJ_NAME"
|
||||
cd "$VSC_DATA/$PROJ_NAME"
|
||||
set +euo pipefail
|
||||
source vsc-venv --activate \
|
||||
--modules "$HPC_CONFIG_DIR/modules.txt" \
|
||||
--requirements "$HPC_CONFIG_DIR/requirements.txt"
|
||||
set -euo pipefail
|
||||
cd "$PBS_O_WORKDIR"
|
||||
|
||||
# Prepend venv to PYTHONPATH to shadow system packages (e.g. SciPy-bundle compiled
|
||||
# against NumPy 1.x) that are injected by the loaded modules.
|
||||
|
|
|
|||
|
|
@ -41,11 +41,14 @@ if [ ! -d "$HPC_CONFIG_DIR" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# cd to $VSC_DATA so vsc-venv finds its venvs/ directory there, not in $HOME.
|
||||
cd "$VSC_DATA/$PROJ_NAME"
|
||||
set +euo pipefail
|
||||
source vsc-venv --activate \
|
||||
--modules "$HPC_CONFIG_DIR/modules.txt" \
|
||||
--requirements "$HPC_CONFIG_DIR/requirements.txt"
|
||||
set -euo pipefail
|
||||
cd "$PBS_O_WORKDIR"
|
||||
|
||||
# Prepend venv to PYTHONPATH to shadow system packages (e.g. SciPy-bundle compiled
|
||||
# against NumPy 1.x) that are injected by the loaded modules.
|
||||
|
|
|
|||
Reference in a new issue