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

fix check on shrEnergyM0TotalAccum in HCAL-Alpaka kernel [14_0_X] #45453

Conversation

missirol
Copy link
Contributor

@missirol missirol commented Jul 15, 2024

backport of #45452

PR description:

From the description of #45452:

This PR fixes how the values in the array shrEnergyM0TotalAccum in shared memory are used in one of the HCAL-Alpaka kernels.

The per-channel value of shrEnergyM0TotalAccum[lch] is filled summing values across "samples", and this is done concurrently on GPU. The issue is that the same value is accessed before threads are synchronised. In the examples tested offline, this tends to return almost-always the correct results on GPU, but incorrect ones on CPU (or rather, "serial_sync" backend) as the samples in the latter case are processed one at the time.

This change and related validation (see below) were discussed offline last week with @fwyzard and @kakwok.

PR validation:

See the validation section of #45452.

If this PR is a backport, please specify the original PR and why you need to backport that PR. If this PR will be backported, please specify to which release cycle the backport is meant for:

#45452

Fix relevant to 2024 data-taking.

@cmsbuild cmsbuild added this to the CMSSW_14_0_X milestone Jul 15, 2024
@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 15, 2024

A new Pull Request was created by @missirol for CMSSW_14_0_X.

It involves the following packages:

  • RecoLocalCalo/HcalRecProducers (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@abdoulline, @apsallid, @bsunanda, @mariadalfonso, @youyingli 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 Jul 15, 2024

cms-bot internal usage

@jfernan2
Copy link
Contributor

assign heterogeneous

@cmsbuild
Copy link
Contributor

New categories assigned: heterogeneous

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

@missirol missirol force-pushed the devel_hcalAlpaka_fixShrEnergyM0TotalAccum_14_0_11 branch from 9ef8d85 to 8d5fcd4 Compare July 15, 2024 10:10
@cmsbuild
Copy link
Contributor

Pull request #45453 was updated. @cmsbuild, @fwyzard, @jfernan2, @makortel, @mandrenguyen can you please check and sign again.

@missirol missirol force-pushed the devel_hcalAlpaka_fixShrEnergyM0TotalAccum_14_0_11 branch from 8d5fcd4 to 15b9897 Compare July 15, 2024 10:41
@cmsbuild
Copy link
Contributor

Pull request #45453 was updated. @cmsbuild, @fwyzard, @jfernan2, @makortel, @mandrenguyen can you please check and sign again.

@fwyzard
Copy link
Contributor

fwyzard commented Jul 15, 2024

+heterogeneous

@fwyzard
Copy link
Contributor

fwyzard commented Jul 15, 2024

please test

@fwyzard
Copy link
Contributor

fwyzard commented Jul 15, 2024

urgent

I understood that the release managers will not be available later, so we should get this in the next 14.0.x patch release sooner rather than later.

@missirol missirol force-pushed the devel_hcalAlpaka_fixShrEnergyM0TotalAccum_14_0_11 branch from 15b9897 to 73e3cc8 Compare July 15, 2024 14:11
@cmsbuild
Copy link
Contributor

Pull request #45453 was updated. @jfernan2, @mandrenguyen can you please check and sign again.

@cmsbuild
Copy link
Contributor

Pull request #45453 was updated. @cmsbuild, @fwyzard, @jfernan2, @makortel, @mandrenguyen can you please check and sign again.

@jfernan2
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0f1ce9/40408/summary.html
COMMIT: 57e9df5
CMSSW: CMSSW_14_0_X_2024-07-15-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/45453/40408/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@fwyzard
Copy link
Contributor

fwyzard commented Jul 16, 2024

+heterogeneous

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_14_0_X IBs (tests are also fine) 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. @rappoccio, @antoniovilela, @mandrenguyen, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit b770785 into cms-sw:CMSSW_14_0_X Jul 17, 2024
9 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.

5 participants