-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Set cling optimization level to 3 and turn off pointer checks #6038
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
Set cling optimization level to 3 and turn off pointer checks #6038
Conversation
|
Can one of the admins verify this patch? |
| ASTTransformers.emplace_back(new AutoSynthesizer(TheSema)); | ||
| ASTTransformers.emplace_back(new EvaluateTSynthesizer(TheSema)); | ||
| if (hasCodeGenerator() && !m_Interpreter->getOptions().NoRuntime) { | ||
| if (0 && hasCodeGenerator() && !m_Interpreter->getOptions().NoRuntime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which approach do you recommend to turn off pointer checks?
|
This PR increases the optimization level (in many cases, this lead to more time spend in loading the script that executing it) and disable nullptr pointer check for *everybody* is that really the intent? |
|
Hi Philippe, The intent of this PR is to start a discussion. Fons dislikes the idea of using a patched ROOT version. Until https://sft.its.cern.ch/jira/browse/ROOT-10707 ships, would it be possible to add an e.g. rootrc parameter to influence the optimization level and pointer checks, or do you recommend waiting for ROOT-10707? |
|
@phsft-bot build! |
|
Starting build on |
|
Build failed on ROOT-fedora31/noimt. Failing tests:
And 714 more |
|
Build failed on ROOT-fedora30/cxx14. Failing tests:
And 723 more |
|
Build failed on ROOT-performance-centos7-multicore/default. Errors:
And 8 more Failing tests:
And 1237 more |
|
Build failed on ROOT-ubuntu16/nortcxxmod. Failing tests:
And 728 more |
|
Converted to draft in order to be able to remove the |
|
This should be addressed in 6.26 and master. Can you confirm the effect? Given that we now have a mechanism in place I will close this PR. |
Our use case requires optimization level 3 and disabled pointer checks. Therefore Fons asked me to send this PR.
Please see the following discussion:
https://root-forum.cern.ch/t/jit-performance-issue/38555
Commit based on
https://bitbucket.org/wlav/cppyy-backend/src/master/cling/patches/optlevel2_forced.diff