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

[RECONSTRUCTION][CLANG] Fix clang llvm14 warnings #40611

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

aandvalenzuela
Copy link
Contributor

@aandvalenzuela aandvalenzuela commented Jan 25, 2023

Hello,

This PR fixes the warnings due to unused but set variables and the use of bitwise '|' or '&' with boolean operands that we get with LLVM14 in CLANG IBs for the reconstruction modules.

Thanks,
Andrea.

@cmsbuild cmsbuild added this to the CMSSW_13_0_X milestone Jan 25, 2023
@aandvalenzuela aandvalenzuela changed the title Fix clang llvm14 warnings [RECONSTRUCTION][CLANG] Fix clang llvm14 warnings Jan 25, 2023
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40611/33874

  • This PR adds an extra 84KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @aandvalenzuela (Andrea Valenzuela) for master.

It involves the following packages:

  • CommonTools/RecoAlgos (reconstruction)
  • RecoHI/HiJetAlgos (reconstruction)
  • RecoJets/JetProducers (reconstruction)
  • RecoLocalCalo/HcalRecAlgos (reconstruction)
  • RecoLocalMuon/DTSegment (reconstruction)
  • RecoLocalTracker/SiPixelClusterizer (reconstruction)
  • RecoLocalTracker/SiPixelRecHits (reconstruction)
  • RecoParticleFlow/PFClusterProducer (reconstruction)
  • RecoPixelVertexing/PixelTriplets (reconstruction)
  • RecoTracker/CkfPattern (reconstruction)
  • RecoTracker/FinalTrackSelectors (reconstruction)
  • RecoTracker/MeasurementDet (reconstruction)
  • RecoTracker/TkSeedingLayers (reconstruction)
  • RecoTracker/TransientTrackingRecHit (reconstruction)
  • TrackingTools/DetLayers (reconstruction)
  • TrackingTools/GsfTools (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@rappoccio, @VourMa, @yslai, @felicepantaleo, @hatakeyamak, @argiro, @bsunanda, @thomreis, @threus, @mmusich, @seemasharmafnal, @youyingli, @mmarionncern, @missirol, @ahinzmann, @mtosi, @JanFSchulte, @jhgoh, @lgray, @apsallid, @yenjie, @ferencek, @mandrenguyen, @yetkinyilmaz, @abbiendi, @GiacomoSguazzoni, @rovere, @VinInn, @mroguljic, @bellan, @nhanvtran, @gkasieczka, @schoef, @ebrondol, @abdoulline, @dgulhan, @clelange, @simonepigazzini, @jdamgov, @jdolen, @rchatter, @battibass, @jazzitup, @dkotlins, @kurtejung, @gpetruc, @mariadalfonso, @sameasy, @tvami this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@aandvalenzuela
Copy link
Contributor Author

please test

@@ -73,7 +73,7 @@ MultiGaussianState<N> CloseComponentsMerger<N>::merge(const MultiState& mgs) con
comp.push_back(ori[toMerge.top()]);
comp.push_back(ori[ii]);
active[ii] = false;
while ((!toMerge.empty()) & (!active[toMerge.top()])) {
while ((!toMerge.empty()) && (!active[toMerge.top()])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess here it should be a logical && to avoid out of bound reads
@VinInn please confirm/check

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-71c36a/30162/summary.html
COMMIT: afaf7a4
CMSSW: CMSSW_13_0_X_2023-01-24-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40611/30162/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 7 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555495
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555457
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40611/33910

  • This PR adds an extra 8KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40611 was updated. @cmsbuild, @mandrenguyen, @clacaputo can you please check and sign again.

Fix clang llvm14 warnings

Keep intended bitwise operator

Keep intended bitwise operator
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40611/33949

  • This PR adds an extra 76KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40611 was updated. @cmsbuild, @mandrenguyen, @clacaputo can you please check and sign again.

@clacaputo
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 3, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-71c36a/30378/summary.html
COMMIT: 26664b3
CMSSW: CMSSW_13_0_X_2023-02-02-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40611/30378/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 4 lines to the logs
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555495
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555467
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 213 log files, 164 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@clacaputo
Copy link
Contributor

+reconstruction

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 7, 2023

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

@perrotta
Copy link
Contributor

perrotta commented Feb 7, 2023

+1

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.

6 participants