Mercurial > hg > Game > Cerium
diff 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 |
line wrap: on
line diff
--- a/TaskManager/test/GpuThreadTest/GpuThreadsTest.cc Mon Apr 23 21:38:42 2012 +0900 +++ b/TaskManager/test/GpuThreadTest/GpuThreadsTest.cc Mon Apr 23 21:58:29 2012 +0900 @@ -1,17 +1,26 @@ #include <stdio.h> #include "GpuThreads.h" -//#include "GpuScheduler.h" +#include "GpuScheduler.h" #include "CellTaskManagerImpl.h" void -main(int argc, char* argv[]) -{ - GpuThreads* c = GpuThreads::getInstance(); +tester(GpuThreads* gpuThreads){ + GpuSchedRegister(1, "twice.cl","Twice"); +} + +void +test1(){ + GpuThreads* c = GpuThreads::getInstance(); c->init(); - - gpu_register_task(1, "twice.cl","Twice"); - - delete c; + tester(c); + delete c; +} + +int +main(int argc, char* argv[]) +{ + test1(); + printf("regist task succeed\n"); } /* end */