X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2FmainCore.cpp;h=d16b10548bf1173fb89061f9e022760469b774e3;hb=f2c6a4fc79746e2d5c6678699bd2ca93ffc49bcc;hp=ad144a19695f1a0522eb330c007d2484be9abf27;hpb=8d08c12b29c2a14684f35c023ee39e694bb80d25;p=GPU.git diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp index ad144a1..d16b105 100755 --- a/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp +++ b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp @@ -1,44 +1,18 @@ #include #include +using namespace std; +#include "02_ProduitScalaire/ProduitScalaire.h" -using std::cout; -using std::endl; - -/*----------------------------------------------------------------------*\ - |* Declaration *| - \*---------------------------------------------------------------------*/ - -/*--------------------------------------*\ - |* Imported *| - \*-------------------------------------*/ - -extern bool useHello(void); - -/*--------------------------------------*\ - |* Public *| - \*-------------------------------------*/ - -int mainCore(); - -/*--------------------------------------*\ - |* Private *| - \*-------------------------------------*/ - - - -/*----------------------------------------------------------------------*\ - |* Implementation *| - \*---------------------------------------------------------------------*/ - -/*--------------------------------------*\ - |* Public *| - \*-------------------------------------*/ +extern bool useHello(); +extern bool addVectors(); int mainCore() { bool isOk = true; - isOk &= useHello(); + /*isOk &= useHello(); + isOk &= addVectors();*/ + isOk &= produitScalaire(); cout << "\nisOK = " << isOk << endl; cout << "\nEnd : mainCore" << endl; @@ -46,13 +20,3 @@ int mainCore() return isOk ? EXIT_SUCCESS : EXIT_FAILURE; } -/*--------------------------------------*\ - |* Private *| - \*-------------------------------------*/ - - - -/*----------------------------------------------------------------------*\ - |* End *| - \*---------------------------------------------------------------------*/ -