Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Detectors/ITSMFT/ITS/tracking/GPU/cuda/TrackingKernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ struct equal_tracklets {
};

template <typename T1, typename T2>
struct pair_to_first : public thrust::unary_function<gpuPair<T1, T2>, T1> {
struct pair_to_first {
GPUhd() int operator()(const gpuPair<T1, T2>& a) const
{
return a.first;
}
};

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

template <typename T>
struct trackletSortEmptyFunctor : public thrust::binary_function<T, T, bool> {
struct trackletSortEmptyFunctor {
GPUhd() bool operator()(const T& lhs, const T& rhs) const
{
return lhs.firstClusterIndex > rhs.firstClusterIndex;
}
};

template <typename T>
struct trackletSortIndexFunctor : public thrust::binary_function<T, T, bool> {
struct trackletSortIndexFunctor {
GPUhd() bool operator()(const T& lhs, const T& rhs) const
{
return lhs.firstClusterIndex < rhs.firstClusterIndex || (lhs.firstClusterIndex == rhs.firstClusterIndex && lhs.secondClusterIndex < rhs.secondClusterIndex);
Expand Down