Skip to content

[tmva][sofie] Use double for accumulator in numeric differentiation result#22789

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:fed44
Jul 13, 2026
Merged

[tmva][sofie] Use double for accumulator in numeric differentiation result#22789
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:fed44

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

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):

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

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
```
@guitargeek guitargeek self-assigned this Jul 12, 2026
@guitargeek
guitargeek requested a review from lmoneta as a code owner July 12, 2026 08:14
@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 17h 51m 20s ⏱️
 3 871 tests  3 867 ✅   0 💤 4 ❌
79 675 runs  79 565 ✅ 106 💤 4 ❌

For more details on these failures, see this check.

Results for commit 197d235.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek added the pr:emergency🚨 This PR is fixing breakage, it's urgent and may overtake others label Jul 12, 2026
@guitargeek
guitargeek requested a review from dpiparo July 12, 2026 20:34
@guitargeek
guitargeek merged commit 7cf1115 into root-project:master Jul 13, 2026
63 of 68 checks passed
@guitargeek
guitargeek deleted the fed44 branch July 13, 2026 08:02
@guitargeek

Copy link
Copy Markdown
Contributor Author

/backport to 6.40

@root-project-bot

Copy link
Copy Markdown

Preparing to backport PR #22789 to branch 6.40 requested by guitargeek

@root-project-bot

Copy link
Copy Markdown

Something went wrong when assigning the PR or setting labels @guitargeek please see the logs

@root-project-bot

Copy link
Copy Markdown

This PR has been backported to branch 6.40: #22793

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

Labels

in:SOFIE pr:emergency🚨 This PR is fixing breakage, it's urgent and may overtake others

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants