diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/CMakeLists.txt b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/CMakeLists.txt index a033218cb..04d0f461e 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/CMakeLists.txt +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/CMakeLists.txt @@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES( ### 2) Specify where CMake can find the libraries ###################################################################################### -LINK_DIRECTORIES(${PARADISEO_EO_BIN_DIR}/lib ${CUDA_DIR}/lib ) +LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${CUDA_DIR}/lib ) ###################################################################################### @@ -32,6 +32,10 @@ LINK_DIRECTORIES(${PARADISEO_EO_BIN_DIR}/lib ${CUDA_DIR}/lib ) CUDA_ADD_EXECUTABLE(GPUtestSimpleTS_PPP testSimpleTS_PPP.cu) +###################################################################################### +### 4) Link the librairies for your target(s) +###################################################################################### + TARGET_LINK_LIBRARIES(GPUtestSimpleTS_PPP eoutils ga eo) diff --git a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/testSimpleTS_PPP.cu b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/testSimpleTS_PPP.cu index dd676f440..3f89677b7 100644 --- a/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/testSimpleTS_PPP.cu +++ b/branches/ParadisEO-GPU/paradiseo-gpu/tutorial/PPP_GPU/testSimpleTS_PPP.cu @@ -45,20 +45,20 @@ __device__ int * dev_h; #include #include // Fitness function -#include +#include // GPU Fitness function #include -#include +#include //Specific data to PPP problem -#include +#include // PPP solution -#include +#include // PPP neighbor -#include +#include //To compute execution time #include //Utils to compute size Mapping of x-change position -#include +#include //x-Change neighborhood #include // The Solution and neighbor comparator @@ -75,8 +75,8 @@ __device__ int * dev_h; #include #include -typedef PPPSolution solution; -typedef PPPNeighbor Neighbor; +typedef moGPUPPPSolution solution; +typedef moGPUPPPNeighbor Neighbor; typedef moGPUXChangeNeighborhoodByModif Neighborhood; @@ -139,7 +139,7 @@ int main(int argc, char **argv) * * ========================================================= */ - PPPData _data; + moGPUPPPData _data; _data.load(); /* ========================================================= @@ -158,10 +158,10 @@ int main(int argc, char **argv) * * ========================================================= */ - PPPEval eval(_data); + moGPUPPPEval eval(_data); unsigned long int sizeMap=sizeMapping(Nd,NB_POS); - PPPIncrEval incr_eval; - moGPUMappingEvalByModif > cueval(sizeMap,incr_eval); + moGPUPPPIncrEval incr_eval; + moGPUMappingEvalByModif > cueval(sizeMap,incr_eval); /* ========================================================= *