view 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 source

#include <stdio.h>
#include "GpuThreads.h"
#include "GpuScheduler.h"
#include "CellTaskManagerImpl.h"

void
tester(GpuThreads* gpuThreads){
    GpuSchedRegister(1, "twice.cl","Twice");
}

void
test1(){
    GpuThreads* c = GpuThreads::getInstance();
    c->init();
    tester(c);
    delete c;
}

int
main(int argc, char* argv[])
{   
    test1();
    printf("regist task succeed\n");
}

/* end */