Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP / src / cpp / core / mainCore.cpp
diff --git a/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp
new file mode 100755 (executable)
index 0000000..7769a53
--- /dev/null
@@ -0,0 +1,63 @@
+#include <stdlib.h>
+#include <iostream>
+#include "Chronos.h"
+
+using std::cout;
+using std::endl;
+
+/*----------------------------------------------------------------------*\
+ |*                    Declaration                                     *|
+ \*---------------------------------------------------------------------*/
+
+/*--------------------------------------*\
+ |*            Imported                *|
+ \*-------------------------------------*/
+
+extern bool usePI(void);
+extern bool useHello(void);
+
+/*--------------------------------------*\
+ |*            Public                  *|
+ \*-------------------------------------*/
+
+int mainCore(void);
+
+/*--------------------------------------*\
+ |*            Private                 *|
+ \*-------------------------------------*/
+
+
+/*----------------------------------------------------------------------*\
+ |*                    Implementation                                  *|
+ \*---------------------------------------------------------------------*/
+
+/*--------------------------------------*\
+ |*            Public                  *|
+ \*-------------------------------------*/
+
+int mainCore(void)
+    {
+    bool isOk = true;
+    Chronos chrono;
+    chrono.start();
+
+    isOk &= useHello();
+   isOk &= usePI();
+
+    cout << "\n-------------------------------------------------" << endl;
+    cout << "End Main : isOk = " << isOk << endl;
+
+    chrono.stop();
+    chrono.print("\nTime Total : ");
+
+    return isOk ? EXIT_SUCCESS : EXIT_FAILURE;
+    }
+
+/*--------------------------------------*\
+ |*            Private                 *|
+ \*-------------------------------------*/
+
+/*----------------------------------------------------------------------*\
+ |*                    End                                             *|
+ \*---------------------------------------------------------------------*/
+