X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2Frippling0FreeGL.cpp;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2Frippling0FreeGL.cpp;h=b0aaa3274899c1e0b376f5c7f8408358996414a9;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp new file mode 100755 index 0000000..b0aaa32 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp @@ -0,0 +1,87 @@ +#include +#include "cudaTools.h" +#include "Device.h" +#include "MathTools.h" + +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int rippling0FreeGL(int itmax); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp: itmax suffisamment grand pour que timeElapse soit significatif + */ +int rippling0FreeGL(int itmax) + { + cout<<"\n[Rippling0] : FreeGL running ..."<