Skip to content

Commit 7023fae

Browse files
mconcasdavidrohr
authored andcommitted
HIP: fix uninitialised array
1 parent 6c95c2d commit 7023fae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Detectors/ITSMFT/ITS/tracking/GPU/cuda/VertexerTraitsGPU.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ void VertexerTraitsGPU::computeTrackletMatching()
478478

479479
size_t bufferSize = mTimeFrameGPU->getConfig().tmpCUBBufferSize;
480480

481+
// Reset used tracklets
482+
checkGPUError(cudaMemset(mTimeFrameGPU->getDeviceUsedTracklets(rofId), false, sizeof(unsigned char) * mTimeFrameGPU->getConfig().maxTrackletsPerCluster * mTimeFrameGPU->getNClustersLayer(rofId, 1)), __FILE__, __LINE__);
483+
481484
gpu::trackletSelectionKernel<true><<<blocksGrid, threadsPerBlock>>>(
482485
mTimeFrameGPU->getDeviceClustersOnLayer(rofId, 0),
483486
mTimeFrameGPU->getDeviceClustersOnLayer(rofId, 1),

0 commit comments

Comments
 (0)