Skip to content

Commit ced3e8a

Browse files
mconcasdavidrohr
authored andcommitted
GPU: Remove thrust deprecated declarations in ITS code
1 parent c0831ad commit ced3e8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Detectors/ITSMFT/ITS/tracking/GPU/cuda/TrackingKernels.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ struct equal_tracklets {
201201
};
202202

203203
template <typename T1, typename T2>
204-
struct pair_to_first : public thrust::unary_function<gpuPair<T1, T2>, T1> {
204+
struct pair_to_first {
205205
GPUhd() int operator()(const gpuPair<T1, T2>& a) const
206206
{
207207
return a.first;
208208
}
209209
};
210210

211211
template <typename T1, typename T2>
212-
struct pair_to_second : public thrust::unary_function<gpuPair<T1, T2>, T2> {
212+
struct pair_to_second {
213213
GPUhd() int operator()(const gpuPair<T1, T2>& a) const
214214
{
215215
return a.second;
@@ -710,15 +710,15 @@ GPUg() void printPointersKernel(std::tuple<Args...> args)
710710
}
711711

712712
template <typename T>
713-
struct trackletSortEmptyFunctor : public thrust::binary_function<T, T, bool> {
713+
struct trackletSortEmptyFunctor {
714714
GPUhd() bool operator()(const T& lhs, const T& rhs) const
715715
{
716716
return lhs.firstClusterIndex > rhs.firstClusterIndex;
717717
}
718718
};
719719

720720
template <typename T>
721-
struct trackletSortIndexFunctor : public thrust::binary_function<T, T, bool> {
721+
struct trackletSortIndexFunctor {
722722
GPUhd() bool operator()(const T& lhs, const T& rhs) const
723723
{
724724
return lhs.firstClusterIndex < rhs.firstClusterIndex || (lhs.firstClusterIndex == rhs.firstClusterIndex && lhs.secondClusterIndex < rhs.secondClusterIndex);

0 commit comments

Comments
 (0)