git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2001 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
4ce77434e1
commit
bbc84bfd69
1 changed files with 7 additions and 5 deletions
|
|
@ -63,7 +63,8 @@ public:
|
|||
host_FitnessArray = new Fitness[neighborhoodSize];
|
||||
cudaMalloc((void**) &device_FitnessArray, neighborhoodSize
|
||||
* sizeof(Fitness));
|
||||
kernel_Dim=neighborhoodSize/BLOCK_SIZE+((neighborhoodSize%BLOCK_SIZE==0)?0:1);
|
||||
kernel_Dim = neighborhoodSize / BLOCK_SIZE + ((neighborhoodSize
|
||||
% BLOCK_SIZE == 0) ? 0 : 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -87,15 +88,16 @@ public:
|
|||
|
||||
_neighbor.fitness(host_FitnessArray[_neighbor.index()]);
|
||||
/*std::cout << _sol.fitness() << " -host_FitnessArray["
|
||||
<< _neighbor.index() << "]= "
|
||||
<< host_FitnessArray[_neighbor.index()] << std::endl;*/
|
||||
<< _neighbor.index() << "]= "
|
||||
<< host_FitnessArray[_neighbor.index()] << std::endl;*/
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Compute fitness for all solution neighbors in device
|
||||
* @param
|
||||
* _sol the solution which generate the neighborhood
|
||||
* @param _sol the solution which generate the neighborhood
|
||||
* @param _mapping the neighborhood mapping
|
||||
* @param _Kswap the number of swap
|
||||
*/
|
||||
virtual void neighborhoodEval(EOT & _sol, unsigned * _mapping,
|
||||
unsigned _Kswap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue