Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Activate the shared PyAuto venv and point PYTHONPATH at the canonical
# PyAuto* source checkouts on the HPC.
#
# Mirrors the pattern used by z_projects/euclid/activate.sh and
# autolens_assistant/activate.sh: pip handles only third-party deps in
# the venv, while the five PyAuto* libraries are resolved via PYTHONPATH
# directly from /mnt/ral/jnightin/PyAuto/<repo>. ``HPCPullPyAuto`` then
# becomes the only mechanism needed to keep PyAuto* current — no pip
# install of PyAuto* into the venv ever.
#
# Usage (inside a SLURM submit or interactive shell):
#
# source /mnt/ral/jnightin/autolens_profiling/activate.sh
# python3 searches/nautilus/imaging/mge.py ...

BASE=/mnt/ral/jnightin/PyAuto

source "$BASE/PyAuto/bin/activate"

export PYTHONPATH=$BASE:\
$BASE/PyAutoConf:\
$BASE/PyAutoFit:\
$BASE/PyAutoArray:\
$BASE/PyAutoGalaxy:\
$BASE/PyAutoLens
2 changes: 1 addition & 1 deletion hpc/batch_gpu/submit_imaging_mge_a100_hst_fp64
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#SBATCH --mail-user=james.w.nightingale@durham.ac.uk

export AP_ROOT=/mnt/ral/jnightin/autolens_profiling
source /mnt/ral/jnightin/PyAutoNSS/PyAutoNSS/bin/activate
source $AP_ROOT/activate.sh

export JAX_PLATFORM_NAME=cuda
export JAX_PLATFORMS=cuda,cpu
Expand Down
Loading