Skip to content

Commit 7b0be07

Browse files
GBTS node creation handling of unconfigured volumes (#1284)
This is a bugfix for the GBTS node creation so the spacepoints from unconfigured volumes are fully skipped. Co-authored-by: Stephen Nicholas Swatman <stephen.nicholas.swatman@cern.ch>
1 parent f47082c commit 7b0be07

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

device/cuda/src/gbts_seeding/kernels/GbtsNodesMakingKernels.cuh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ __global__ void count_sp_by_layer(
4949

5050
// some volume_ids map one to one with layer others need searching
5151
if (geo_id.volume() > volumeMapSize) {
52+
reducedSP[spIdx].w = -CHAR_MAX - 1;
5253
continue; // unconfigured volume
5354
}
5455
short begin_or_bin = volumeToLayerMap[geo_id.volume()];
5556
if (begin_or_bin == SHRT_MAX) {
57+
reducedSP[spIdx].w = -CHAR_MAX - 1;
5658
continue; // unconfigured volume
5759
}
5860
unsigned int layerIdx;

0 commit comments

Comments
 (0)