Skip to content

Conversation

@Electricks94
Copy link
Contributor

The PortableCollections have an inconsistent interface if used with a normal Layout or with an SoABlocks Layout. In the later case, the Alpaka Queue is the first argument, while in the first case it is the other way around. This PR addresses the problem and sets the Alpaka Queue always as the first argument.

Furthermore, the constructors of the PortableCollections are streamlined to always use std::integal as the input type for the elements. Then a checked_cast has been implemented that checks if casting to int is safe. If so, the inputs are casted to int. Casting to int is necessary since the SoA Layouts use int for the number of elements due to the dependency on ROOT.

This PR has to be addressed after #49734.

@felicepantaleo fyi

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 19, 2026

cms-bot internal usage

@Electricks94
Copy link
Contributor Author

type ngt

@cmsbuild cmsbuild added the ngt label Jan 19, 2026
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49860/47547

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49860/47577

@cmsbuild
Copy link
Contributor

Pull request #49860 was updated. @Dr15Jones, @bsunanda, @civanch, @cmsbuild, @fwyzard, @hjkwon260, @kpedro88, @makortel, @mdhildreth, @valsdav, @y19y19 can you please check and sign again.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

please test

@mandrenguyen
Copy link
Contributor

This one would have to be signed and merged by 11PM CET for the backport to be included in 16_0_0

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

+heterogeneous

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

@mandrenguyen thanks for clarifying the timeline.
I have been waiting for the tests to finish again, but the PR should be good to go.

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals-AMD_W7900
Size: This PR adds an extra 480KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8d2c1b/50987/summary.html
COMMIT: 75c03aa
CMSSW: CMSSW_16_1_X_2026-01-28-2300/el8_amd64_gcc13
Additional Tests: GPU,AMD_MI300X,AMD_W7900,NVIDIA_H100,NVIDIA_L40S
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/49860/50987/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed Unit Tests

I found 1 errors in the following unit tests:

---> test RecoTrackerLSTCore-standalone-compilation had ERRORS

Failed RelVals-AMD_W7900

  • 34634.40334634.403_TTbar_14TeV+Run4D121PU_Patatrack_PixelOnlyAlpaka_Validation/step2_TTbar_14TeV+Run4D121PU_Patatrack_PixelOnlyAlpaka_Validation.log
  • 34634.40234634.402_TTbar_14TeV+Run4D121PU_Patatrack_PixelOnlyAlpaka/step2_TTbar_14TeV+Run4D121PU_Patatrack_PixelOnlyAlpaka.log
  • 34634.75134634.751_TTbar_14TeV+Run4D121PU_HLT75e33TimingAlpaka/step2_TTbar_14TeV+Run4D121PU_HLT75e33TimingAlpaka.log
Expand to see more relval errors ...

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 54
  • DQMHistoTests: Total histograms compared: 4261951
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4261925
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 53 files compared)
  • Checked 230 log files, 203 edm output root files, 54 DQM output files
  • TriggerResults: no differences found

@ariostas
Copy link
Contributor

---> test RecoTrackerLSTCore-standalone-compilation had ERRORS

Seems like this comment removed the dependency on #49964, but it works for me if I run the unit test locally.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

Seems like this comment removed the dependency on #49964, but it works for me if I run the unit test locally.

Yes, I wanted to make sure the failures were not due to some strange interplay.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

ignore tests-rejected with ib-failure

@mandrenguyen
Copy link
Contributor

Are the @cms-sw/geometry-l2 and @cms-sw/ml-l2 signatures very relevant or just incidental. If it's the latter, we can consider bypassing them.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

The changes should be purely technical, mostly swapping the order of two arguments to make them consistent with the other SoA constructors.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 29, 2026

The ml changes as well, see the folders PhysicsTools/PyTorchAlpaka and PhysicsTools/PyTorchAlpakaTest.

@mandrenguyen
Copy link
Contributor

merge
overriding ML and geometry signatures which involve quite minor changes

@cmsbuild cmsbuild merged commit 1717c1f into cms-sw:master Jan 29, 2026
14 of 19 checks passed
cmsbuild added a commit that referenced this pull request Jan 30, 2026
[Backport to 16_0_X (#49860)]  Refactor of PortableCollections
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.