Skip to content

Commit 1143fe6

Browse files
committed
GPUCommonAlgorithm: Cleanup preprocessor defines
1 parent a7d3fff commit 1143fe6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

GPU/Common/GPUCommonAlgorithm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,8 @@ GPUdi() T warp_broadcast(T v, int32_t i)
444444

445445
#endif
446446

447+
#ifdef GPUCA_ALGORITHM_STD
448+
#undef GPUCA_ALGORITHM_STD
449+
#endif
450+
447451
#endif

GPU/Common/GPUCommonAlgorithmThrust.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ GPUdi() void GPUCommonAlgorithm::sort(T* begin, T* end, const S& comp)
5252
}
5353
5454
template <class T>
55-
GPUdi() void GPUCommonAlgorithm::sortInBlock(T* begin, T* end)
55+
GPUdi() void GPUCommonAlgorithm::sortInBlock(T* begin, T* end) // TODO: Try cub::BlockMergeSort
5656
{
5757
if (get_local_id(0) == 0) {
5858
sortDeviceDynamic(begin, end);
@@ -94,4 +94,6 @@ GPUhi() void GPUCommonAlgorithm::sortOnDevice(auto* rec, int32_t stream, T* begi
9494
}
9595
} // namespace o2::gpu
9696

97+
#undef GPUCA_THRUST_NAMESPACE
98+
9799
#endif

0 commit comments

Comments
 (0)