projects
/
GPU.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP Saucisson.
[GPU.git]
/
WCudaMSE
/
Student_Cuda_Image
/
src
/
cpp
/
core
/
00_Rippling_warmup
/
02_cuda
/
rippling0.cu
diff --git
a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu
b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu
index
eb778bf
..
376d4c3
100755
(executable)
--- a/
WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu
+++ b/
WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu
@@
-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
\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
\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
\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
\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
\r
const int TID = Indice2D::tid();
\r
const int NB_THREAD = Indice2D::nbThread();
\r