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

Use finite math. #2290

Merged
merged 1 commit into from Feb 5, 2014
Merged

Use finite math. #2290

merged 1 commit into from Feb 5, 2014

Conversation

ktf
Copy link
Contributor

@ktf ktf commented Feb 4, 2014

  • Fixes issue with gcc 4.9.0.
  • std::numeric_limit::infinity is non-finite.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2014

A new Pull Request was created by @ktf (Giulio Eulisse) for CMSSW_7_1_X.

Use finite math.

It involves the following packages:

DataFormats/EgammaCandidates

@nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

dist(std::numeric_limits<float>::infinity()),
dcot(std::numeric_limits<float>::infinity()),
radius(std::numeric_limits<float>::infinity())
: flags(-std::numeric_limits<float>::max()),
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the meaning of

(int)(-std::numeric_limits<float>::max())

We discussed this with Florian back in July and a better choice was -1 (another alternative is -9999, the "native"
undefined value for the algorithm used here https://cmssdt.cern.ch/SDT/lxr/source/RecoEgamma/EgammaTools/src/ConversionFinder.cc#461)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not have any preference. Any value would do. The advantage of
-max() is that it will behave like -inf for small numbers (i.e. X / -max
-> ~0) in case some bit of the code depended on that (which it
shouldn't, but that's another thing).

Copy link
Contributor

Choose a reason for hiding this comment

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

please change to "-1"

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2014

- Fixes issue with gcc 4.9.0.
- std::numeric_limit<float>::infinity is non-finite.
@ktf
Copy link
Contributor Author

ktf commented Feb 4, 2014

I changed it for flags. Did you want to have it -1 everywhere?

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 4, 2014

Pull request #2290 was updated. @nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Feb 4, 2014

Just for the flags.
Thanks

@nclopezo nclopezo modified the milestones: CMSSW_7_1_0_pre3, CMSSW_7_1_0_pre2 Feb 5, 2014
@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2014

@slava77
Copy link
Contributor

slava77 commented Feb 5, 2014

"Comparison with the baseline   Still running..."

This is two hours after +1 from cmsbuild.
How soon should I assume the comparison script got stuck or failed?

@ktf
Copy link
Contributor Author

ktf commented Feb 5, 2014

I wrote @nclopezo about this… Not sure what is going on...

@nclopezo
Copy link
Contributor

nclopezo commented Feb 5, 2014

Hi,

The comparison is not being triggered correctly. I am looking into the configuration of the jenkins rules to see why. For this one, I triggered it again manually. It is in the queue now.

@nclopezo
Copy link
Contributor

nclopezo commented Feb 5, 2014

@slava77
Hi Slava,
you should be able to see the comparison results now.

@slava77
Copy link
Contributor

slava77 commented Feb 5, 2014

+1
using #2290 300b5b6

decision based on code diffs (OK) and jenkins (OK)

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 5, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

ktf added a commit that referenced this pull request Feb 5, 2014
@ktf ktf merged commit 3c4ea46 into cms-sw:CMSSW_7_1_X Feb 5, 2014
@ktf ktf deleted the use-finite-math branch February 5, 2014 14:04
@nclopezo nclopezo modified the milestones: CMSSW_7_1_0_pre4, CMSSW_7_1_0_pre3 Feb 24, 2014
@nclopezo nclopezo modified the milestones: CMSSW_7_1_0_pre5, CMSSW_7_1_0_pre4 Mar 10, 2014
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.

None yet

4 participants