From 2f18c31aacc55056b6342c83595872abcff21a8f Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 12 Jan 2012 10:32:24 +0000 Subject: [PATCH] clear and update srcs with # change git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2643 331e1502-861f-0410-8da2-ba01fb791d7f --- .../tutorial/QAP_GPU/CMakeLists.txt | 4 ++++ .../tutorial/QAP_GPU/testSimpleHC.cu | 16 ++++++++-------- .../tutorial/QAP_GPU/testSimpleTS.cu | 16 ++++++++-------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/CMakeLists.txt b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/CMakeLists.txt index 93fa4ed25..bd01c9d62 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/CMakeLists.txt +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/CMakeLists.txt @@ -33,5 +33,9 @@ LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${CUDA_DIR}/lib ) CUDA_ADD_EXECUTABLE(GPU_testSimpleHC testSimpleHC.cu) CUDA_ADD_EXECUTABLE(GPU_testSimpleTS testSimpleTS.cu) +###################################################################################### +### 4) Link the librairies for your target(s) +###################################################################################### + TARGET_LINK_LIBRARIES(GPU_testSimpleHC eoutils ga eo) TARGET_LINK_LIBRARIES(GPU_testSimpleTS eoutils ga eo) diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleHC.cu b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleHC.cu index 4fbfc6816..80a9b8539 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleHC.cu +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleHC.cu @@ -48,12 +48,12 @@ __device__ int * dev_b; #include #include // Fitness function -#include +#include // Cuda Fitness function #include -#include +#include //Specific data to QAP problem -#include +#include // QAP solution #include // Swap neighbor @@ -61,7 +61,7 @@ __device__ int * dev_b; //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 @@ -136,7 +136,7 @@ int main(int argc, char **argv) * * ========================================================= */ - QAPData _data(argv[1]); + moGPUQAPData _data(argv[1]); /* ========================================================= * @@ -153,10 +153,10 @@ int main(int argc, char **argv) * Evaluation of a solution neighbor's * * ========================================================= */ - QAPEval eval(_data); + moGPUQAPEval eval(_data); unsigned long int sizeMap=sizeMapping(_data.sizeData,NB_POS); - QAPIncrEval incr_eval; - moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); + moGPUQAPIncrEval incr_eval; + moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); /* ========================================================= * diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleTS.cu b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleTS.cu index 016122c61..f1b54c60f 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleTS.cu +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/QAP_GPU/testSimpleTS.cu @@ -47,12 +47,12 @@ __device__ int * dev_b; #include #include // Fitness function -#include +#include // Cuda Fitness function #include -#include +#include //Specific data to QAP problem -#include +#include // QAP solution #include // Swap neighbor @@ -60,7 +60,7 @@ __device__ int * dev_b; //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 @@ -142,7 +142,7 @@ int main(int argc, char **argv) * * ========================================================= */ - QAPData _data(argv[1]); + moGPUQAPData _data(argv[1]); /* ========================================================= * @@ -160,10 +160,10 @@ int main(int argc, char **argv) * * ========================================================= */ - QAPEval eval(_data); + moGPUQAPEval eval(_data); unsigned long int sizeMap=sizeMapping(_data.sizeData,NB_POS); - QAPIncrEval incr_eval; - moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); + moGPUQAPIncrEval incr_eval; + moGPUMappingEvalByCpy > cueval(sizeMap,incr_eval); /* ========================================================= *