X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Fcore%2FmainCore.cpp;fp=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Fcore%2FmainCore.cpp;h=7769a536f036c22508fe93df936baf5ae56af21c;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp new file mode 100755 index 0000000..7769a53 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp @@ -0,0 +1,63 @@ +#include +#include +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool usePI(void); +extern bool useHello(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void) + { + bool isOk = true; + Chronos chrono; + chrono.start(); + + isOk &= useHello(); + isOk &= usePI(); + + cout << "\n-------------------------------------------------" << endl; + cout << "End Main : isOk = " << isOk << endl; + + chrono.stop(); + chrono.print("\nTime Total : "); + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +