Skip to content

Commit 75e89f1

Browse files
committed
format
1 parent 7376b5c commit 75e89f1

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -458,20 +458,20 @@ GPUd() void GPUTPCCFHIPTailConnector::Thread<0>(int32_t nBlocks, int32_t nThread
458458
// HIP TAILS: indexing starts at 1, so 0 index indicates no connection
459459
HIPTailDescriptor* tails = GetHIPTails(clusterer, row);
460460

461-
#ifdef GPUCA_DETERMINISTIC_MODE
462-
// Races in tail comparisons and atomic swap can lead to slightly different clusters.
463-
// So need a sequential fallback for deterministic mode
464-
if (iThread > 0) {
465-
return;
461+
#ifdef GPUCA_DETERMINISTIC_MODE
462+
// Races in tail comparisons and atomic swap can lead to slightly different clusters.
463+
// So need a sequential fallback for deterministic mode
464+
if (iThread > 0) {
465+
return;
466+
}
467+
nThreads = 1;
468+
GPUCommonAlgorithm::sortInBlock(tails + 1, tails + nTails + 1, [](auto&& t1, auto&& t2) {
469+
if (t1.pad != t2.pad) {
470+
return t1.pad < t2.pad;
466471
}
467-
nThreads = 1;
468-
GPUCommonAlgorithm::sortInBlock(tails + 1, tails + nTails + 1, [](auto &&t1, auto &&t2) {
469-
if (t1.pad != t2.pad) {
470-
return t1.pad < t2.pad;
471-
}
472-
return t1.tailStart < t2.tailStart;
473-
});
474-
#endif
472+
return t1.tailStart < t2.tailStart;
473+
});
474+
#endif
475475

476476
for (uint32_t iTail = iThread + 1; iTail <= nTails; iTail += nThreads) {
477477
auto* tail = &tails[iTail];

0 commit comments

Comments
 (0)