From 68f978d46926d577377fb9702fe822ec24859737 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 12 Jan 2012 10:30:22 +0000 Subject: [PATCH] clear and update srcs with # change git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2639 331e1502-861f-0410-8da2-ba01fb791d7f --- .../tutorial/Kswap-OneMax/CMakeLists.txt | 4 ++++ .../tutorial/Kswap-OneMax/testKswapHCByCpy.cu | 12 ++++++------ .../tutorial/Kswap-OneMax/testKswapHCByModif.cu | 12 ++++++------ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/CMakeLists.txt b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/CMakeLists.txt index 0884e0ace..e4e89b44c 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/CMakeLists.txt +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/CMakeLists.txt @@ -33,6 +33,10 @@ LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${CUDA_DIR}/lib ) CUDA_ADD_EXECUTABLE(GPUtestKswapHCByModif testKswapHCByModif.cu) CUDA_ADD_EXECUTABLE(GPUtestKswapHCByCpy testKswapHCByCpy.cu) +###################################################################################### +### 4) Link the librairies for your target(s) +###################################################################################### + TARGET_LINK_LIBRARIES(GPUtestKswapHCByModif eoutils ga eo) TARGET_LINK_LIBRARIES(GPUtestKswapHCByCpy eoutils ga eo) diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByCpy.cu b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByCpy.cu index 72affd32b..0ddcfef79 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByCpy.cu +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByCpy.cu @@ -42,10 +42,10 @@ using namespace std; #include #include // OneMax full eval function -#include +#include // OneMax incremental eval function #include -#include +#include // One Max solution #include // One Max neighbor @@ -53,7 +53,7 @@ using namespace std; //To compute execution time #include //Utils to compute size Mapping of x-change position -#include +#include // Use an ordered neighborhood without mapping, with local copy of solution #include // The Solution and neighbor comparator @@ -129,7 +129,7 @@ void main_function(int argc, char **argv) * * ========================================================= */ - EvalOneMax eval; + moGPUEvalOneMax eval; /* ========================================================= * @@ -138,8 +138,8 @@ void main_function(int argc, char **argv) * ========================================================= */ unsigned long int sizeMap=sizeMapping(SIZE,NB_POS); - OneMaxIncrEval incr_eval; - moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); + moGPUOneMaxIncrEval incr_eval; + moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); /* ========================================================= * diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByModif.cu b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByModif.cu index 4a00f7c92..7e4bd7f48 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByModif.cu +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/Kswap-OneMax/testKswapHCByModif.cu @@ -42,10 +42,10 @@ using namespace std; #include #include // OneMax full eval function -#include +#include // OneMax incremental eval function #include -#include +#include // One Max solution #include // One Max neighbor @@ -53,7 +53,7 @@ using namespace std; //To compute execution time #include //Utils to compute size Mapping of x-change position -#include +#include // One Max ordered neighborhood #include // The Solution and neighbor comparator @@ -139,7 +139,7 @@ void main_function(int argc, char **argv) * * ========================================================= */ - EvalOneMax eval; + moGPUEvalOneMax eval; /* ========================================================= * @@ -148,8 +148,8 @@ void main_function(int argc, char **argv) * ========================================================= */ unsigned long int sizeMap=sizeMapping(SIZE,NB_POS); - OneMaxIncrEval incr_eval; - moGPUMappingEvalByModif > cueval(sizeMap,incr_eval); + moGPUOneMaxIncrEval incr_eval; + moGPUMappingEvalByModif > cueval(sizeMap,incr_eval); /* ========================================================= *