Skip to content

Commit a8271fa

Browse files
authored
Merge pull request #45743 from mmusich/mm_devel_cmssw45708
initialise `phiBinner` in device-to-host copy of `TrackingRecHitsSoACollection<TrackerTraits>`
2 parents 3cfb1f9 + d1172f7 commit a8271fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

DataFormats/TrackingRecHitSoA/interface/alpaka/TrackingRecHitsSoACollection.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ namespace cms::alpakatools {
4141
assert(deviceData.nHits() == hostData.nHits());
4242
assert(deviceData.offsetBPIX2() == hostData.offsetBPIX2());
4343
#endif
44+
// Update the contents address of the phiBinner histo container after the copy from device happened
45+
alpaka::wait(queue);
46+
typename TrackingRecHitSoA<TrackerTraits>::PhiBinnerView pbv;
47+
pbv.assoc = &(hostData.view().phiBinner());
48+
pbv.offSize = -1;
49+
pbv.offStorage = nullptr;
50+
pbv.contentSize = hostData.nHits();
51+
pbv.contentStorage = hostData.view().phiBinnerStorage();
52+
hostData.view().phiBinner().initStorage(pbv);
53+
4454
return hostData;
4555
}
4656
};

0 commit comments

Comments
 (0)