Skip to content

Commit ae042e7

Browse files
committed
GPU TPC: Fix ZS version check
1 parent 254d64e commit ae042e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ int32_t GPUChainTracking::RunTPCClusterizer_prepare(bool restorePointers, const
669669
uint32_t nDigitsFragmentMax[NSECTORS];
670670
mCFContext->zsVersion = -1;
671671
for (uint32_t iSector = 0; iSector < NSECTORS; iSector++) {
672-
if (mIOPtrs.tpcZS->sector[iSector].count[0]) {
672+
if (mIOPtrs.tpcZS->sector[iSector].count[0] && mIOPtrs.tpcZS->sector[iSector].nZSPtr[0][0]) {
673673
const void* rdh = mIOPtrs.tpcZS->sector[iSector].zsPtr[0][0];
674674
if (rdh && o2::raw::RDHUtils::getVersion<o2::header::RAWDataHeaderV6>() > o2::raw::RDHUtils::getVersion(rdh)) {
675675
GPUError("Data has invalid RDH version %d, %d required (sector %d)\n", o2::raw::RDHUtils::getVersion(rdh), o2::raw::RDHUtils::getVersion<o2::header::RAWDataHeader>(), iSector);

0 commit comments

Comments
 (0)