Mercurial > hg > Members > masakoha > masa
comparison 13/April-2013/2nd.html @ 51:d8f499590d82
rename 201* to 1*
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 16 Mar 2014 13:36:04 +0900 |
parents | 2013/April-2013/2nd.html@e4748bca1eb3 |
children |
comparison
equal
deleted
inserted
replaced
50:43c6da29d688 | 51:d8f499590d82 |
---|---|
1 <!DOCTYPE html> | |
2 | |
3 <!-- | |
4 Google HTML5 slide template | |
5 | |
6 Authors: Luke Mahé (code) | |
7 Marcin Wichary (code and design) | |
8 | |
9 Dominic Mazzoni (browser compatibility) | |
10 Charles Chen (ChromeVox support) | |
11 | |
12 URL: http://code.google.com/p/html5slides/ | |
13 --> | |
14 | |
15 <html> | |
16 <head> | |
17 <title>Presentation</title> | |
18 | |
19 <meta charset='utf-8'> | |
20 <script | |
21 src='http://html5slides.googlecode.com/svn/trunk/slides.js'></script> | |
22 </head> | |
23 | |
24 <style> | |
25 /* Your individual styles here, or just use inline styles if that’s | |
26 what you want. */ | |
27 | |
28 | |
29 </style> | |
30 | |
31 <body style='display: none'> | |
32 | |
33 <section class='slides layout-regular template-default'> | |
34 | |
35 <!-- Your slides (<article>s) go here. Delete or comment out the | |
36 slides below.--> | |
37 | |
38 <article> | |
39 <h1> | |
40 Ceriumによる | |
41 <br> | |
42 正規表現マッチャの実装 | |
43 </h1> | |
44 <p> | |
45 Masataka Kohagura | |
46 <br> | |
47 2nd April , 2013 | |
48 </p> | |
49 </article> | |
50 | |
51 <article> | |
52 <h3> | |
53 研究目的 | |
54 </h3> | |
55 <p> | |
56 本研究室では、Cell用に作られたCeriumにて並列プログラミングを行なっている。 | |
57 近年、マルチコアCPUが主流となっているが、それをフルに使用させるためには並列プログラミングの並列度を上げる必要がある。(続く) | |
58 </p> | |
59 <p> | |
60 現在は正規表現を並列実装している段階である。 | |
61 </p> | |
62 </article> | |
63 | |
64 <article> | |
65 <h3> | |
66 今週までにしたこと | |
67 </h3> | |
68 <p> | |
69 a*bが含まれている単語数と行数をカウントするようにした。 | |
70 </p> | |
71 <p> | |
72 Print.ccで、データの受け渡しの様子の確認。 | |
73 </p> | |
74 </article> | |
75 | |
76 <article class='smaller'> | |
77 <h3> | |
78 Exec.cc | |
79 </h3> | |
80 <section> | |
81 <pre> | |
82 for (; i < length; i++) { | |
83 if (i_data[i] == 0x61) { | |
84 word_head_a_flag = true; | |
85 } else if ((i_data[i] == 0x62) && (word_head_a_flag == true)){ | |
86 word_flag = true; | |
87 line_flag = true; | |
88 word_head_a_flag = true; | |
89 } else if (i_data[i] == 0x20) { //空白 | |
90 word_num += word_flag; | |
91 word_flag = false; | |
92 word_head_a_flag = false; | |
93 } else if (i_data[i] == 0x0A) { // 改行 | |
94 line_num += line_flag; | |
95 word_num += word_flag; | |
96 line_flag = false; | |
97 word_flag = false; | |
98 word_head_a_flag = false; | |
99 } | |
100 } | |
101 </pre> | |
102 </section> | |
103 </article> | |
104 | |
105 <article class='smaller'> | |
106 <h3> | |
107 実行結果(分割されないような小さなファイル) | |
108 </h3> | |
109 <section> | |
110 <pre> | |
111 [Masa]~% ./regex -file b.txt [~/hg/Cerium/example/regex_mas] | |
112 file size 75 | |
113 fix 4096byte file size 4096 | |
114 w 7ffc43a07440 | |
115 dvision_size 4096 | |
116 task_num 1 | |
117 out_task_num 1 | |
118 out size 32 | |
119 SPE include 'a*b' 3 lines. 5 words. | |
120 start sum | |
121 3 5 | |
122 Time: 0.000424 | |
123 </pre> | |
124 <pre> | |
125 SPE include 'a*b' 3 lines. 5 words. | |
126 </pre> | |
127 </section> | |
128 </article> | |
129 | |
130 </section> | |
131 | |
132 </body> | |
133 </html> |