Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP / src / cpp / core / omp / 01_hello / useHello.cpp
diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/useHello.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/useHello.cpp
new file mode 100755 (executable)
index 0000000..3df532e
--- /dev/null
@@ -0,0 +1,53 @@
+#include <iostream>
+
+using std::cout;
+using std::endl;
+
+/*----------------------------------------------------------------------*\
+ |*                    Declaration                                     *|
+ \*---------------------------------------------------------------------*/
+
+
+/*--------------------------------------*\
+ |*            Imported                *|
+ \*-------------------------------------*/
+
+extern void helloOMP1(void);
+extern void helloOMP2(void);
+
+/*--------------------------------------*\
+ |*            Public                  *|
+ \*-------------------------------------*/
+
+bool useHello(void);
+
+/*--------------------------------------*\
+ |*            Private                 *|
+ \*-------------------------------------*/
+
+/*----------------------------------------------------------------------*\
+ |*                    Implementation                                  *|
+ \*---------------------------------------------------------------------*/
+
+/*--------------------------------------*\
+ |*            Public                  *|
+ \*-------------------------------------*/
+
+bool useHello(void)
+    {
+    cout << endl << "[HelloOMP]" << endl;
+
+    helloOMP1();
+    helloOMP2();
+
+    return true;
+    }
+
+/*--------------------------------------*\
+ |*            Private                 *|
+ \*-------------------------------------*/
+
+/*----------------------------------------------------------------------*\
+ |*                    End                                             *|
+ \*---------------------------------------------------------------------*/
+