Skip to content

Clamp fakePixels to maxFakesInModule#49142

Merged
cmsbuild merged 1 commit intocms-sw:masterfrom
fwyzard:pixel_digi_morphing_avoid_overflow_160x
Oct 14, 2025
Merged

Clamp fakePixels to maxFakesInModule#49142
cmsbuild merged 1 commit intocms-sw:masterfrom
fwyzard:pixel_digi_morphing_avoid_overflow_160x

Conversation

@fwyzard
Copy link
Copy Markdown
Contributor

@fwyzard fwyzard commented Oct 13, 2025

PR description:

After running the Pixel digi morphing algorithm, clamp fakePixels to maxFakesInModule to avoid overflowing the histogram container.

PR validation:

Run on top of the reproducer at #49125 without any crashes.

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 15.1.x and 15.0.x.

@fwyzard
Copy link
Copy Markdown
Contributor Author

fwyzard commented Oct 13, 2025

type bugfix

@cmsbuild
Copy link
Copy Markdown
Contributor

cmsbuild commented Oct 13, 2025

cms-bot internal usage

@cmsbuild
Copy link
Copy Markdown
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49142/46429

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Copy Markdown
Contributor

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

It involves the following packages:

  • RecoLocalTracker/SiPixelClusterizer (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @VinInn, @VourMa, @dkotlins, @elusian, @felicepantaleo, @ferencek, @gpetruc, @mmasciov, @mmusich, @mroguljic, @mtosi, @rovere, @threus, @tsusa, @tvami this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@fwyzard
Copy link
Copy Markdown
Contributor Author

fwyzard commented Oct 13, 2025

enable gpu

@fwyzard
Copy link
Copy Markdown
Contributor Author

fwyzard commented Oct 13, 2025

please test

@ftenchini
Copy link
Copy Markdown

+1

@cmsbuild
Copy link
Copy Markdown
Contributor

+1

Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5f5be2/48632/summary.html
COMMIT: 824875b
CMSSW: CMSSW_16_0_X_2025-10-12-2300/el8_amd64_gcc13
Additional Tests: GPU,AMD_MI300X,AMD_W7900,NVIDIA_H100,NVIDIA_L40S,NVIDIA_T4
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/49142/48632/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3940073
  • DQMHistoTests: Total failures: 41
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3940012
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 218 log files, 188 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

AMD_MI300X Comparison Summary

Summary:

AMD_W7900 Comparison Summary

Summary:

NVIDIA_H100 Comparison Summary

Summary:

NVIDIA_L40S Comparison Summary

Summary:

NVIDIA_T4 Comparison Summary

Summary:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why not once_per_block?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this

if (fakePixels > maxFakesInModule) {
  if (alpaka::once_per_block(acc)) {
    fakePixels = maxFakesInModule;
  }
  alpaka::syncBlockThreads(acc);
}

would indeed be equivalent.
But it's one extra line of code 🤷🏻‍♂️

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note that both approaches are fine because they are right after a alpaka::syncBlockThreads(acc);

@ftenchini
Copy link
Copy Markdown

ftenchini commented Oct 14, 2025

@cms-sw/reconstruction-l2 could you please review this as well as its backport #49144?
They are needed in a patch for data-taking.

@jfernan2
Copy link
Copy Markdown
Contributor

+1

@cmsbuild
Copy link
Copy Markdown
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 be automatically merged.

@cmsbuild cmsbuild merged commit c6d61a7 into cms-sw:master Oct 14, 2025
25 checks passed
@fwyzard fwyzard deleted the pixel_digi_morphing_avoid_overflow_160x branch October 14, 2025 09:16
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