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

simplify elementLoop flow, add comments #27901

Merged
merged 1 commit into from Sep 6, 2019

Conversation

jpata
Copy link
Contributor

@jpata jpata commented Aug 30, 2019

PR description:

  • Further minor simplification of PFAlgo::elementLoop to identify core functionality.
  • Added a few comments.
  • Improved the logging output.
  • removed some obsolete code
  • No physics modifications

PR validation:

Checked that the output of runTheMatrix.py -l 38 did not change (7344 bytes in step3.root).

Other related PRs

#27505
#27153
#26894

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@jpata jpata mentioned this pull request Aug 30, 2019
6 tasks
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27901/11699

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @jpata (Joosep Pata) for master.

It involves the following packages:

RecoParticleFlow/PFProducer

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@mmarionncern, @hatakeyamak, @lgray, @seemasharmafnal, @cbernet, @bachtis this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Aug 30, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 30, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2279/console Started: 2019/08/30 16:41

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-300536/2279/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2955696
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2955354
  • DQMHistoTests: Total skipped: 341
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 145 log files, 15 edm output root files, 34 DQM output files

unsigned iTrack = iEle;
reco::MuonRef muonRef = elements[iTrack].muonRef();
if (muonRef.isNonnull()) {
LogTrace("PFAlgo|elementLoop") << "track " << iTrack << " has a valid muon reference. " << endl
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not see a replacement for this check on muonRef.
Is this just an unnecessary debugging piece?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for spotting that. Since isNonnull does not throw, in essence, this is just a debugging piece. I removed it since muonRef is not used anywhere else in function, so we might as well keep the code simpler.

@slava77
Copy link
Contributor

slava77 commented Sep 3, 2019

+1

for #27901 69c32c6

  • code changes are in line with the PR description
    • one set of LogTrace printouts was omitted, which seems OK anyways
  • jenkins tests pass and comparisons with the baseline show no differences

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

-1

Tested at: 69c32c6

  • Build:

I found compilation error when building:

STRXFRM_INTERCEPTOR_IMPL(wcsxfrm, dest, src, len);
^
[2361/4208] /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Passes -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/lib/Passes -Iinclude -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -MD -MT lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/lib/Passes/PassBuilder.cpp
[2362/4208] /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lld/lib/Driver -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/lib/Driver -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/include -Itools/lld/include -Iinclude -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -MD -MT tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o -MF tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o.d -o tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o -c /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/lib/Driver/DarwinLdDriver.cpp
ninja: build stopped: subcommand failed.
error: Bad exit status from /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.vJZyZ3 (%build)


RPM build errors:
Bad exit status from /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.vJZyZ3 (%build)



You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-27600e/2371/summary.html

@gartung
Copy link
Member

gartung commented Sep 4, 2019

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2372/console Started: 2019/09/05 00:11

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-externals/llvm-project#2
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2374/console Started: 2019/09/05 01:09
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2375/console Started: 2019/09/05 01:18

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 5, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 5, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 5, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-27600e/2375/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2955700
  • DQMHistoTests: Total failures: 4
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2955355
  • DQMHistoTests: Total skipped: 341
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 145 log files, 15 edm output root files, 34 DQM output files

@fabiocos
Copy link
Contributor

fabiocos commented Sep 6, 2019

@smuzaffar @slava77 it looks to me that the last issue discussed in this PR is unrelated to the PR itself but more a problem being debugged with the latest llvm settings, so this PR in itself could move forward

@smuzaffar
Copy link
Contributor

@fabiocos , yes this is correct.
Issue was with newer llvm which is now fixed ( thanks to @gartung ). The static analysis false positive which @slava77 mentioned here #27901 (comment) has been fixed now.

@fabiocos
Copy link
Contributor

fabiocos commented Sep 6, 2019

+1

@cmsbuild cmsbuild merged commit 00da9f8 into cms-sw:master Sep 6, 2019
@jpata jpata deleted the pfalgo_elementloop_factorize branch October 6, 2021 13:50
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

6 participants