Repository navigation
Tests: make Enzyme optional in the test environment (PS_TEST_AD) - #239
Merged
Merged
Conversation
Enzyme (through GPUCompiler and LLVM.jl) typically lags behind new Julia releases, which made the test environment unbuildable on Julia pre. The test runner now installs Enzyme into the test environment unless PS_TEST_AD=0, and the tests of automatic differentiation are skipped without it; the Julia pre job runs with PS_TEST_AD=0. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
On Julia
pre(1.14) the test environment could not be built: Enzyme depends on GPUCompiler, whose LLVM.jl dependency has noLLVMExtra_jllbuild for LLVM 23 yet. The same lag recurs with every new Julia release.Changes
test/Project.toml. The test runner installs it into the temporary test environment unlessPS_TEST_AD=0(same mechanism as for the GPU backend selected withPS_TEST_BACKEND).test/packages.jlsetsTEST_AD(Enzyme installed) and imports Enzyme accordingly; thead numericaltestset oftest/ParallelKernel/test_parallel.jlis skipped without it. The AD expansion tests only compare generated code and run regardless.prejob of GitHub Actions runs withPS_TEST_AD=0; all other jobs keep testing AD.PS_TEST_ADdocumented.Validation
Daint login node (GH200 GPUs): with the defaults the runner installs Enzyme and the AD tests run (CUDA); with
PS_TEST_AD=0Enzyme is not installed and the AD testset is skipped.🤖 Generated with Claude Code