Mercurial > hg > Game > Cerium
view example/many_task/task_init.cc @ 1592:afcb4a3f3526 draft
merge
author | Masa <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Apr 2013 18:00:35 +0900 |
parents | 5c4e3f0d372a |
children |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" #include "GpuScheduler.h" #ifndef __CERIUM_GPU__ SchedExternTask(QuickSort); #endif // __CERIUM_GPU__ SchedExternTask(SortSimple); SchedExternTask(SortCompat); void task_init(void) { #ifdef __CERIUM_GPU__ GpuSchedRegister(QUICK_SORT, "gpu/QuickSort.cl", "quick_sort"); #else SchedRegisterTask(QUICK_SORT, QuickSort); #endif SchedRegister(SortSimple); // SchedRegister(SortCompat); }