@@ -28,19 +28,20 @@ namespace o2::gpu
2828{
2929class GPUCommonAlgorithm
3030{
31+
3132 public:
3233 template <class T >
33- GPUd () static void sort (T* begin, T* end);
34+ GPUd () static void sort (T begin, T end);
3435 template <class T >
3536 GPUd () static void sortInBlock (T* begin, T* end);
3637 template <class T >
37- GPUd () static void sortDeviceDynamic (T* begin, T* end);
38+ GPUd () static void sortDeviceDynamic (T begin, T end);
3839 template <class T , class S >
39- GPUd () static void sort (T* begin, T* end, const S& comp);
40+ GPUd () static void sort (T begin, T end, const S& comp);
4041 template <class T , class S >
4142 GPUd () static void sortInBlock (T* begin, T* end, const S& comp);
4243 template <class T , class S >
43- GPUd () static void sortDeviceDynamic (T* begin, T* end, const S& comp);
44+ GPUd () static void sortDeviceDynamic (T begin, T end, const S& comp);
4445#ifndef __OPENCL__
4546 template <class T , class S >
4647 GPUh () static void sortOnDevice(auto * rec, int32_t stream, T* begin, size_t N, const S& comp);
@@ -224,7 +225,7 @@ namespace o2::gpu
224225{
225226
226227template <class T >
227- GPUdi () void GPUCommonAlgorithm::sortDeviceDynamic (T* begin, T* end)
228+ GPUdi () void GPUCommonAlgorithm::sortDeviceDynamic (T begin, T end)
228229{
229230#ifndef GPUCA_GPUCODE
230231 GPUCommonAlgorithm::sort (begin, end);
@@ -234,7 +235,7 @@ GPUdi() void GPUCommonAlgorithm::sortDeviceDynamic(T* begin, T* end)
234235}
235236
236237template <class T , class S >
237- GPUdi () void GPUCommonAlgorithm::sortDeviceDynamic (T* begin, T* end, const S& comp)
238+ GPUdi () void GPUCommonAlgorithm::sortDeviceDynamic (T begin, T end, const S& comp)
238239{
239240 GPUCommonAlgorithm::sort (begin, end, comp);
240241}
@@ -248,7 +249,7 @@ namespace o2::gpu
248249{
249250
250251template <class T >
251- GPUdi () void GPUCommonAlgorithm::sort (T* begin, T* end)
252+ GPUdi () void GPUCommonAlgorithm::sort (T begin, T end)
252253{
253254#ifdef GPUCA_ALGORITHM_STD
254255 std::sort (begin, end);
@@ -258,7 +259,7 @@ GPUdi() void GPUCommonAlgorithm::sort(T* begin, T* end)
258259}
259260
260261template <class T , class S >
261- GPUdi () void GPUCommonAlgorithm::sort (T* begin, T* end, const S& comp)
262+ GPUdi () void GPUCommonAlgorithm::sort (T begin, T end, const S& comp)
262263{
263264#ifdef GPUCA_ALGORITHM_STD
264265 std::sort (begin, end, comp);
0 commit comments