Mercurial > hg > Game > Cerium
comparison example/get_segment/spe/Hello.cc @ 426:69e32bb76373 draft
minor fix.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Sep 2009 17:44:30 +0900 |
parents | cebb48da955e |
children | 19c7c7cb02bf |
comparison
equal
deleted
inserted
replaced
425:cebb48da955e | 426:69e32bb76373 |
---|---|
3 #include "Func.h" | 3 #include "Func.h" |
4 | 4 |
5 /* これは必須 */ | 5 /* これは必須 */ |
6 SchedDefineDynamicTask(Hello,Segment1); | 6 SchedDefineDynamicTask(Hello,Segment1); |
7 | 7 |
8 #define PP_STORE 3 | |
9 #define SIZE (4096*sizeof(int)) | |
10 | |
11 int | 8 int |
12 Hello::run(ShcedTask *smanager, void *rbuf, void *wbuf) | 9 Hello::run(SchedTask *smanager, void *rbuf, void *wbuf) |
13 { | 10 { |
14 int task_id = get_param(0); | 11 int task_id = get_param(0); |
15 | 12 |
16 fprintf(stderr,"Hello!\n"); | 13 printf("[%d] Hello, World!!\n", task_id); |
17 | 14 |
18 return 0; | 15 return 0; |
19 } | 16 } |