comparison example/word_count_test/ppe/Exec.cc @ 800:2708c4a7bade

run16 word count ( not yet worked. )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 21 May 2010 07:47:25 +0900
parents f725c6455d19
children
comparison
equal deleted inserted replaced
799:bf4ee251767e 800:2708c4a7bade
7 SchedDefineTask(Exec); 7 SchedDefineTask(Exec);
8 8
9 static int 9 static int
10 run(SchedTask *s, void *rbuf, void *wbuf) 10 run(SchedTask *s, void *rbuf, void *wbuf)
11 { 11 {
12 char *i_data = (char *)rbuf; 12 char *i_data = (char *)s->get_input(0);
13 unsigned long long *o_data = (unsigned long long*)wbuf; 13 unsigned long long *o_data = (unsigned long long*)s->get_output(0);
14 unsigned long long *head_tail_flag = o_data +2; 14 unsigned long long *head_tail_flag = o_data +2;
15 int length = s->read_size(); 15 int length = s->get_inputSize(0);
16 16
17 int word_flag = 0; 17 int word_flag = 0;
18 int word_num = 0; 18 int word_num = 0;
19 int line_num = 0; 19 int line_num = 0;
20 int i = 0; 20 int i = 0;