From d6d8e9618abf6546aa6465d45c7af76b65297194 Mon Sep 17 00:00:00 2001 From: boufaras Date: Tue, 21 Dec 2010 14:38:19 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2028 331e1502-861f-0410-8da2-ba01fb791d7f --- ParadisEO-GPU/src/eval/moCudaEvalFunc.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ParadisEO-GPU/src/eval/moCudaEvalFunc.h b/ParadisEO-GPU/src/eval/moCudaEvalFunc.h index a30ae3bec..cc081ac3b 100644 --- a/ParadisEO-GPU/src/eval/moCudaEvalFunc.h +++ b/ParadisEO-GPU/src/eval/moCudaEvalFunc.h @@ -36,7 +36,7 @@ #define __moCudaEvalFunc_H /** - * Abstract class for Incremental evaluation of neighbor + * Abstract class for CUDA evaluation of neighbor */ template @@ -49,6 +49,7 @@ public: */ typedef typename Neighbor::EOT EOT; + typedef typename EOT::ElemType T; typedef typename EOT::Fitness Fitness; /** @@ -69,10 +70,11 @@ public: *Virtual functor to compute fitness of a solution neighbor *@param _solution the solution which generate the neighborhood *@param _fitness the current solution fitness - *@param _id the index neighbor + *@param _index the index neighbor */ - virtual inline __host__ __device__ Fitness operator() (EOT & _solution,Fitness _fitness, unsigned _id)=0; + virtual inline __host__ __device__ Fitness operator() (EOT & _solution,Fitness _fitness, unsigned int * _index){}; + }; #endif