Repository navigation
Mark the chunked Enzyme gradients of two draws on one pool broken under coverage on Julia 1.13 - #1060
Merged
Merged
Conversation
…er coverage on Julia 1.13 With code coverage on Julia 1.13, Enzyme's type analysis rejects the chunked and stepped runs of this scenario, item 7 of #931, as it does for the scenario's NoAdjoint twin. Each gradient is taken inside its test, so the error counts as broken there and an unexpected pass still fails. Closes #1042. 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.
Closes #1042.
With code coverage on Julia 1.13, Enzyme fails on the chunked and stepped gradients of one scenario, an upstream bug already recorded as item 7 of #931.
This marks those two checks broken only in that case, so an unexpected pass still fails.
Claude Opus 5.5 [high]
Failure. In the Enzyme reverse AD job, the item "The gradient of a run in chunks, or advanced a step at a time, equals that of the single run" fails for "Recurrence two draws on one pool with a flow between" with
IllegalTypeAnalysisException.Cause. This is #931 item 7.
Under coverage, Julia 1.13 emits a one-byte load of the
Shareflag from a private constant, and Enzyme's type analysis rejects it.ADFixtures.backend_broken_scenariosalready marks the scenario's NoAdjoint twin broken for this reason.The chunked wrapper also takes plain AD of the operator, so it meets the same bug.
Fix.
test/ad/chunked.jltakes each chunked and stepped gradient inside its@test, withbroken = truewhen all of these hold: the backend is Enzyme reverse, the scenario is this one, coverage is on (ADFixtures._coverage()), and Julia is 1.13 or newer.An error then counts as broken there, and an unexpected pass fails the item.
Every other backend and scenario is tested as before.
Evidence (local, Julia 1.13.4, Enzyme 0.13).
A script with the
ChunkedRunssnippet and this one scenario, under Enzyme reverse:--code-coverage=@.(as the AD job runs): the whole-run gradient works, and thechunked(3)and stepped gradients both raiseIllegalTypeAnalysisException.The item itself, Enzyme reverse only (
enzyme_reverseargument) under--code-coverage=@.on Julia 1.13.4: 44 passed and 2 broken (the chunked and stepped checks of this scenario), in 17 min.Without coverage the
brokenflag is false, so the item runs as before.This was opened by a bot. Please ping @seabbs for any questions.