Mercurial > hg > Game > Cerium
comparison example/get_segment/ppe/Hello1.cc @ 464:0d64bdb63005 draft
task run is mere C function now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Sep 2009 10:12:26 +0900 |
parents | a1c670e29cde |
children | c73aff02db67 |
comparison
equal
deleted
inserted
replaced
463:60f44d3ea452 | 464:0d64bdb63005 |
---|---|
6 SchedDefineTask(Hello1); | 6 SchedDefineTask(Hello1); |
7 | 7 |
8 #define PP_STORE 3 | 8 #define PP_STORE 3 |
9 #define SIZE (4096*sizeof(int)) | 9 #define SIZE (4096*sizeof(int)) |
10 | 10 |
11 int | 11 static int |
12 Hello1::run(SchedTask *smanager, void *rbuf, void *wbuf) | 12 run(SchedTask *smanager, void *rbuf, void *wbuf) |
13 { | 13 { |
14 int task_id = get_param(0); | 14 int task_id = smanager->get_param(0); |
15 int *ptr = 0; | 15 int *ptr = 0; |
16 #if 1 | 16 #if 1 |
17 ptr = (int*)smanager->allocate(SIZE); | 17 ptr = (int*)smanager->allocate(SIZE); |
18 | 18 |
19 smanager->mainMem_alloc(0, SIZE); | 19 smanager->mainMem_alloc(0, SIZE); |