Mercurial > hg > Game > Cerium
view example/word_count/task_init.cc @ 1817:b0376e1c51e9 draft
use get_input & get_output
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 13 Dec 2013 05:18:58 +0900 |
parents | d9122ca02431 |
children | 56692133c5fb |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" #include "GpuScheduler.h" /* 必ずこの位置に書いて */ SchedExternTask(Exec); SchedExternTask(Exec_Data_Prallel); SchedExternTask(Print); SchedExternTask(RUN_TASK_BLOCKS); /** * この関数は ../spe/spe-main と違って * 自分で呼び出せばいい関数なので * 好きな関数名でおk (SchedRegisterTask は必須) */ void task_init(void) { #ifdef __CERIUM_GPU__ GpuSchedRegister(TASK_EXEC, "gpu/Exec.cl", "wordcount"); #endif SchedRegisterTask(TASK_EXEC, Exec); SchedRegisterTask(TASK_EXEC_DATA_PARALLEL, Exec_Data_Prallel); SchedRegisterTask(TASK_PRINT, Print); SchedRegister(RUN_TASK_BLOCKS); }