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

Change the default optimisation level to -O3 #9183

Merged

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented May 10, 2024

No description provided.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard for branch IB/CMSSW_14_1_X/master.

@smuzaffar, @iarspider, @cmsbuild, @aandvalenzuela can you please review it and eventually sign? Thanks.
@sextonkennedy, @rappoccio, @antoniovilela you are the release manager for this.
cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented May 10, 2024

cms-bot internal usage

@fwyzard
Copy link
Contributor Author

fwyzard commented May 10, 2024

cms-sw/cmssw#44931 shows a 2.4% speed up to the HLT, running with the x86-64-v3 microarch.

@fwyzard
Copy link
Contributor Author

fwyzard commented May 10, 2024

please test

@smuzaffar
Copy link
Contributor

smuzaffar commented May 10, 2024

test parameters:

  • full_cmssw = true
  • enable = threading

@smuzaffar
Copy link
Contributor

please test

lets re-build full cmssw

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39335/summary.html
COMMIT: dd72101
CMSSW: CMSSW_14_1_X_2024-05-09-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/9183/39335/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39335/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39335/git-merge-result

Comparison Summary

Summary:

@slava77
Copy link
Contributor

slava77 commented May 10, 2024

Reco comparison results: 12 differences found in the comparisons

this doesn't have the usual numerical precision level differences.
The log looks like the build is full. Oddly clean.

@makortel
Copy link
Contributor

Reco comparison results: 12 differences found in the comparisons

this doesn't have the usual numerical precision level differences.

What do you mean? We shouldn't be having random numerical-precision level differences that would occur "reliably" in CPU PR tests (as opposed to the "known random differences"), or have I missed something?

@slava77
Copy link
Contributor

slava77 commented May 10, 2024

Reco comparison results: 12 differences found in the comparisons

this doesn't have the usual numerical precision level differences.

What do you mean? We shouldn't be having random numerical-precision level differences that would occur "reliably" in CPU PR tests (as opposed to the "known random differences"), or have I missed something?

a recompilation with different flags related to optimization typically leads to some bitwise differences. It's not the case here. I haven't looked closely enough at what -O3 does compared to the baseline/default.

@fwyzard
Copy link
Contributor Author

fwyzard commented May 10, 2024

On top of -O2, -O3 enables

According to the GCC documentation these should only deal with invariant changes. So, unlike with -Ofast, -ffast-math and -ffp-contract, I think it is expected that there aren't any differences in the results.

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39349/summary.html
COMMIT: dd72101
CMSSW: CMSSW_14_1_X_2024-05-12-0000/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmsdist/9183/39349/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@smuzaffar
Copy link
Contributor

please test for el9_amd64_gcc12

@smuzaffar
Copy link
Contributor

please test for el8_aarch64_gcc12

@smuzaffar
Copy link
Contributor

smuzaffar commented May 21, 2024

please test for el8_amd64_gcc12

lets test with thread enabled too

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39448/summary.html
COMMIT: dd72101
CMSSW: CMSSW_14_1_X_2024-05-20-2300/el8_aarch64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/9183/39448/install.sh to create a dev area with all the needed externals and cmssw changes.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39449/summary.html
COMMIT: dd72101
CMSSW: CMSSW_14_1_X_2024-05-20-2300/el8_amd64_gcc12
Additional Tests: THREADING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/9183/39449/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-be9632/39447/summary.html
COMMIT: dd72101
CMSSW: CMSSW_14_1_X_2024-05-20-2300/el9_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmsdist/9183/39447/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 70 lines to the logs
  • Reco comparison results: 56417 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3338862
  • DQMHistoTests: Total failures: 146340
  • DQMHistoTests: Total nulls: 282
  • DQMHistoTests: Total successes: 3192220
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.273 KiB( 47 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): -0.903 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 13034.0 ): 0.862 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 141.044 ): -0.012 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 141.046 ): 0.004 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 250202.181 ): -0.288 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 25202.0 ): 0.064 KiB SiStrip/MechanicalView
  • Checked 202 log files, 165 edm output root files, 48 DQM output files

@smuzaffar smuzaffar changed the base branch from IB/CMSSW_14_1_X/master to IB/CMSSW_14_1_X/g4 May 22, 2024 15:23
@smuzaffar
Copy link
Contributor

+externals
lets get this in GEANT4 IBs first

@smuzaffar smuzaffar merged commit 69b7964 into cms-sw:IB/CMSSW_14_1_X/g4 May 22, 2024
23 checks passed
@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IB/CMSSW_14_1_X/g4 IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

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.

5 participants