X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2F01_Hello%2FuseHello.cpp;fp=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2F01_Hello%2FuseHello.cpp;h=db80816279105388af82d2a68d1c07ced0f0c929;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp new file mode 100755 index 0000000..db80816 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp @@ -0,0 +1,59 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool helloCuda(void); +extern bool isAddScalarGPU_Ok(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useHello(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +bool useHello(void) + { + cout << endl << "[Hello]" << endl; + + bool isOk = true; + + isOk&= helloCuda(); + isOk&= isAddScalarGPU_Ok(); + + return true; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +