annotate TaskManager/test/GpuThreadTest/GpuThreadsTest.cc @ 1444:9de96bded518 draft

change GpuThreadsTest
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Mon, 23 Apr 2012 21:58:29 +0900
parents 50d2c1e85535
children 3ee29c1733d1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1440
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
1 #include <stdio.h>
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
2 #include "GpuThreads.h"
1444
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
3 #include "GpuScheduler.h"
1440
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
4 #include "CellTaskManagerImpl.h"
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
5
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
6 void
1444
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
7 tester(GpuThreads* gpuThreads){
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
8 GpuSchedRegister(1, "twice.cl","Twice");
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
9 }
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
10
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
11 void
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
12 test1(){
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
13 GpuThreads* c = GpuThreads::getInstance();
1440
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
14 c->init();
1444
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
15 tester(c);
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
16 delete c;
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
17 }
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
18
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
19 int
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
20 main(int argc, char* argv[])
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
21 {
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
22 test1();
9de96bded518 change GpuThreadsTest
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1441
diff changeset
23 printf("regist task succeed\n");
1440
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
24 }
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
25
d66dcb067c89 create test program
YuuhiTOMARI
parents:
diff changeset
26 /* end */