7 /*----------------------------------------------------------------------*\
\r
9 \*---------------------------------------------------------------------*/
\r
14 /*----------------------------------------------------------------------*\
\r
15 |* Implementation *|
\r
16 \*---------------------------------------------------------------------*/
\r
18 /*--------------------------------------*\
\r
20 \*-------------------------------------*/
\r
22 /*--------------------------------------*\
\r
24 \*-------------------------------------*/
\r
28 /*--------------------------------------*\
\r
30 \*-------------------------------------*/
\r
32 static void lauchKernel(void);
\r
33 static __global__ void kernelTest(void);
\r
35 /*--------------------------------------*\
\r
37 \*-------------------------------------*/
\r
41 cout << "[BilatTools_Cuda] : just inlcude to force compilation in .cu" << endl;
\r
48 void lauchKernel(void)
\r
50 dim3 dg = dim3(1, 1, 1);
\r
51 dim3 db = dim3(1, 1, 1);
\r
53 kernelTest<<<dg,db>>>();
\r
54 Device::synchronize();
\r
57 __global__ void kernelTest(void)
\r
59 printf("\nHello from kernel\n"); // TODO use classe
\r
63 /*----------------------------------------------------------------------*\
\r
65 \*---------------------------------------------------------------------*/
\r