From f641aec8a7f5737c056fdadcf975fa3bf779879a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 12 Nov 2026 10:02:33 +0000 Subject: [PATCH] fix: send HPC temp files to the shared disk (TMPDIR) in activate.sh Refs PyAutoLabs/PyAutoFit#1767 Co-Authored-By: Claude Opus 5.5 --- activate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activate.sh b/activate.sh index b827f328..c1bec870 100755 --- a/activate.sh +++ b/activate.sh @@ -85,6 +85,11 @@ if [ -f "$BASE/PyAuto/bin/activate" ]; then export TRITON_CACHE_DIR="${TRITON_CACHE_DIR:-$PYAUTO_HPC_CACHE/triton}" export JAX_COMPILATION_CACHE_DIR="${JAX_COMPILATION_CACHE_DIR-$PYAUTO_HPC_CACHE/pyauto_jax}" export ASTROPY_CACHE_DIR="${ASTROPY_CACHE_DIR:-$PYAUTO_HPC_CACHE/astropy}" + # Temp files too: Python's tempfile, JAX and numba default to /tmp, which on RAL + # compute nodes sits on the same small local disk (RAL admin, 2026-11-12). Use a + # `tmp/` next to the cache instead; a TMPDIR already set (e.g. by the job) wins. + export TMPDIR="${TMPDIR:-$(dirname "$PYAUTO_HPC_CACHE")/tmp}" + mkdir -p "$TMPDIR" 2>/dev/null || true export PYTHONPATH="$BASE:$BASE/PyAutoNerves:$BASE/PyAutoFit${PYTHONPATH:+:$PYTHONPATH}" else