From 6d4380a744d343b0e4cf20be0832be98c4206d29 Mon Sep 17 00:00:00 2001 From: boufaras Date: Wed, 20 Jul 2011 09:14:15 +0000 Subject: [PATCH] Parallel incremental evaluation for QAP git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2338 331e1502-861f-0410-8da2-ba01fb791d7f --- .../src/problems/eval/QAPIncrEval.h | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/branches/ParadisEO-GPU/src/problems/eval/QAPIncrEval.h b/branches/ParadisEO-GPU/src/problems/eval/QAPIncrEval.h index 95afcc500..48637a668 100644 --- a/branches/ParadisEO-GPU/src/problems/eval/QAPIncrEval.h +++ b/branches/ParadisEO-GPU/src/problems/eval/QAPIncrEval.h @@ -38,7 +38,7 @@ #include /** - * Incremental Evaluation of QAP + * Parallel Incremental Evaluation of QAP */ template @@ -66,7 +66,7 @@ public: /** * Incremental evaluation of the QAP solution,function inline can be called from host or device - * @param _bitVector the solution to evaluate + * @param _sol the solution to evaluate * @param _fitness the fitness of the current solution * @param _index an array that contains a set of indexes corresponding to the current thread identifier neighbor the last element of this array contains neighborhood size */ @@ -74,21 +74,20 @@ public: inline __host__ __device__ Fitness operator() (T * _sol,Fitness _fitness, unsigned int *_index) { Fitness tmp=_fitness; - //int id = blockIdx.x * blockDim.x + threadIdx.x; + T tmp_sol[1]; /** * dev_a & dev_b are global device variable, data specific to QAP problem (flow & distance matices) * _index[i] the first position of swap * _index[i+1] the second position of swap */ -/* for(unsigned i=0;i