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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
/** TRACCC library, part of the ACTS project (R&D line)
*
* (c) 2023 CERN for the benefit of the ACTS project
* (c) 2023-2024 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/

#pragma once

// System include(s).
#include <cassert>

namespace traccc::device {

TRACCC_DEVICE inline void make_barcode_sequence(
Expand All @@ -16,8 +19,9 @@ TRACCC_DEVICE inline void make_barcode_sequence(

measurement_collection_types::const_device uniques(uniques_view);
vecmem::device_vector barcodes(barcodes_view);
assert(uniques.size() >= barcodes.size());

if (globalIndex >= uniques.size()) {
if (globalIndex >= barcodes.size()) {
return;
}

Expand Down
Loading