Mercurial > hg > Members > kono > Cerium
annotate example/Bulk/ppe/Twice.cc @ 684:458a1ad91427
Task Array generation worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Dec 2009 23:03:28 +0900 |
parents | dbe137505f2e |
children | b386522827ae |
rev | line source |
---|---|
652 | 1 #include <stdio.h> |
2 #include "SchedTask.h" | |
3 #include "Twice.h" | |
4 #include "Func.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(Twice); | |
8 | |
9 static int | |
10 run(SchedTask *s,void *rbuf, void *wbuf) | |
11 { | |
684
458a1ad91427
Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
652
diff
changeset
|
12 #if 0 |
652 | 13 int *i_data; |
14 int *o_data; | |
15 long length; | |
16 | |
17 i_data = (int*)s->get_input(rbuf, 0); | |
18 o_data = (int*)s->get_output(wbuf, 0); | |
19 length = (long)s->get_param(0); | |
20 | |
21 for (int i = 0; i < length; i++) { | |
22 o_data[i] = i_data[i] * 2; | |
23 } | |
684
458a1ad91427
Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
652
diff
changeset
|
24 #endif |
652 | 25 |
26 return 0; | |
27 } |