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

Small fix in getGlobalBin #75

Merged
merged 5 commits into from
Jan 13, 2025
Merged

Conversation

sbaldu
Copy link
Collaborator

@sbaldu sbaldu commented Jan 10, 2025

No description provided.

for (int i{1}; i != Ndim; ++i) {
globalBin += n_tiles_per_dim * getBin(acc, coords[i], i);
int globalBin = 0;
for (int dim = 0; dim != Ndim - 1; ++dim) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.1 rule Note

MISRA 12.1 rule
}
globalBin += getBin(acc, coords[Ndim - 1], Ndim - 1);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
uint32_t globalBin{Bins[0]};
for (int i{1}; i != Ndim; ++i) {
globalBin += n_tiles_per_dim * Bins[i];
const TAcc& acc, const VecArray<uint32_t, Ndim>& Bins) const {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
globalBin += n_tiles_per_dim * Bins[i];
const TAcc& acc, const VecArray<uint32_t, Ndim>& Bins) const {
uint32_t globalBin = 0;
for (int dim = 0; dim != Ndim - 1; ++dim) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.1 rule Note

MISRA 12.1 rule
@sbaldu sbaldu merged commit 3979d95 into cms-patatrack:main Jan 13, 2025
21 of 23 checks passed
@sbaldu sbaldu deleted the fix-getglobalbin branch January 13, 2025 10:51
sbaldu added a commit to sbaldu/CLUEstering that referenced this pull request Jan 14, 2025
* Small fix in getGlobalBin

* Update version

* Formatting

Fix after merge
sbaldu added a commit that referenced this pull request Jan 14, 2025
* Rework points as SoA

Update backend code

Update binding modules

Update python API

Add tests for host-side point SoA

Update run_clue for CUDA and HIP

Update benchmarking scripts

Move test folder

Fix device memory access in memcpy

* Feature clusterer import method (#76)

* Add `import_clusterer` method

* Add test for new clusterer import

* Add docstring

* Fix "if main" of test file

* Addition to gitignore

* Small fix in getGlobalBin (#75)

* Small fix in getGlobalBin

* Update version

* Formatting

Fix after merge

* Separate alpaka input and result buffers

Fix partial dimensional clustering

Update package version
sbaldu added a commit to sbaldu/CLUEstering that referenced this pull request Jan 15, 2025
* Small fix in getGlobalBin

* Update version

* Formatting
sbaldu added a commit to sbaldu/CLUEstering that referenced this pull request Jan 15, 2025
* Rework points as SoA

Update backend code

Update binding modules

Update python API

Add tests for host-side point SoA

Update run_clue for CUDA and HIP

Update benchmarking scripts

Move test folder

Fix device memory access in memcpy

* Feature clusterer import method (cms-patatrack#76)

* Add `import_clusterer` method

* Add test for new clusterer import

* Add docstring

* Fix "if main" of test file

* Addition to gitignore

* Small fix in getGlobalBin (cms-patatrack#75)

* Small fix in getGlobalBin

* Update version

* Formatting

Fix after merge

* Separate alpaka input and result buffers

Fix partial dimensional clustering

Update package version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant