depreciate CUDACC

This commit is contained in:
Johann Dreo 2020-08-26 12:00:29 +02:00
commit fca55505d8

View file

@ -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)