Repository navigation
Conversation
…al rollouts are NavMaterialExt.ACallbackGivingThePatchIsThePatch compares a rollout whose external force comes from a callback in this file with the same rollout reading the force patch in the library, bit for bit. The library's material TUs are built without FMA contraction. On aarch64 clang contracted the callback's bilinear sample, and the dynamic case differed in the last bits: the first macOS run of the test, which had not run there before #734 merged. Reproduced on x86 by writing the callback's sample with the FMAs clang forms: the dynamic case fails and the surrogate and bicycle cases pass, as on macOS.
Owner
Author
|
Closing as a duplicate of #750, which landed the same fix (nav_material_ext_test built with -ffp-contract=off) on master. |
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.
NavMaterialExt.ACallbackGivingThePatchIsThePatchfails on macOS arm64 in its dynamic case. Its first macOS run was on #747; #734 merged with its macOS jobs still queued.Cause. The test compares two versions of the same rollout bit for bit:
detail::patch_sample_channel;The library's material files are built with
-ffp-contract=off, but the test file was not. On aarch64, clang contracts the callback's bilinear sample into FMAs, and the dynamic rollout ends a few ULPs apart.Fix. Build
nav_material_ext_test.cppwith-ffp-contract=off(/fp:preciseon MSVC), as the material rollouts are. This is a test-only change.Evidence. On x86 I rewrote the callback's sample with the FMAs clang forms (
fmafchains). The dynamic case then fails and the surrogate and bicycle cases pass, the same pattern as macOS. The experiment was not committed. macOS CI here is the confirmation.