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];
|
host_FitnessArray = new Fitness[neighborhoodSize];
|
||||||
cudaMalloc((void**) &device_FitnessArray, neighborhoodSize
|
cudaMalloc((void**) &device_FitnessArray, neighborhoodSize
|
||||||
* sizeof(Fitness));
|
* sizeof(Fitness));
|
||||||
kernel_Dim=neighborhoodSize/BLOCK_SIZE+((neighborhoodSize%BLOCK_SIZE==0)?0:1);
|
kernel_Dim = neighborhoodSize / BLOCK_SIZE + ((neighborhoodSize
|
||||||
|
% BLOCK_SIZE == 0) ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -94,8 +95,9 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute fitness for all solution neighbors in device
|
* Compute fitness for all solution neighbors in device
|
||||||
* @param
|
* @param _sol the solution which generate the neighborhood
|
||||||
* _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,
|
virtual void neighborhoodEval(EOT & _sol, unsigned * _mapping,
|
||||||
unsigned _Kswap) {
|
unsigned _Kswap) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue