Skip to content

New constructor for the SoAView and aggregate method for Collections #47306

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

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

leobeltra
Copy link

PR description:

Added a new constructor for the SoAView taking as input columns from different Views and putting them in a single object. A run-time check on the column sizes being the same is performed.
Additionally, a new aggregate method has been added to PortableHostCollection taking as input a SoAView and creating a unique memory buffer to save its columns contiguously. This is useful to create a PortableCollection from the VIew built with the newly implemented constructor.
Unit tests for both these features have been added as well.

PR validation:

Unit tests created pass.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 10, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DataFormats/Portable (heterogeneous)
  • DataFormats/SoATemplate (heterogeneous)

@cmsbuild, @fwyzard, @makortel can you please review it and eventually sign? Thanks.
@missirol, @mmusich, @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

@fwyzard
Copy link
Contributor

fwyzard commented Feb 10, 2025

please test

@mmusich
Copy link
Contributor

mmusich commented Feb 10, 2025

type ngt

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47306/43632

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@fwyzard
Copy link
Contributor

fwyzard commented Feb 10, 2025

please test

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2025

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

REQUIRE(genericCollection.view().metadata().addressOf_candidateDirection() !=
pcaCollectionView.metadata().addressOf_candidateDirection());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing newline at the end of file :(


// fill up
for (size_t i = 0; i < elems; i++) {
positionCollectionView[i] = {i * 1.f, i * 2.0f, i * 3.0f};
Copy link
Contributor

Choose a reason for hiding this comment

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

Pedantic: could you use either 1.0f, 2.0f, ... or 1.f, 2.f, ... consistently ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Some strange has happened to this file.
Did you clang-format it ?

Copy link
Author

Choose a reason for hiding this comment

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

Yes I did :(

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47306/44376

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2025

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

@fwyzard
Copy link
Contributor

fwyzard commented Apr 4, 2025

please test

@fwyzard
Copy link
Contributor

fwyzard commented Apr 4, 2025

+heterogeneous

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2025

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 4, 2025

+1

Size: This PR adds an extra 44KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-567cf0/45388/summary.html
COMMIT: 6f85fb2
CMSSW: CMSSW_15_1_X_2025-04-04-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/47306/45388/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit a9d8db3 into cms-sw:master Apr 5, 2025
11 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.

7 participants