Mercurial > hg > Game > Cerium
annotate example/word_count/WordCount.h @ 1912:4a716f35980a draft
remove old my_mmap
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 20 Jan 2014 03:39:03 +0900 |
parents | b7b528e9ec5e |
children | 889472b0e6d5 |
rev | line source |
---|---|
947 | 1 |
2 typedef struct wordCount { | |
3 struct wordCount *self; | |
1910
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
4 int fd; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
5 int read_division_size; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
6 int read_task_number; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
7 int read_task_num; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
8 int read_left_task_num; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
9 int read_filesize; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
10 int read_left_size; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
11 int read_task_blocks; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
12 char *read_text; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
13 CPU_TYPE read_cpu; |
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
14 |
947 | 15 int size; // remaining file size |
16 int division_size; // for each word count task | |
17 int division_out_size; | |
18 int out_size; | |
1799
d9122ca02431
Exec wordcount by Data Parallel
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
949
diff
changeset
|
19 int out_size_; |
947 | 20 int task_num; // remaining task count |
21 int task_blocks; // spawn task one at a time | |
22 int status_num; | |
23 int task_spwaned; | |
24 unsigned long long *o_data; | |
25 unsigned long long *head_tail_flag; | |
26 int out_task_num; | |
27 int pad; | |
28 char * file_mmap; | |
949 | 29 int file_size; |
947 | 30 HTaskPtr t_print; |
1912
4a716f35980a
remove old my_mmap
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1910
diff
changeset
|
31 HTaskPtr t_exec; |
1910
b7b528e9ec5e
Implement divide read in word_count ( but cannot running )
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
1799
diff
changeset
|
32 } WordCount, *WordCountPtr; |
947 | 33 |