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 a race condition in splitVertices [14.0.x] #45655

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Aug 6, 2024

PR description:

Add

alpaka::syncBlockThreads(acc);

at the end of the loop on the vertices to ensure that all threads are properly synchronised before resetting the shared memory.

Clean up the kernel to use the SoA accessors and the cms::alpakatools utilities.

PR validation:

Running the HLT with compute-sanitizer --tool=racecheck without this PR warns about a potential race condition in splitVertices().
This PR fixes the warning: see #44923 (comment).

Running the current online HLT menu over 20k events on top of CMSSW 14.0.13-patch2 does not result in any changes to the HLT results (see #45656 (comment)) and performance on GPU (see #45656 (comment)).

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:

Backport of #45656 to 14.0.x for data taking.

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

type bugfix

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

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

It involves the following packages:

  • RecoTracker/PixelVertexFinding (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @JanFSchulte, @VinInn, @VourMa, @dgulhan, @felicepantaleo, @gpetruc, @missirol, @mmusich, @mtosi, @rovere this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

cms-bot internal usage

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

@mmusich @AdrianoDee @missirol FYI, but also can you double check this ?

Add

    alpaka::syncBlockThreads(acc);

at the end of the loop on the vertices to ensure that all threads are
properly synchronised before resetting the shared memory.

Clean up the kernel to use the SoA accessors and the cms::alpakatools
utilities.
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

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

@fwyzard fwyzard changed the title Fix a race condition in splitVertices Fix a race condition in splitVertices [14.0.x] Aug 6, 2024
@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

backport #45656

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

please test

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

enable gpu

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 6, 2024

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 6, 2024

+1

Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3401f4/40810/summary.html
COMMIT: 5408c0f
CMSSW: CMSSW_14_0_X_2024-08-06-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/45655/40810/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@AdrianoDee
Copy link
Contributor

All the changes looks good to me

@mandrenguyen
Copy link
Contributor

+reconstruction

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2024

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. @antoniovilela, @sextonkennedy, @mandrenguyen, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 49dc9e9 into cms-sw:CMSSW_14_0_X Aug 8, 2024
9 checks passed
@fwyzard fwyzard deleted the fix_splitVertices_140x branch August 12, 2024 07:35
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