X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FTuto_Boost%2Fsrc%2Fmain.cpp;fp=WCudaMSE%2FTuto_Boost%2Fsrc%2Fmain.cpp;h=642b01cb625a3945deeb19fc6c6c1f2f11dccda4;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Boost/src/main.cpp b/WCudaMSE/Tuto_Boost/src/main.cpp new file mode 100755 index 0000000..642b01c --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/main.cpp @@ -0,0 +1,47 @@ +#include +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +using std::cout; +using std::endl; + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool useThread(void); +extern bool useOption(int argc, char** argv); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + bool isOk = true; + + isOk &= useOption(argc, argv); + isOk &= useThread(); + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +