Initialize le tableau à zero.
[GPU.git] / WCudaMSE / Student_OMP / src / cpp / core / mainCore.cpp
1 #include <stdlib.h>
2 #include <iostream>
3 #include "Chronos.h"
4
5 using std::cout;
6 using std::endl;
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Imported *|
14 \*-------------------------------------*/
15
16 extern bool usePI(void);
17 extern bool useHello(void);
18
19 /*--------------------------------------*\
20 |* Public *|
21 \*-------------------------------------*/
22
23 int mainCore(void);
24
25 /*--------------------------------------*\
26 |* Private *|
27 \*-------------------------------------*/
28
29
30 /*----------------------------------------------------------------------*\
31 |* Implementation *|
32 \*---------------------------------------------------------------------*/
33
34 /*--------------------------------------*\
35 |* Public *|
36 \*-------------------------------------*/
37
38 int mainCore(void)
39 {
40 bool isOk = true;
41 Chronos chrono;
42 chrono.start();
43
44 isOk &= useHello();
45 isOk &= usePI();
46
47 cout << "\n-------------------------------------------------" << endl;
48 cout << "End Main : isOk = " << isOk << endl;
49
50 chrono.stop();
51 chrono.print("\nTime Total : ");
52
53 return isOk ? EXIT_SUCCESS : EXIT_FAILURE;
54 }
55
56 /*--------------------------------------*\
57 |* Private *|
58 \*-------------------------------------*/
59
60 /*----------------------------------------------------------------------*\
61 |* End *|
62 \*---------------------------------------------------------------------*/
63