Repository navigation
ENH: Re-enable Gaussian3D and NCC3D VariationalRegistration tests on macOS ARM64 - #6461
Merged
hjmjohnson merged 1 commit intoJun 17, 2026
Conversation
These two 3D tests were left disabled in InsightSoftwareConsortium#6453 because their outputs diverge from the x86_64 baselines on native macOS ARM64. Measured on Apple silicon, ~0.08% of the 368480-voxel volume differs (308 voxels for Gaussian3D, 322 for NCC3D) after the radius-2/intensity-20 search; x86_64 remains bit-exact. Add an optional per-test VariationalRegistration<Name>Test_NPIXELS_TOL override to Test3D and set it to 400 for these two tests, so the shared x86_64 baseline serves both platforms while the other 11 tests keep the tight global tolerance of 200. Closes InsightSoftwareConsortium#6459.
hjmjohnson
marked this pull request as ready for review
June 17, 2026 15:44
Contributor
thewtex
approved these changes
Jun 17, 2026
dzenanz
approved these changes
Jun 17, 2026
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.
Re-enable the
VariationalRegistrationGaussian3DTestandVariationalRegistrationNCC3DTesttests that were left disabled in #6453, using a small per-test pixel-count tolerance for native macOS ARM64. Closes #6459.Why these two were disabled, and the measurement
In #6453, 11 of the 13 VariationalRegistration tests were re-enabled against ITK-proper baselines; Gaussian3D and NCC3D were held back because their outputs diverge from the x86_64 baselines on native macOS ARM64.
Measured on Apple silicon against the (94×70×56 = 368,480-voxel) baselines, after the existing radius-2 / intensity-20 neighborhood search:
This is sub-0.1% floating-point convergence drift — the regime
--compareNumberOfPixelsToleranceexists to absorb — not a structural mismatch that would warrant a separate macOS baseline.The fix
Test3Dgains an optional${TestName}_NPIXELS_TOLoverride that falls back to the globalVR_NPIXELS_TOL(200). The two divergent tests set it to 400. The shared x86_64 baseline serves both platforms:No baseline (
.cid) changes — the baselines already landed in #6453.Local verification (macOS ARM64)
All 23 VariationalRegistration tests pass:
pre-commit run --all-files: all content hooks (gersemi, clang-format, trailing-whitespace, end-of-file) pass.