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); /* ========================================================= *