Skip to content

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

Merged
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22789
Jul 13, 2026
Merged

[6.40] [tmva][sofie] Use double for accumulator in numeric differentiation result#22793
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22789

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #22789, requested by @guitargeek.

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
```

(cherry picked from commit 7cf1115)
@guitargeek guitargeek changed the title [6.40] [tmva][sofie] Use \double\ for accumulator in numeric differentiation result [6.40] [tmva][sofie] Use double for accumulator in numeric differentiation result Jul 13, 2026
@guitargeek guitargeek merged commit d59ef15 into root-project:v6-40-00-patches Jul 13, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants