Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: FPE in AnnealingUtility by using safeExp #2406

Merged
merged 9 commits into from
Sep 1, 2023

Conversation

paulgessinger
Copy link
Member

No description provided.

@github-actions github-actions bot added Component - Core Affects the Core module Infrastructure Changes to build tools, continous integration, ... labels Aug 29, 2023
@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #2406 (b9725f9) into main (928ceef) will increase coverage by 0.00%.
The diff coverage is 85.71%.

@@           Coverage Diff           @@
##             main    #2406   +/-   ##
=======================================
  Coverage   49.68%   49.69%           
=======================================
  Files         454      454           
  Lines       25807    25809    +2     
  Branches    11852    11852           
=======================================
+ Hits        12823    12825    +2     
  Misses       4581     4581           
  Partials     8403     8403           
Files Changed Coverage Δ
Core/include/Acts/Utilities/AlgebraHelpers.hpp 60.93% <80.00%> (+1.26%) ⬆️
Core/src/Utilities/AnnealingUtility.cpp 94.73% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@felix-russo felix-russo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@paulgessinger paulgessinger added this to the next milestone Aug 29, 2023
@paulgessinger paulgessinger marked this pull request as ready for review August 29, 2023 11:07
@benjaminhuth
Copy link
Member

still a merge conflict @paulgessinger

benjaminhuth
benjaminhuth previously approved these changes Aug 31, 2023
@benjaminhuth
Copy link
Member

@paulgessinger something is going wrong in physmon...

@paulgessinger
Copy link
Member Author

@benjaminhuth the gaussian mixture mask did not apply correctly.

@paulgessinger
Copy link
Member Author

Seems to me like the change to the safeExp functions brings (back?) an FPD in the gaussian density vertex finder:

m_cfg.gridDensity.subtractTrack(trackDensityMap, state.mainDensityMap);

Did you see something in that area before @felix-russo ?

@felix-russo
Copy link
Contributor

Seems to me like the change to the safeExp functions brings (back?) an FPD in the gaussian density vertex finder:

m_cfg.gridDensity.subtractTrack(trackDensityMap, state.mainDensityMap);

Did you see something in that area before @felix-russo ?

Yes - that was the reason for introducing safeExp originally:

)

My guess is that, for whatever reason, godbolt manages to calculate std::exp for smaller values than our machine. So before, when we used the cut-off value 50 for float everything worked, but now, when using 85, we run into the same FPE as before...

@benjaminhuth
Copy link
Member

Hmm maybe we go back to more conservative values like 50 for float and 500 for double?

@paulgessinger
Copy link
Member Author

Done now. Let's see how it goes.

@kodiakhq kodiakhq bot merged commit a872842 into acts-project:main Sep 1, 2023
@github-actions github-actions bot removed the automerge label Sep 1, 2023
@paulgessinger paulgessinger modified the milestones: next, v29.1.0 Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants