[tmva][sofie] Use double for accumulator in numeric differentiation result#22789
Merged
Conversation
Use `double` for the accumulator in the computation of the numerically differentiated reference result. This should fix the platform-dependent test failure that we are seeing see only on Fedora 44 (master and 6.40): ```txt 1359/3779 Test root-project#474: tmva-sofie-test-TestCladAutodiff ..................................................................***Failed 1.72 sec -- TEST COMMAND -- cd /github/home/ROOT-CI/build/tmva/sofie/test ./TestCladAutodiff -- BEGIN TEST OUTPUT -- Running main() from /builddir/build/BUILD/gtest-1.17.0-build/googletest-1.17.0/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from ONNXClad [ RUN ] ONNXClad.Linear16 /github/home/ROOT-CI/src/tmva/sofie/test/TestCladAutodiff.cxx:109: Failure Failed Mismatch at index 1233 analytic=0.02939869649708271 numeric=0.026702878996729851 diff=0.0026958175003528595 [ FAILED ] ONNXClad.Linear16 (1637 ms) [----------] 1 test from ONNXClad (1637 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (1642 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] ONNXClad.Linear16 1 FAILED TEST -- END TEST OUTPUT -- CMake Error at /github/home/ROOT-CI/src/cmake/modules/RootTestDriver.cmake:210 (message): got exit code 1 but expected 0 ```
Test Results 23 files 23 suites 3d 17h 51m 20s ⏱️ For more details on these failures, see this check. Results for commit 197d235. ♻️ This comment has been updated with latest results. |
bellenot
approved these changes
Jul 13, 2026
Contributor
Author
|
/backport to 6.40 |
|
Preparing to backport PR #22789 to branch 6.40 requested by guitargeek |
|
Something went wrong when assigning the PR or setting labels @guitargeek please see the logs |
|
This PR has been backported to branch 6.40: #22793 |
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.
Use
doublefor the accumulator in the computation of the numerically differentiated reference result. This should fix the platform-dependent test failure that we are seeing see only on Fedora 44 (master and 6.40):1359/3779 Test #474: tmva-sofie-test-TestCladAutodiff ..................................................................***Failed 1.72 sec -- TEST COMMAND -- cd /github/home/ROOT-CI/build/tmva/sofie/test ./TestCladAutodiff -- BEGIN TEST OUTPUT -- Running main() from /builddir/build/BUILD/gtest-1.17.0-build/googletest-1.17.0/googletest/src/gtest_main.cc [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from ONNXClad [ RUN ] ONNXClad.Linear16 /github/home/ROOT-CI/src/tmva/sofie/test/TestCladAutodiff.cxx:109: Failure Failed Mismatch at index 1233 analytic=0.02939869649708271 numeric=0.026702878996729851 diff=0.0026958175003528595 [ FAILED ] ONNXClad.Linear16 (1637 ms) [----------] 1 test from ONNXClad (1637 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (1642 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] ONNXClad.Linear16 1 FAILED TEST -- END TEST OUTPUT -- CMake Error at /github/home/ROOT-CI/src/cmake/modules/RootTestDriver.cmake:210 (message): got exit code 1 but expected 0