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

ECAL skip GPU unpacking of the rest of the block if a bad block is detected #42301

Merged

Conversation

thomreis
Copy link
Contributor

PR description:

Skip the GPU unpacking of the rest of the block if a bad block is detected in one thread. This behaviour matches the one of the CPU unpacker.

Addresses #42090.

PR validation:

No crashes with integrity errors observed in runs 367771, 368547, and 368724 in #39568. Passes WF 12434.512

@thomreis
Copy link
Contributor Author

type ecal

@thomreis
Copy link
Contributor Author

enable gpu

@cmsbuild cmsbuild added the ecal label Jul 18, 2023
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42301/36323

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @thomreis (Thomas Reis) for master.

It involves the following packages:

  • EventFilter/EcalRawToDigi (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@rchatter, @argiro, @Martin-Grunewald, @missirol, @thomreis, @wang0jin 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

@thomreis
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-df519e/33762/summary.html
COMMIT: 4795d11
CMSSW: CMSSW_13_3_X_2023-07-18-1100/el8_amd64_gcc11
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42301/33762/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 10 lines from the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3195634
  • DQMHistoTests: Total failures: 4
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3195608
  • 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

GPU Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 3
  • DQMHistoTests: Total histograms compared: 40086
  • DQMHistoTests: Total failures: 21
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 40065
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 2 files compared)
  • Checked 8 log files, 10 edm output root files, 3 DQM output files
  • TriggerResults: found differences in 2 / 2 workflows

@mandrenguyen
Copy link
Contributor

This doesn't change reco, and nothing alarming jumps out from a visual inspection.
@cms-sw/hlt-l2 and @cms-sw/heterogeneous-l2 are not assigned, but do you wish to comment (or assign yourself)?

@missirol
Copy link
Contributor

I can't really judge the implementation. I think it would make sense to wait for the review of @cms-sw/heterogeneous-l2.

Copy link
Contributor

@fwyzard fwyzard left a comment

Choose a reason for hiding this comment

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

I'm looking into the break on line 320, please speak up if you have any comments!

EventFilter/EcalRawToDigi/plugins/UnpackGPU.cu Outdated Show resolved Hide resolved
break;
if (i_to_access == 0) {
ch_with_bad_block = 999999;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think in principle there should be a __syncthreads() here, to guarantee that all threads see the initial assignment of ch_with_bad_block before the atomicMin(&ch_with_bad_block, i_to_access); at line 314.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could put a __syncthreads() just before the if (bad_block) { in line 313. I think there is no need for it to be in the loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My mistake. It had to be just after the initialisation.

EventFilter/EcalRawToDigi/plugins/UnpackGPU.cu Outdated Show resolved Hide resolved

// threads outside of the range or bad block detected in this thread or one working on a lower block -> leave the loop
if (i_to_access >= nchannels || i_to_access >= ch_with_bad_block) {
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

I am somewhat concerned about what happens when i_to_access >= ch_with_bad_block happens:

  • the threads for which i_to_access >= ch_with_bad_block break from the loop
  • during the next iteration of the for loop, some of the threads execute again the loop until here, where they should also bail out
  • however, the behaviour of the __syncthreads() in the first part of the loop in undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was probably not an issue during testing because with the current configuration the loop is only executed once.
I could replace the break with a continue to make sure all loop iterations are done at least until the __syncthreads.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-df519e/33902/summary.html
COMMIT: 55fc14b
CMSSW: CMSSW_13_3_X_2023-07-25-2300/el8_amd64_gcc11
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/42301/33902/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: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3150117
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3150092
  • 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

GPU Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 3
  • DQMHistoTests: Total histograms compared: 40086
  • DQMHistoTests: Total failures: 21
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 40065
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 2 files compared)
  • Checked 8 log files, 10 edm output root files, 3 DQM output files
  • TriggerResults: found differences in 2 / 2 workflows

@fwyzard
Copy link
Contributor

fwyzard commented Jul 26, 2023

assign heterogeneous

@fwyzard
Copy link
Contributor

fwyzard commented Jul 26, 2023

I'll try to have a second look during the afternoon

@cmsbuild
Copy link
Contributor

New categories assigned: heterogeneous

@fwyzard,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@fwyzard
Copy link
Contributor

fwyzard commented Jul 27, 2023

+heterogeneous

LGTM

@mandrenguyen
Copy link
Contributor

+1

@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)

@thomreis
Copy link
Contributor Author

thomreis commented Jul 27, 2023

Do we need a backport to 131X and 130X or do we not care anymore?

@fwyzard
Copy link
Contributor

fwyzard commented Jul 27, 2023

I would still make a backport to 13.0.x, if you and the release managers agree.
I do not care about 13.1.x.

@fwyzard
Copy link
Contributor

fwyzard commented Jul 27, 2023

By the way, we definitely need a backport to 13.2.x!

@perrotta
Copy link
Contributor

+1

@thomreis
Copy link
Contributor Author

Backports to 132x and 130x are in #42394 and #42395 , respectively. Let me know if I should also make one for 131x for continuity.

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