From 31e1c7935eafdf92109772b85b1d6a51c7027c6a Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Sat, 21 Nov 2026 20:29:39 +0100 Subject: [PATCH] GPU: disable delayed output when sorting TPC clusters on the host With tpcSortClusters set, the clusterizer copies the clusters to the host and SortClusters() sorts them there and uploads them back over the GPU clusters. With delayedOutput, that GPU->host copy was only queued in mOutputQueue, so the host sorted and uploaded an unfilled buffer and the tracking found no tracks. Disable delayedOutput for tpcSortClusters, as already done for deterministicGPUReconstruction and debugLevel > 3. --- GPU/GPUTracking/Base/GPUReconstruction.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GPUTracking/Base/GPUReconstruction.cxx b/GPU/GPUTracking/Base/GPUReconstruction.cxx index d644235eead76..fbb8cfb5ff77e 100644 --- a/GPU/GPUTracking/Base/GPUReconstruction.cxx +++ b/GPU/GPUTracking/Base/GPUReconstruction.cxx @@ -301,7 +301,7 @@ int32_t GPUReconstruction::InitPhaseBeforeDevice() if (!GetProcessingSettings().createO2Output || !IsGPU()) { mProcessingSettings->clearO2OutputFromGPU = false; } - if (GetProcessingSettings().debugLevel > 3 || !IsGPU() || GetProcessingSettings().deterministicGPUReconstruction) { + if (GetProcessingSettings().debugLevel > 3 || !IsGPU() || GetProcessingSettings().deterministicGPUReconstruction || GetProcessingSettings().tpcSortClusters) { mProcessingSettings->delayedOutput = false; } if (!GetProcessingSettings().rtc.enable) {