Patch from Karima.Boufaras@inria.fr: compilation wth CUDACC
This commit is contained in:
parent
23dc5dfed8
commit
be19562147
3 changed files with 56 additions and 19 deletions
|
|
@ -41,7 +41,11 @@ template < class F > class PO:public EO < F >
|
|||
|
||||
public:
|
||||
|
||||
typedef typename PO < F >::Fitness Fitness;
|
||||
#if defined(__CUDACC__)
|
||||
typedef typename EO < F >::Fitness Fitness;
|
||||
#else
|
||||
typedef typename PO<F>::Fitness Fitness;
|
||||
#endif
|
||||
|
||||
/** Default constructor.
|
||||
Fitness must have a ctor which takes 0 as a value. Best fitness mush also have the same constructor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue