Rippling CUDA Warmup et Smart.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 00_Rippling_warmup / 02_cuda / rippling0.cu
index eb778bf..376d4c3 100755 (executable)
@@ -41,11 +41,11 @@ static __global__ void rippling0(uchar4* ptrDevPixels,int w, int h,float t);
 \r
 void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t)\r
     {\r
-    dim3 dg = dim3(8, 8, 1); // disons, a optimiser\r
-    dim3 db = dim3(16, 16, 1); // disons, a optimiser\r
+    dim3 dg = dim3(4, 4, 1); // disons, a optimiser\r
+    dim3 db = dim3(8, 8, 1); // disons, a optimiser\r
 \r
     //Device::print(dg, db);\r
-     Device::checkDimError(dg,db);\r
+    Device::checkDimError(dg,db);\r
 \r
     rippling0<<<dg,db>>>(ptrDevPixels,w,h,t);\r
     Device::checkKernelError("rippling0");\r
@@ -57,7 +57,7 @@ void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t)
 \r
 __global__ void rippling0(uchar4* ptrDevPixels, int w, int h, float t)\r
     {\r
-    Rippling0Math rippling0Math = Rippling0Math(w, h);\r
+    Rippling0Math rippling0Math(w, h);\r
 \r
     const int TID = Indice2D::tid();\r
     const int NB_THREAD = Indice2D::nbThread();\r