64ded10c080ac9076aea2564a29a2da76d231145
4 /*----------------------------------------------------------------------*\
6 \*---------------------------------------------------------------------*/
8 /*--------------------------------------*\
10 \*-------------------------------------*/
15 /*--------------------------------------*\
17 \*-------------------------------------*/
21 /*--------------------------------------*\
23 \*-------------------------------------*/
27 /*------------------*\
32 * i in [0,nbThreadX-1]
33 * i=threadIdx.y + (blockDim.y * blockIdx.y)
38 return threadIdx
.x
+ (blockDim
.x
* blockIdx
.x
);
42 * output in [0,nbThreadBlock()[
46 static int tidLocalBlock()
69 /*------------------*\
71 \*-------------------*/
76 return gridDim
.x
* blockDim
.x
;
80 static int nbThreadBlock()
85 /*--------------------------------------*\
87 \*-------------------------------------*/
95 /*----------------------------------------------------------------------*\
97 \*---------------------------------------------------------------------*/