Repository navigation
fix(activate): pin JAX to CPU on GPU-less HPC jobs - #48
Merged
Merged
Conversation
Refs PyAutoLabs/autolens_assistant#185. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of PyAutoLabs/autolens_assistant#185.
Summary
In the
PYAUTO_HPC_BASE(cluster) branch ofactivate.sh:cuInitand logs anERRORand a traceback into every CPU job's log before JAX falls back to the CPU. The block setsJAX_PLATFORMS=cpu(with one stderr line) only whenJAX_PLATFORMSis unset andSLURM_JOB_GPUS,SLURM_GPUS_ON_NODEandCUDA_VISIBLE_DEVICESare all empty. A RAL--gres=gpuprobe (job 415323) showed all three set on GPU jobs, so GPU runs are untouched.The laptop
.venvbranch is unchanged. New projects inherit this throughskills/start-new-project.md; the six live Science projects got the same lines by hand today.Tests
bash -n on both activate.sh; behaviour test against a stub venv for both templates (no-GPU job -> JAX_PLATFORMS=cpu and TMPDIR off /tmp; --gres=gpu job with the Slurm variables measured by RAL gpu probe 415323 -> untouched; explicit JAX_PLATFORMS kept; laptop .venv branch untouched); the two templates now agree apart from library names; RAL CPU-node verification that JAX_PLATFORMS=cpu silences the plugin error (probe 415321); smoke n/a (activate.sh only); review: in-session. None of the RED reasons are in autolens_assistant or autogalaxy_assistant.
Heart RED override (development only)
🤖 Generated with Claude Code