Mercurial > hg > Game > Cerium
view example/regex_mas/task_init.cc @ 1914:08e9e416c2e0 draft
Implement divide read in regex_mas
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 20 Jan 2014 19:02:22 +0900 |
parents | 3f058fee44d2 |
children | 68ee760e1c7e |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" #ifdef __CERIUM_GPU__ #include "GpuScheduler.h" #endif /* 必ずこの位置に書いて */ SchedExternTask(TASK_EXEC); SchedExternTask(READ_TASK); SchedExternTask(RUN_READ_BLOCKS); SchedExternTask(MMAP); SchedExternTask(TASK_EXEC); SchedExternTask(RUN_TASK_BLOCKS); SchedExternTask(PRINT_TASK); /** * この関数は ../spe/spe-main と違って * 自分で呼び出せばいい関数なので * 好きな関数名でおk (SchedRegisterTask は必須) */ void task_init(void) { #ifdef __CERIUM_GPU__ GpuSchedRegister(TASK_EXEC, "gpu/Exec.cl", "run"); #endif SchedRegister(TASK_EXEC); SchedRegister(READ_TASK); SchedRegister(RUN_READ_BLOCKS); SchedRegister(MMAP); SchedRegister(RUN_TASK_BLOCKS); SchedRegister(PRINT_TASK); }