# HG changeset patch # User Masataka Kohagura # Date 1391179742 -32400 # Node ID 36958c5e0b90340bc1ffe26173f4b5c160cf6546 # Parent e735ac7509c631a51f3f96ca79eeb30b26f5e907 add slide pages 8-17 diff -r e735ac7509c6 -r 36958c5e0b90 paper/fig/fig.graffle --- a/paper/fig/fig.graffle Thu Jan 30 19:55:28 2014 +0900 +++ b/paper/fig/fig.graffle Fri Jan 31 23:49:02 2014 +0900 @@ -26,7 +26,7 @@ MasterSheets ModificationDate - 2014-01-30 09:44:24 +0000 + 2014-01-31 10:09:34 +0000 Modifier MasaKoha NotesVisible @@ -243,8 +243,8 @@ 51 Points - {289.49999909181315, 249.09607114673688} - {333.5000030945593, 249.17895606666326} + {289.49999991705135, 249.02768765074879} + {333.50000024696612, 249.05157503592648} Style @@ -276,8 +276,8 @@ 50 Points - {129.88006358058934, 210.16780584070199} - {193.49136532333424, 232.83095557438625} + {129.78980017208514, 210.16810527836222} + {193.27459171556478, 232.83168050611309} Style @@ -309,8 +309,8 @@ 49 Points - {189.59775698691453, 156.16940234575466} - {129.44447355269742, 177.83073988701349} + {189.58742189266738, 156.16936752188897} + {129.42029288911706, 177.83065846961293} Style @@ -408,8 +408,8 @@ 46 Points - {285.50000000038938, 72.010950396119398} - {333.50000003776938, 72.021256651298529} + {285.50000000000006, 72.002906027987635} + {333.50000000000404, 72.00564111315245} Style @@ -441,8 +441,8 @@ 45 Points - {135.50000000000003, 71.997751477910086} - {183.50000000000406, 71.995635221825466} + {135.5, 71.999403284771361} + {183.5, 71.998841670438537} Style @@ -1430,46 +1430,6 @@ Bounds - {{403.82454785863121, 146.36728136843453}, {50.167503718794457, 15}} - Class - ShapedGraphic - ID - 34 - Shape - Rectangle - Text - - Text - {\rtf1\ansi\ansicpg932\cocoartf1265 -\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc - -\f0\fs24 \cf0 Task} - - - - Bounds - {{353.65704280460278, 146.367281207855}, {50.167503718794457, 15}} - Class - ShapedGraphic - ID - 33 - Shape - Rectangle - Text - - Text - {\rtf1\ansi\ansicpg932\cocoartf1265 -\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc - -\f0\fs24 \cf0 Task} - - - - Bounds {{148.65370289116089, 146.36729116627507}, {50.167503718794457, 15}} Class ShapedGraphic @@ -1509,31 +1469,6 @@ - Class - LineGraphic - ID - 29 - Points - - {300.82288846180796, 120.94518440256009} - {300.82288846180796, 142.05071193960632} - - Style - - stroke - - HeadArrow - 0 - Legacy - - Pattern - 2 - TailArrow - 0 - - - - Bounds {{148.65370522018668, 99.573320474733848}, {50.167503718794457, 15}} Class @@ -1714,31 +1649,6 @@ - Class - LineGraphic - ID - 17 - Points - - {274.90077141372291, 153.36728988654082} - {327.74499123085997, 153.68889761849127} - - Style - - stroke - - HeadArrow - 0 - Legacy - - Pattern - 2 - TailArrow - 0 - - - - Bounds {{98.48619982764292, 52.779350107999477}, {50.167503718794457, 15}} Class diff -r e735ac7509c6 -r 36958c5e0b90 slide/index.html --- a/slide/index.html Thu Jan 30 19:55:28 2014 +0900 +++ b/slide/index.html Fri Jan 31 23:49:02 2014 +0900 @@ -27,6 +27,7 @@

Masataka Kohagura 12th, February

担当教官 : 河野 真治
+

研究背景と目的

@@ -40,6 +41,16 @@

+
+

Cerium とは

+

+

+

+

+

+

+
+

Cerium の流れ

@@ -187,10 +198,11 @@ + + +
+

divide read の実装(1)

+
+

divide Read の実装

+
+// 生成するTaskが何番目か
+read->set_param(0,(long)w->read_task_number);
+// 1つの Read Task で読み込む量
+read->set_param(1,(long)w->read_division_size);
+// read_left_size : 残り読み込み量
+if(w->read_left_size <= w->read_division_size){
+    read->set_param(2,(long)w->read_left_size);
+}else{
+    read->set_param(2,(long)w->read_division_size);
+}
+// ファイルディスクリプタを渡す
+read->set_param(3,(long)w->fd);
+
+//生成するTaskが何番目か
+read->set_outData
+        (0,w->file_mmap + w->read_task_number*w->read_division_size,
+            w->read_division_size);
+

divide read の実装(2)


-

ブロック単位で生成、実行を行う理由

-
    -
  • +

    divide Read の記述

    +
    +static int
    +read_task(SchedTask *s, void *rbuf, void *wbuf)
    +{
    +    long task_number = (long)s->get_param(0);
    +    long division_size = (long)s->get_param(1);
    +    long read_size = (long)s->get_param(2);
    +    long fd = (long)s->get_param(3);
    +
    +    char *read_text = (char*)s->get_output(wbuf,0);
    +
    +    pread(fd, read_text, (long)read_size , division_size*task_number);
    +
    +    return 0;
    +}
    +
    +
- +
+

divide read を実装した例題

+
+
    +
  • + Boyer Moore String Search Algorithm を使用した文字列検索 +
  • +
  • + 検索対象の文字列が、あるファイルの中にいくつ存在するかカウントする例題 +
+
+
+

ベンチマーク

+
+

考察

+
+ +
+

まとめ

+
+
+ +
+

大学院に進学してしたいこと

+
+
    +
  • + さらなる 並列処理向け I/O の動作を改善 +
  • +
  • + 動作の軽いソフトウェアシンセサイザーを Cerium で実装 +
  • +
+ +
+ +