-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47306/43631 |
A new Pull Request was created by @leobeltra for master. It involves the following packages:
@cmsbuild, @fwyzard, @makortel can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
type ngt |
-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)
|
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47306/43633 |
REQUIRE(genericCollection.view().metadata().addressOf_candidateDirection() != | ||
pcaCollectionView.metadata().addressOf_candidateDirection()); | ||
} | ||
} |
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I did :(
1bb9b54
to
6f85fb2
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47306/44376
|
please test |
+heterogeneous |
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) |
+1 Size: This PR adds an extra 44KB to repository Comparison SummarySummary:
|
+1 |
PR description:
Added a new constructor for the
SoAView
taking as input columns from differentView
s 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 toPortableHostCollection
taking as input aSoAView
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.