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

PFTau.cc: remove pessimizing move #44618

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

iarspider
Copy link
Contributor

PR description:

GCC13 complains about pessimizing move in PFTau.cc:

>> Compiling LCG dictionary: tmp/el9_amd64_gcc13/src/DataFormats/CTPPSDetId/src/DataFormatsCTPPSDetId/a/DataFormatsCTPPSDetId_xr.cc
src/DataFormats/TauReco/src/PFTau.cc: In instantiation of 'T& reco::{anonymous}::makeCacheIfNeeded(edm::AtomicPtrCache<T>&) [with T = std::vector<reco::RecoTauPiZero>]':
src/DataFormats/TauReco/src/PFTau.cc:248:29:   required from here
src/DataFormats/TauReco/src/PFTau.cc:121:19: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
  121 |         oCache.set(std::move(std::make_unique<T>()));
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/DataFormats/TauReco/src/PFTau.cc:121:19: note: remove 'std::move' call
src/DataFormats/TauReco/src/PFTau.cc: In instantiation of 'T& reco::{anonymous}::makeCacheIfNeeded(edm::AtomicPtrCache<T>&) [with T = std::vector<reco::PFRecoTauChargedHadron>]':
src/DataFormats/TauReco/src/PFTau.cc:295:29:   required from here
src/DataFormats/TauReco/src/PFTau.cc:121:19: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
src/DataFormats/TauReco/src/PFTau.cc:121:19: note: remove 'std::move' call

PR validation:

Bot tests

@iarspider
Copy link
Contributor Author

please test for el9_amd64_gcc13

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44618/39807

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2024

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • DataFormats/TauReco (reconstruction)

@mandrenguyen, @jfernan2 can you please review it and eventually sign? Thanks.
@missirol, @rovere, @mbluj, @azotz this is something you requested to watch as well.
@antoniovilela, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2024

-1

Failed Tests: Build HeaderConsistency
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c1afdf/38604/summary.html
COMMIT: d23b366
CMSSW: CMSSW_14_1_X_2024-04-01-2300/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44618/38604/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-c1afdf/38604/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c1afdf/38604/git-merge-result

Build

I found compilation error when building:

/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02831/el9_amd64_gcc13/external/gcc/13.2.0-1b0a3367d04f48f01ad3ccf40e55475c/bin/../lib/gcc/x86_64-redhat-linux-gnu/13.2.0/../../../../x86_64-redhat-linux-gnu/bin/ld.bfd: cannot find -lSimDataFormatsTrackingAnalysis: No such file or directory
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02831/el9_amd64_gcc13/external/gcc/13.2.0-1b0a3367d04f48f01ad3ccf40e55475c/bin/../lib/gcc/x86_64-redhat-linux-gnu/13.2.0/../../../../x86_64-redhat-linux-gnu/bin/ld.bfd: cannot find -lDataFormatsTrackReco: No such file or directory
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02831/el9_amd64_gcc13/external/gcc/13.2.0-1b0a3367d04f48f01ad3ccf40e55475c/bin/../lib/gcc/x86_64-redhat-linux-gnu/13.2.0/../../../../x86_64-redhat-linux-gnu/bin/ld.bfd: cannot find -lDataFormatsTrackCandidate: No such file or directory
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02831/el9_amd64_gcc13/external/gcc/13.2.0-1b0a3367d04f48f01ad3ccf40e55475c/bin/../lib/gcc/x86_64-redhat-linux-gnu/13.2.0/../../../../x86_64-redhat-linux-gnu/bin/ld.bfd: cannot find -lDataFormatsTrajectorySeed: No such file or directory
/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02831/el9_amd64_gcc13/external/gcc/13.2.0-1b0a3367d04f48f01ad3ccf40e55475c/bin/../lib/gcc/x86_64-redhat-linux-gnu/13.2.0/../../../../x86_64-redhat-linux-gnu/bin/ld.bfd: cannot find -lDataFormatsTrackingRecHit: No such file or directory
collect2: error: ld returned 1 exit status
gmake: *** [tmp/el9_amd64_gcc13/src/Validation/RecoHI/plugins/CmsHiValidationPlugins/libCmsHiValidationPlugins.so] Error 1
Leaving library rule at src/Validation/RecoHI/plugins
>> Leaving Package Validation/RecoHI
>> Package Validation/RecoHI built
>> Entering Package CondFormats/External


@mandrenguyen
Copy link
Contributor

type tau

@cmsbuild cmsbuild added the tau label Apr 5, 2024
@iarspider
Copy link
Contributor Author

please test

@iarspider
Copy link
Contributor Author

Failures for gcc13 are expected. Warnings are gone as planned.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 5, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c1afdf/38615/summary.html
COMMIT: d23b366
CMSSW: CMSSW_14_1_X_2024-04-04-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44618/38615/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 2 lines to the logs
  • Reco comparison results: 42 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3307717
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3307691
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 7, 2024

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. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+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.

None yet

4 participants