Test & Update for new version
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2678 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
3aaa0bd4e7
commit
f2b13bc8ba
18 changed files with 71 additions and 187 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
<t-moGPUBitVector.cu>
|
||||
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010
|
||||
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2012
|
||||
|
||||
Karima Boufaras, Thé Van LUONG
|
||||
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <GPUType/moGPUBitVector.h>
|
||||
#include <problems/eval/EvalOneMax.h>
|
||||
#include <problems/eval/moGPUEvalOneMax.h>
|
||||
#include <eo>
|
||||
|
||||
typedef moGPUBitVector<eoMaximizingFitness> Solution;
|
||||
|
|
@ -47,7 +47,7 @@ int main() {
|
|||
|
||||
std::cout << "[t-moGPUBitVector] => START" << std::endl;
|
||||
|
||||
EvalOneMax<Solution> eval;
|
||||
moGPUEvalOneMax<Solution> eval;
|
||||
|
||||
//test default constructor
|
||||
Solution _sol;
|
||||
|
|
@ -75,7 +75,7 @@ int main() {
|
|||
assert(sol.fitness()==sum);
|
||||
|
||||
//test size getter
|
||||
assert(_sol.size()==0);
|
||||
assert(_sol.size()==5);
|
||||
assert(sol1.size()==5);
|
||||
|
||||
//test size setter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue