Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_Cuda / src / cpp / core / 01_Hello / useHello.cpp
diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp
new file mode 100755 (executable)
index 0000000..db80816
--- /dev/null
@@ -0,0 +1,59 @@
+#include <iostream>\r
+#include <limits.h>\r
+\r
+using std::cout;\r
+using std::endl;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Imported                *|\r
+ \*-------------------------------------*/\r
+\r
+extern bool helloCuda(void);\r
+extern bool isAddScalarGPU_Ok(void);\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+bool useHello(void);\r
+\r
+/*--------------------------------------*\\r
+ |*            Private                 *|\r
+ \*-------------------------------------*/\r
+\r
+\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Implementation                                  *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+\r
+\r
+bool useHello(void)\r
+    {\r
+    cout << endl << "[Hello]" << endl;\r
+\r
+    bool isOk = true;\r
+\r
+    isOk&= helloCuda();\r
+    isOk&= isAddScalarGPU_Ok();\r
+\r
+    return true;\r
+    }\r
+\r
+/*--------------------------------------*\\r
+ |*            Private                 *|\r
+ \*-------------------------------------*/\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r
+\r