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

Phase-2 L1T: update Correlator layer 1 barrel "TDR" regionizer emulator #41838

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

gpetruc
Copy link
Contributor

@gpetruc gpetruc commented Jun 1, 2023

PR description:

This PR updates the emulator of the "TDR" regionizer for the Barrel region of the Correlator Layer 1.

It is the forward to the CMSSW master of cms-l1t-offline#1134, which contains two PRs from @jmitrevs:

This emulator is not yet enabled in the default configuration of the correlator trigger, so no physics changes are expected from this PR, but is run in integration tests and comparisons with the firmware so we would like to have it integrated in CMSSW (and then we may perform the switch of the default configuration to enable this emulator in a later PR)

As a side comment, a separate PR which will add the fillDescriptions to all the Correlator Layer 1 emulators will arrive in the next weeks: it's some amount of work and for the sake of validation I'd rather keep it factorized from changes to the emulator algorithms themselves.

PR validation:

This PR was tested on CMSSW_13_2_X_2023-05-31-1100 (el8)

  • standard code-checks
  • runTheMatrix.py -l 23234.0 (runs the standard L1T config, so it does not run this emulator)
  • L1Trigger/Phase2L1ParticleFlow/test/make_l1ct_binaryFiles_cfg.py (used for correlator trigger integration, runs this emulator among other custom firmware-friendly configurations)

The original code in 12_5_2_patch1 was validated against the firmware by @jmitrevs.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41838/35737

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

A new Pull Request was created by @gpetruc (Giovanni Petrucciani) for master.

It involves the following packages:

  • L1Trigger/Phase2L1ParticleFlow (upgrade, l1)

@epalencia, @AdrianoDee, @srimanob, @cmsbuild, @aloeliger can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol 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

@gpetruc
Copy link
Contributor Author

gpetruc commented Jun 1, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 1, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b256da/32923/summary.html
COMMIT: 6bd81b8
CMSSW: CMSSW_13_2_X_2023-05-31-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41838/32923/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 15 lines from the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3221457
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3221432
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

Comment on lines 76 to 77
inline unsigned int l1ct::tdr_regionizer::Buffer<l1ct::TkObjEmu>::nextObjClk(unsigned int ndup) {
assert(ndup == 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a little confused by this. You take ndup as a parameter... but then assert it has to be 1 or crash? Why is this done this way?

Copy link
Contributor

@jmitrevs jmitrevs Jun 2, 2023

Choose a reason for hiding this comment

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

Basically it's that ndup != 1 is not implemented yet. In particular, it hasn't been implemented in the corresponding firmware, and there will likely never be a need for it. This function is the template specialization for TkObjEmu, which is a bit special since two objects are sent in three transfers, unlike the others which are one object per transfer. The call signature is the same as for the general case, which uses ndup.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be a good idea to throw a more detailed exception that makes these assumptions/explanations clear?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure. I'll update it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cherry-picked here the commit that throws the exception.

For the reviewers: it's a std::exception and not a cms::Exception since this emulator code is also compiled standalone outside CMSSW.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2023

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41838/35771

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2023

Pull request #41838 was updated. @epalencia, @AdrianoDee, @srimanob, @cmsbuild, @aloeliger can you please check and sign again.

@perrotta
Copy link
Contributor

perrotta commented Jun 5, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2023

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b256da/32974/summary.html
COMMIT: 8158f07
CMSSW: CMSSW_13_2_X_2023-06-04-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/41838/32974/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 8 lines from the logs
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3221457
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3221432
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@aloeliger
Copy link
Contributor

+l1

@gpetruc
Copy link
Contributor Author

gpetruc commented Jun 12, 2023

Hello @AdrianoDee, can you have a look at this PR?

Thanks,

Giovanni

@AdrianoDee
Copy link
Contributor

+upgrade

@cmsbuild
Copy link
Contributor

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

+1

@cmsbuild cmsbuild merged commit 38b0282 into cms-sw:master Jun 13, 2023
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