686
|
1 #include <stdio.h>
|
|
2 #include <string.h>
|
|
3 #include "DataLoad.h"
|
|
4 #include "Func.h"
|
|
5
|
|
6 /* これは必須 */
|
|
7 SchedDefineTask(DataLoad);
|
|
8
|
|
9 static int
|
|
10 run(SchedTask *s, void *rbuf, void *wbuf)
|
|
11 {
|
|
12
|
|
13 int length = (int)s->get_param(0);
|
|
14 int load_id = (int)s->get_param(1);
|
|
15
|
|
16 //printf("size %d",sizeof(float)*length);
|
|
17
|
|
18 s->global_alloc(load_id, sizeof(float)*length);
|
|
19
|
|
20 //MemList *ml = s->createMemList(length,length);
|
|
21 //s->global_set(load_id, (void *)ml);
|
|
22
|
|
23 return 0;
|
|
24 }
|
|
25
|