Skip to content

Enable SingleMemoryStorageSchedule in test_checkpointing_validity#5169

Open
sghelichkhani wants to merge 1 commit into
firedrakeproject:mainfrom
sghelichkhani:sghelichkhani/wire-singlemem-validity
Open

Enable SingleMemoryStorageSchedule in test_checkpointing_validity#5169
sghelichkhani wants to merge 1 commit into
firedrakeproject:mainfrom
sghelichkhani:sghelichkhani/wire-singlemem-validity

Conversation

@sghelichkhani

Copy link
Copy Markdown
Contributor

test_checkpointing_validity is parametrised over "Revolve", "SingleMemory",
"NoneAdjoint", "Mixed" and None, but the body only enables the Revolve and Mixed
schedules, so the SingleMemory case silently compared two unscheduled tapes. This adds the
missing elif so that parametrisation does what its test id promises. Nothing new is caught
by this — the case passes against the released pyadjoint pin and against
dolfin-adjoint/pyadjoint#248 — it simply makes the test consistent with what it advertises.
"NoneAdjoint" is left unwired since NoneCheckpointSchedule does not support the adjoint
sweep this test performs.

The test is parametrised over SingleMemory but never enabled that
schedule, so the case silently compared two unscheduled tapes. Wire it
up so the parametrisation does what its test id promises.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant