Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_Cuda / src / cpp / core / 01_Hello / useHello.cpp
1 #include <iostream>
2 #include <limits.h>
3
4 using std::cout;
5 using std::endl;
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Imported *|
13 \*-------------------------------------*/
14
15 extern bool helloCuda(void);
16 extern bool isAddScalarGPU_Ok(void);
17
18 /*--------------------------------------*\
19 |* Public *|
20 \*-------------------------------------*/
21
22 bool useHello(void);
23
24 /*--------------------------------------*\
25 |* Private *|
26 \*-------------------------------------*/
27
28
29
30 /*----------------------------------------------------------------------*\
31 |* Implementation *|
32 \*---------------------------------------------------------------------*/
33
34 /*--------------------------------------*\
35 |* Public *|
36 \*-------------------------------------*/
37
38
39
40 bool useHello(void)
41 {
42 cout << endl << "[Hello]" << endl;
43
44 bool isOk = true;
45
46 isOk&= helloCuda();
47 isOk&= isAddScalarGPU_Ok();
48
49 return true;
50 }
51
52 /*--------------------------------------*\
53 |* Private *|
54 \*-------------------------------------*/
55
56 /*----------------------------------------------------------------------*\
57 |* End *|
58 \*---------------------------------------------------------------------*/
59