--- /dev/null
+#include <stdio.h>\r
+#include <iostream>\r
+\r
+#include "Device.h"\r
+\r
+using std::cout;\r
+using std::endl;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Importation *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+#include "cu.h"\r
+#include "cu_cpp.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Implementation *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Imported *|\r
+ \*-------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+bool mainCU(void);\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+static void lauchKernel(void);\r
+static __global__ void kernelTest(void);\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+bool mainCU(void)\r
+ {\r
+ cout << "[BilatTools_Cuda_Smart_switch] : just inlcude to force compilation in .cu" << endl;\r
+\r
+ lauchKernel();\r
+\r
+ return true;\r
+ }\r
+\r
+void lauchKernel(void)\r
+ {\r
+ dim3 dg = dim3(1, 1, 1);\r
+ dim3 db = dim3(1, 1, 1);\r
+\r
+ kernelTest<<<dg,db>>>();\r
+ Device::synchronize();\r
+ }\r
+\r
+__global__ void kernelTest(void)\r
+ {\r
+ printf("\nHello from kernel\n"); // TODO use classe\r
+ }\r
+\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* End *|\r
+ \*---------------------------------------------------------------------*/\r
+\r