X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2FmainCore.cpp;fp=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2FmainCore.cpp;h=ad144a19695f1a0522eb330c007d2484be9abf27;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp new file mode 100755 index 0000000..ad144a1 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp @@ -0,0 +1,58 @@ +#include +#include + + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool useHello(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore() + { + bool isOk = true; + isOk &= useHello(); + + cout << "\nisOK = " << isOk << endl; + cout << "\nEnd : mainCore" << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +