9 /*----------------------------------------------------------------------*\
\r
11 \*---------------------------------------------------------------------*/
\r
16 /*----------------------------------------------------------------------*\
\r
17 |* Implementation *|
\r
18 \*---------------------------------------------------------------------*/
\r
20 /*--------------------------------------*\
\r
22 \*-------------------------------------*/
\r
24 /*--------------------------------------*\
\r
26 \*-------------------------------------*/
\r
30 /*--------------------------------------*\
\r
32 \*-------------------------------------*/
\r
34 static void lauchKernel(void);
\r
35 static __global__ void kernelTest(void);
\r
37 /*--------------------------------------*\
\r
39 \*-------------------------------------*/
\r
43 cout << "[BilatTools_Cuda_Smart_switch] : just inlcude to force compilation in .cu" << endl;
\r
50 void lauchKernel(void)
\r
52 dim3 dg = dim3(1, 1, 1);
\r
53 dim3 db = dim3(1, 1, 1);
\r
55 kernelTest<<<dg,db>>>();
\r
56 Device::synchronize();
\r
59 __global__ void kernelTest(void)
\r
61 printf("\nHello from kernel\n"); // TODO use classe
\r
65 /*----------------------------------------------------------------------*\
\r
67 \*---------------------------------------------------------------------*/
\r