Skip to content

Commit

Permalink
TPC: Fix cluster sharing map allocating 4x too many bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Aug 14, 2024
1 parent d921a17 commit 6ff2d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Detectors/TPC/workflow/src/ClusterSharingMapSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ void ClusterSharingMapSpec::run(ProcessingContext& pc)

std::shared_ptr<o2::gpu::GPUParam> param = o2::gpu::GPUO2InterfaceUtils::getFullParamShared(0.f, nHBPerTF);
auto& bufVecSh = pc.outputs().make<std::vector<unsigned char>>(Output{o2::header::gDataOriginTPC, "CLSHAREDMAP", 0}, clustersTPC->clusterIndex.nClustersTotal);
size_t occupancyMapSize = o2::gpu::GPUO2InterfaceRefit::fillOccupancyMapGetSize(nHBPerTF, param.get());
auto& bufVecOcc = pc.outputs().make<std::vector<unsigned int>>(Output{o2::header::gDataOriginTPC, "TPCOCCUPANCYMAP", 0}, occupancyMapSize);
size_t occupancyMapSizeBytes = o2::gpu::GPUO2InterfaceRefit::fillOccupancyMapGetSize(nHBPerTF, param.get());
auto& bufVecOcc = pc.outputs().make<std::vector<unsigned int>>(Output{o2::header::gDataOriginTPC, "TPCOCCUPANCYMAP", 0}, occupancyMapSizeBytes / sizeof(int));
o2::gpu::GPUO2InterfaceRefit::fillSharedClustersAndOccupancyMap(&clustersTPC->clusterIndex, tracksTPC, tracksTPCClRefs.data(), bufVecSh.data(), bufVecOcc.data(), nHBPerTF, param.get());

timer.Stop();
Expand Down

0 comments on commit 6ff2d76

Please sign in to comment.