Mercurial > hg > Game > Cerium
changeset 1995:c961cc335471 draft
merge
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Apr 2014 00:02:36 +0900 |
parents | 727e896269e9 (current diff) a98e18dba579 (diff) |
children | 9657434c21a4 |
files | |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/example/word_count/ppe/Exec.cc Mon Apr 21 00:02:11 2014 +0900 +++ b/example/word_count/ppe/Exec.cc Mon Apr 21 00:02:36 2014 +0900 @@ -9,9 +9,9 @@ static int wordcount(SchedTask *s, void *rbuf, void *wbuf) { - char *i_data = (char *)rbuf; - unsigned long long *o_data = (unsigned long long*)wbuf; - unsigned long long *head_tail_flag = o_data +2; + char *i_data = (char *)s->get_input(0); + unsigned long long *o_data = (unsigned long long *)s->get_output(0); + unsigned long long *head_tail_flag = o_data + 2; int length = (int)s->get_inputSize(0); int word_flag = 0; int word_num = 0;
--- a/example/word_count/ppe/Print.cc Mon Apr 21 00:02:11 2014 +0900 +++ b/example/word_count/ppe/Print.cc Mon Apr 21 00:02:36 2014 +0900 @@ -10,7 +10,7 @@ static int run_print(SchedTask *s, void *rbuf, void *wbuf) { - WordCount *w = *(WordCount**)rbuf; + WordCount *w = (WordCount*)s->get_input(0); unsigned long long *idata = w->o_data; // long task_num = w->task_num; long status_num = w->status_num;