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

traccc::device::make_barcode_sequence Fix, main branch (2024.02.14.) #518

Merged

Conversation

krasznaa
Copy link
Member

Fixed the logic in the device function, after finding a bug in it during the debugging of #513.

While we put the "unique measurements" at the beginning of the uniques vector/view, the size of the vector/view is not updated. 🤔 It is allowed to be larger than the size of the barcodes vector. (Which will be exactly the size of the number of unique measurements.)

Later on we may want to do this in a smarter way, making the measurement buffer update its size properly. But for now this should be good enough. 🤔

@krasznaa krasznaa requested a review from beomki-yeo February 13, 2024 11:08
@krasznaa krasznaa added bug Something isn't working cuda Changes related to CUDA labels Feb 13, 2024
Copy link
Contributor

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

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

Makes sense

The size of the two views may be different. (Though their
capacities should be the same at all times in the current
implementation.) It is the "input view" that we need to
respect the size of. The "output view" would be asserted
to be big enough.
@krasznaa krasznaa force-pushed the BarcodeSequenceFix-main-20240213 branch from f3f8bdd to c3d3921 Compare February 13, 2024 12:18
@krasznaa krasznaa enabled auto-merge February 13, 2024 13:01
@krasznaa krasznaa merged commit 71d94e0 into acts-project:main Feb 13, 2024
18 checks passed
@krasznaa krasznaa deleted the BarcodeSequenceFix-main-20240213 branch February 13, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda Changes related to CUDA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants