4 /*----------------------------------------------------------------------*\
6 \*---------------------------------------------------------------------*/
8 /*--------------------------------------*\
10 \*-------------------------------------*/
12 extern bool helloCuda(void);
13 extern bool isAddScalarGPU_Ok(void);
15 /*----------------------------------------------------------------------*\
17 \*---------------------------------------------------------------------*/
19 /*--------------------------------------*\
21 \*-------------------------------------*/
23 TestHello::TestHello(int deviceId
)
25 this->deviceId
=deviceId
;
27 TEST_ADD(TestHello::testHelloCuda
);
28 TEST_ADD(TestHello::testAdd
);
31 /*--------------------------------------*\
33 \*-------------------------------------*/
35 void TestHello::testHelloCuda(void)
37 TEST_ASSERT(helloCuda() == true);
40 void TestHello::testAdd(void)
42 TEST_ASSERT(isAddScalarGPU_Ok() == true);
45 /*----------------------------------------------------------------------*\
47 \*---------------------------------------------------------------------*/