Skip to content

Enzyme reverse fails type analysis on a chunked run with two draws when coverage is on #1042

Done

Description

@seabbs-bot

Problem. In the AD workflow's Enzyme reverse job, the chunked-run gradient item fails on the scenario "Recurrence two draws on one pool with a flow between" with IllegalTypeAnalysisException. The failing call is the gradient of the run in three chunks (test/ad/chunked.jl, parts = gradient(θ -> s.loss(chunked(3), θ), ...)).

Suspected cause. It fails only with --code-coverage=user, which the CI job passes. Without coverage the same item passes locally. Coverage instrumentation likely leaves a value whose type Enzyme cannot analyse in the resumed call with that modifier.

Proposed fix. Run the AD backend jobs without coverage, or find the union in the resumed call that coverage exposes and remove it. Setting Enzyme.API.strictAliasing!(false) would hide it, not fix it.

Detail

This was opened by a bot. Please ping @seabbs for any questions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions