Skip to content

Commit 40145cb

Browse files
committed
GPU TPC Merging: Fix alternateBorderSort=0 with GPU in per-kernel mode
1 parent eb0c18f commit 40145cb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

GPU/GPUTracking/Global/GPUChainTrackingMerger.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ void GPUChainTracking::RunTPCTrackingMerger_MergeBorderTracks(uint8_t mergeMode,
6464
RecordMarker(&mEvents->sector[j], j + 1);
6565
}
6666
StreamWaitForEvents(0, &mEvents->sector[0], ne);
67+
} else if (doGPU && !GetProcessingSettings().rtc.enable) {
68+
GPUFatal("GPU RTC requires alternateBorderSort!");
6769
} else {
6870
for (uint32_t i = 0; i < n; i++) {
6971
runKernel<GPUTPCGMMergerMergeBorders, 0>(GetGridAuto(0, deviceType), i, mergeMode);

GPU/GPUTracking/Merger/GPUTPCGMMerger.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ GPUd() void GPUTPCGMMerger::MergeBorderTracks<0>(int32_t nBlocks, int32_t nThrea
818818
template <>
819819
GPUd() void GPUTPCGMMerger::MergeBorderTracks<1>(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread, int32_t iSector1, const GPUTPCGMBorderTrack* B1, int32_t N1, int32_t iSector2, const GPUTPCGMBorderTrack* B2, int32_t N2, uint8_t mergeMode)
820820
{
821-
#if !defined(GPUCA_GPUCODE_COMPILEKERNELS)
821+
#if !defined(GPUCA_GPUCODE_GENRTC)
822822
GPUTPCGMBorderRange* range1 = mBorderRange[iSector1];
823823
GPUTPCGMBorderRange* range2 = mBorderRange[iSector2] + *GetConstantMem()->tpcTrackers[iSector2].NTracks();
824824

@@ -830,7 +830,7 @@ GPUd() void GPUTPCGMMerger::MergeBorderTracks<1>(int32_t nBlocks, int32_t nThrea
830830
}
831831
}
832832
#else
833-
printf("This sorting variant is disabled for RTC");
833+
printf("This sorting variant is disabled for RTC\n");
834834
#endif
835835
}
836836

0 commit comments

Comments
 (0)