diff --git a/RecoTracker/LSTCore/src/alpaka/Event.dev.cc b/RecoTracker/LSTCore/src/alpaka/Event.dev.cc index aecebd3b0d579..403b518d9a3c9 100644 --- a/RecoTracker/LSTCore/src/alpaka/Event.dev.cc +++ b/RecoTracker/LSTCore/src/alpaka/Event.dev.cc @@ -222,7 +222,8 @@ void Event::addPixelSegmentToEvent(std::vector const& hitIndices0, std::array const segments_sizes{{static_cast(nTotalSegments_), static_cast(nLowerModules_+1), static_cast(n_max_pixel_segments_per_module)}}; segmentsDev_.emplace(segments_sizes, queue_); - alpaka::memset(queue_, segmentsDev_->buffer(), 0u); // TODO: We don't need to initialize the entire buffer + auto buf = segmentsDev_->buffer(); + alpaka::memset(queue_, buf, 0u); // TODO: We don't need to initialize the entire buffer } auto hitIndices0_dev = allocBufWrapper(devAcc_, size, queue_); @@ -358,7 +359,8 @@ void Event::createSegmentsWithModuleMap() { if (!segmentsDev_) { std::array const segments_sizes{{static_cast(nTotalSegments_), static_cast(nLowerModules_+1), static_cast(n_max_pixel_segments_per_module)}}; segmentsDev_.emplace(segments_sizes, queue_); - alpaka::memset(queue_, segmentsDev_->buffer(), 0u); // TODO: We don't need to initialize the entire buffer + auto buf = segmentsDev_->buffer(); + alpaka::memset(queue_, buf, 0u); // TODO: We don't need to initialize the entire buffer } Vec3D const threadsPerBlockCreateSeg{1, 1, 64};