File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,8 +90,12 @@ extern __host__
9090std::ostream& operator << (std::ostream& os, const cudaParticle& p);
9191
9292// ! Functor for extracting level info from cudaParticle structures
93+ #if CUDART_VERSION < 12040
9394struct cuPartToLevel :
9495 public thrust::unary_function<cudaParticle, unsigned int >
96+ #else
97+ struct cuPartToLevel
98+ #endif
9599{
96100 int _t;
97101
@@ -106,8 +110,12 @@ struct cuPartToLevel :
106110};
107111
108112// ! Functor for extracting change level info from cudaParticle structures
113+ #if CUDART_VERSION < 12040
109114struct cuPartToChange :
110115 public thrust::unary_function<cudaParticle, thrust::pair<int , int >>
116+ #else
117+ struct cuPartToChange
118+ #endif
111119{
112120 __host__ __device__
113121 thrust::pair<int , int > operator ()(const cudaParticle& p) const
You can’t perform that action at this time.
0 commit comments