Skip to content

Commit 30efe2e

Browse files
committed
GPUCommonAlgorithm: Cleanup preprocessor defines
1 parent 15df642 commit 30efe2e

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
@@ -446,4 +446,8 @@ GPUdi() T warp_broadcast(T v, int32_t i)
446446

447447
#endif
448448

449+
#ifdef GPUCA_ALGORITHM_STD
450+
#undef GPUCA_ALGORITHM_STD
451+
#endif
452+
449453
#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)