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

SoA range checking: adds inter operability between range checked and non range checked [14.0.x] #43881

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Feb 6, 2024

PR description:

This PR adds copy and construction compatibility between Views and ConstViews (respectively, no const evasion was created) with different template parameters. This allows compile time switching to the range checking variant for debugging. The Views are usually used from the PortableCollections (and are non range checking). Changing the signature or a function or kernel to use the range checking variant simply requires a type definition change and the creation of a translating variable at the kernel call. The program will then half immediately on range violation.

PR validation:

The copy and construction are now validated in a test, as part of this PR. I addition this feature was used and validated to debug an actual out of range error during module debugging.

Backport status:

Backport of #41928 to CMSSW_14_0_X for data taking.

This change allows providing a range checked to the code, presumably to debug
without changing the PortableCollections (which always provide non-range checking views).
Range and non-range checking variants can be contructed from one another.
Positivty tests were missing as the indices are of a signed type (for ROOT compatibility).
Explain that using a typedef as a template parameter causes the ROOT dicionary
generation to fail.
@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 6, 2024

backport #41928

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 6, 2024

please test

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 6, 2024

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2024

This pull request is fully signed and it will be integrated in one of the next CMSSW_14_0_X IBs after it passes the integration tests and once validation in the development release cycle CMSSW_14_1_X is complete. This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @rappoccio, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2024

A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_14_0_X.

It involves the following packages:

  • DataFormats/SoATemplate (heterogeneous)

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

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d367b0/37255/summary.html
COMMIT: 2fe7470
CMSSW: CMSSW_14_0_X_2024-02-06-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43881/37255/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 51 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3248614
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3248589
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 200 log files, 161 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit cb75043 into cms-sw:CMSSW_14_0_X Feb 8, 2024
24 checks passed
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.

4 participants