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 pixel CPE position #45471

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Jul 16, 2024

PR description:

Rewrite the pixel CPE position calculation to improve the reproducibility of the results.

Fix the includes used in DataFormats/TrackingRecHitSoA to avoid the dependency on RecoLocalTracker/SiPixelRecHits.

Thanks to @missirol for spotitng the source of the discrepancy.

PR validation:

Tested on top of CMSSW 14.0.11 running the HLT over 100k events:

  • the CPU-only results are reproducible, with and without these changes;
  • the GPU vs CPU results are in general slightly more reproducible;
  • the biggest improvement is fixing the reproducibility of HLT_SingleEle8_v7, going from 2% of the accepted events to being fully reproducible.
GPU vs CPU results, without these changes
  • +4/-5 events in HLT_SingleEle8_v7 (2% of the accepted events)
  • +/-4 events in 1 path
  • +/-3 events in 2 paths
  • +/-2 events in 6 paths
  • +/-1 event in 59 paths
GPU vs CPU results, with these changes
  • +/-3 events in 2 paths
  • +/-2 events in 12 paths
  • +/-1 event in 46 paths

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:

To be backported to 14.0.x for data taking.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 16, 2024

cms-bot internal usage

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

type bugfix

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

+heterogeneous

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

@VinInn does this looks reasonable to you ?

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

enable gpu

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45471/40930

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DataFormats/TrackingRecHitSoA (heterogeneous, reconstruction)
  • RecoLocalTracker/SiPixelRecHits (reconstruction)
  • RecoTracker/PixelSeeding (reconstruction)

@jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @JanFSchulte, @VinInn, @VourMa, @dgulhan, @dkotlins, @felicepantaleo, @ferencek, @gpetruc, @missirol, @mmusich, @mroguljic, @mtosi, @rovere, @threus, @tsusa, @tvami 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

@@ -234,17 +234,30 @@ namespace pixelCPEforDevice {
if (cp.minCol[ic] == 0 || cp.maxCol[ic] == uint32_t(detParams.nCols - 1))
cp.ysize[ic] = -cp.ysize[ic];

/* original code, kept for documentation

Copy link
Contributor

@VinInn VinInn Jul 16, 2024

Choose a reason for hiding this comment

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

ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the new code is much less readable...

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add "make sure optimization does not produce different code on different architectures "
(or similar)

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

test parameters:

  • enable = gpu
  • workflows_gpu = 12634.402,12634.403,12634.404

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

please test

@jfernan2
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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

@fwyzard fwyzard force-pushed the fix_pixel_CPE_poisition_141x branch from 02e04ac to 785ff5d Compare July 16, 2024 16:52
@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

+heterogeneous

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45471/40935

@fwyzard
Copy link
Contributor Author

fwyzard commented Jul 16, 2024

Sorry @jfernan2, could you sign again ?
I think I only updated the comments since you signed earlier.
Thanks !

@jfernan2
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 after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @antoniovilela, @mandrenguyen, @sextonkennedy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c6e7fa/40437/summary.html
COMMIT: 785ff5d
CMSSW: CMSSW_14_1_X_2024-07-16-1100/el8_amd64_gcc12
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/45471/40437/install.sh to create a dev area with all the needed externals and cmssw changes.

  • DAS Queries: The DAS query tests failed, see the summary page for details.

Comparison Summary

Summary:

GPU Comparison Summary

Summary:

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 80f86b5 into cms-sw:master Jul 17, 2024
15 checks passed
@fwyzard fwyzard deleted the fix_pixel_CPE_poisition_141x branch July 17, 2024 14:43
@fwyzard fwyzard changed the title Fix pixel CPE poisition Fix pixel CPE position Jul 23, 2024
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