Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/task/DataLoad.cc @ 757:5238f3e854fc
Test/create_task , create SPE task from application.
author | hiroki |
---|---|
date | Fri, 29 Jan 2010 14:34:30 +0900 |
parents | 8b45afad160f |
children | 4455e7b0caf3 |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "DataLoad.h" #include "Func.h" /* これは必須 */ SchedDefineTask(DataLoad); static int run(SchedTask *s, void *rbuf, void *wbuf) { int size = (int)s->get_param(0); int load_id = (int)s->get_param(1); //printf("size %d",sizeof(float)*length); s->global_alloc(load_id, size); //MemList *ml = s->createMemList(length,length); //s->global_set(load_id, (void *)ml); return 0; }