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

feat: Add ability to mask FPEs from code comment #2277

Merged
merged 9 commits into from
Jul 7, 2023

Conversation

paulgessinger
Copy link
Member

@paulgessinger paulgessinger commented Jul 6, 2023

Syntax is

float v = 1.0 / 0.0; // MARK: fpeMask(FLTDIV, 1)

where you can specify the FPE type, and the maximum number per event that is tolerated. You can add multiple fpeMask() expressions per line.

NOTE: This will likely only work in case of running from the build directory, not from an installed one.

Syntax is

```cpp
float v = 1.0 / 0.0; // MARK: fpeMask(FLTDIV, 1)
```
@paulgessinger paulgessinger added this to the next milestone Jul 6, 2023
Copy link
Contributor

@andiwand andiwand left a comment

Choose a reason for hiding this comment

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

nice! does this also work for long code lines? the formatter might insert line breaks as well

@github-actions github-actions bot added the Component - Examples Affects the Examples module label Jul 6, 2023
@paulgessinger
Copy link
Member Author

@andiwand You need to handle this manually, to ensure the comment is on the exact line. There are no other smarts applied.

@paulgessinger
Copy link
Member Author

Had to fix the format, can you reapprove @andiwand ?

andiwand
andiwand previously approved these changes Jul 6, 2023
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #2277 (212b3b9) into main (0eebf3b) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2277      +/-   ##
==========================================
- Coverage   49.27%   49.27%   -0.01%     
==========================================
  Files         450      450              
  Lines       25410    25415       +5     
  Branches    11724    11727       +3     
==========================================
+ Hits        12521    12523       +2     
+ Misses       4556     4554       -2     
- Partials     8333     8338       +5     

see 9 files with indirect coverage changes

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

@github-actions
Copy link

github-actions bot commented Jul 6, 2023

📊 Physics performance monitoring for 94cb805

Summary
Full report
Seeding: seeded, truth estimated, orthogonal
CKF: seeded, truth smeared, truth estimated, orthogonal
IVF: seeded, truth smeared, truth estimated, orthogonal
AMVF: seeded, truth smeared, truth estimated, orthogonal
Ambiguity resolution: seeded, orthogonal
Truth tracking
Truth tracking (GSF)

Vertexing

Vertexing vs. mu
IVF seeded

IVF truth_smeared

IVF truth_estimated

IVF orthogonal

AMVF seeded

AMVF truth_smeared

AMVF truth_estimated

AMVF orthogonal

Seeding

Seeding seeded

Seeding truth_estimated

Seeding orthogonal

CKF

CKF seeded

CKF truth_smeared

CKF truth_estimated

CKF orthogonal

Ambiguity resolution

seeded

Truth tracking (Kalman Filter)

Truth tracking

Truth tracking (GSF)

Truth tracking

@github-actions github-actions bot added the Infrastructure Changes to build tools, continous integration, ... label Jul 7, 2023
@kodiakhq kodiakhq bot merged commit a83b5ac into acts-project:main Jul 7, 2023
53 checks passed
@github-actions github-actions bot removed the automerge label Jul 7, 2023
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Jul 7, 2023
@CarloVarni CarloVarni removed the Fails Athena tests This PR causes a failure in the Athena tests label Jul 11, 2023
@paulgessinger paulgessinger removed this from the next milestone Jul 24, 2023
@paulgessinger paulgessinger added this to the v27.2.0 milestone Jul 24, 2023
paulgessinger added a commit to paulgessinger/acts that referenced this pull request Jul 24, 2023
Syntax is

```cpp
float v = 1.0 / 0.0; // MARK: fpeMask(FLTDIV, 1)
```

where you can specify the FPE type, and the maximum number per event that is tolerated. You can add multiple `fpeMask()` expressions per line.

NOTE: This will likely only work in case of running from the build directory, not from an installed one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Examples Affects the Examples module Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants