depreciate CUDACC
This commit is contained in:
parent
e2bf3ec3c0
commit
fca55505d8
1 changed files with 12 additions and 7 deletions
|
|
@ -103,13 +103,18 @@ and minimizing fitness compares with greater. This because we want ordinary
|
||||||
fitness values (doubles) to be equivalent with Maximizing Fitness, and
|
fitness values (doubles) to be equivalent with Maximizing Fitness, and
|
||||||
comparing with less is the default behaviour.
|
comparing with less is the default behaviour.
|
||||||
*/
|
*/
|
||||||
#if defined(__CUDACC__)
|
// CUDACC is deprecated
|
||||||
typedef eoScalarFitness<float, std::less<float> > eoMaximizingFitness;
|
// #if defined(__CUDACC__)
|
||||||
typedef eoScalarFitness<float, std::greater<float> > eoMinimizingFitness;
|
// typedef eoScalarFitness<float, std::less<float> > eoMaximizingFitness;
|
||||||
#else
|
// typedef eoScalarFitness<float, std::greater<float> > eoMinimizingFitness;
|
||||||
typedef eoScalarFitness<double, std::less<double> > eoMaximizingFitness;
|
// #else
|
||||||
typedef eoScalarFitness<double, std::greater<double> > eoMinimizingFitness;
|
// typedef eoScalarFitness<double, std::less<double> > eoMaximizingFitness;
|
||||||
#endif
|
// typedef eoScalarFitness<double, std::greater<double> > eoMinimizingFitness;
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
using eoMaximizingFitness = eoScalarFitness<double, std::less<double> >;
|
||||||
|
using eoMinimizingFitness = eoScalarFitness<double, std::greater<double> >;
|
||||||
|
|
||||||
|
|
||||||
template <class F, class Cmp>
|
template <class F, class Cmp>
|
||||||
std::ostream& operator<<(std::ostream& os, const eoScalarFitness<F, Cmp>& f)
|
std::ostream& operator<<(std::ostream& os, const eoScalarFitness<F, Cmp>& f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue