* Ajout d'un exemple CUDA non-openGL (AddVector.cu)
[GPU.git] / WCudaMSE / Student_Cuda / src / cpp / core / mainCore.cpp
1 #include <iostream>
2 #include <stdlib.h>
3
4
5 using std::cout;
6 using std::endl;
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Imported *|
14 \*-------------------------------------*/
15
16 extern bool useHello(void);
17 extern bool addVectors();
18
19 /*--------------------------------------*\
20 |* Public *|
21 \*-------------------------------------*/
22
23 int mainCore();
24
25 /*--------------------------------------*\
26 |* Private *|
27 \*-------------------------------------*/
28
29
30
31 /*----------------------------------------------------------------------*\
32 |* Implementation *|
33 \*---------------------------------------------------------------------*/
34
35 /*--------------------------------------*\
36 |* Public *|
37 \*-------------------------------------*/
38
39 int mainCore()
40 {
41 bool isOk = true;
42 isOk &= useHello();
43 isOk &= addVectors();
44
45 cout << "\nisOK = " << isOk << endl;
46 cout << "\nEnd : mainCore" << endl;
47
48 return isOk ? EXIT_SUCCESS : EXIT_FAILURE;
49 }
50
51 /*--------------------------------------*\
52 |* Private *|
53 \*-------------------------------------*/
54
55
56
57 /*----------------------------------------------------------------------*\
58 |* End *|
59 \*---------------------------------------------------------------------*/
60