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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
947
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 typedef struct wordCount {
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 int size; // remaining file size
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 int division_size; // for each word count task
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 int division_out_size;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 int task_num; // remaining task count
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 int task_blocks; // spawn task one at a time
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 int status_num;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 int task_spwaned;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 unsigned long long *o_data;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 unsigned long long *head_tail_flag;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 int out_task_num;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 int pad;
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 char * file_mmap;
949
5f0135ca75ee word count size fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 947
diff changeset
29 int file_size;
947
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
601578a2fb7f add WordCount.h
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33