Mercurial > hg > Game > Cerium
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 |
rev | line source |
---|---|
1440 | 1 #include <stdio.h> |
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 | 4 #include "CellTaskManagerImpl.h" |
5 | |
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 | 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 | 24 } |
25 | |
26 /* end */ |