changeset 7:677bd89014b1

add presen
author ikkun
date Wed, 15 Feb 2017 21:55:15 +0900
parents 0e12701e311c
children 5a6c8e4db581
files .DS_Store paper/main.aux paper/main.dvi paper/main.log paper/main.pdf paper/main.toc paper/pic/CG_ Flexibility.graffle prepaper/finalPre.tex~
diffstat 8 files changed, 340 insertions(+), 570 deletions(-) [+]
line wrap: on
line diff
Binary file .DS_Store has changed
--- a/paper/main.aux	Wed Feb 15 19:39:37 2017 +0900
+++ b/paper/main.aux	Wed Feb 15 21:55:15 2017 +0900
@@ -13,6 +13,8 @@
 \citation{opencl}
 \citation{cuda}
 \@writefile{toc}{\contentsline {section}{\numberline {2.2}Code Gear と Data Gear}{3}}
+\newlabel{code_Gear&Data_Gear}{{2.1}{3}}
+\@writefile{lol}{\contentsline {lstlisting}{\numberline {2.1}code_Gear&Data_Gear}{3}}
 \@writefile{toc}{\contentsline {section}{\numberline {2.3}並列性}{3}}
 \@writefile{toc}{\contentsline {section}{\numberline {2.4}柔軟性}{4}}
 \@writefile{lof}{\contentsline {figure}{\numberline {2.2}{\ignorespaces gotoによる Code Segment 間の接続}}{4}}
@@ -37,6 +39,7 @@
 \@writefile{toc}{\contentsline {section}{\numberline {5.2}CUDATwiceの実装}{9}}
 \@writefile{toc}{\contentsline {section}{\numberline {5.3}CMake}{9}}
 \@writefile{toc}{\contentsline {section}{\numberline {5.4}性能評価}{9}}
+\@writefile{toc}{\contentsline {section}{\numberline {5.5}比較}{9}}
 \@writefile{toc}{\contentsline {chapter}{\numberline {第6章}今後の課題}{10}}
 \@writefile{lof}{\addvspace {10\p@ }}
 \@writefile{lot}{\addvspace {10\p@ }}
Binary file paper/main.dvi has changed
--- a/paper/main.log	Wed Feb 15 19:39:37 2017 +0900
+++ b/paper/main.log	Wed Feb 15 21:55:15 2017 +0900
@@ -1,4 +1,4 @@
-This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015) (preloaded format=platex 2015.11.28)  15 FEB 2017 19:26
+This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015) (preloaded format=platex 2015.11.28)  15 FEB 2017 18:15
 entering extended mode
  restricted \write18 enabled.
  %&-line parsing enabled.
@@ -106,7 +106,11 @@
 (/usr/local/texlive/2015/texmf-dist/tex/latex/listings/lstlang1.sty
 File: lstlang1.sty 2014/09/06 1.5e listings language file
 )
-(./main.aux)
+(./main.aux
+
+LaTeX Warning: Label `fig:cbc_goto' multiply defined.
+
+)
 \openout1 = `main.aux'.
 
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 55.
@@ -187,15 +191,46 @@
 LaTeX Warning: Citation `cuda' on page 3 undefined on input line 122.
 
 
-! Package Listings Error: File `src/sample(.c)' not found.
+LaTeX Font Warning: Font shape `JT1/mc/m/it' undefined
+(Font)              using `JT1/mc/m/n' instead on input line 136.
 
-Type X to quit or <RETURN> to proceed,
-or enter new name. (Default extension: c)
+
+LaTeX Font Warning: Font shape `JY1/mc/m/it' undefined
+(Font)              using `JY1/mc/m/n' instead on input line 136.
 
-Enter file name: 
-! Undefined control sequence.
-\\lst@inputlisting ...}}\reserved@a }\lst@doendpe 
-                                                  \@newlistfalse \ignorespaces 
+LaTeX Font Info:    Font shape `JT1/mc/bx/n' in size <10> not available
+(Font)              Font shape `JT1/gt/m/n' tried instead on input line 136.
+LaTeX Font Info:    Font shape `JY1/mc/bx/n' in size <10> not available
+(Font)              Font shape `JY1/gt/m/n' tried instead on input line 136.
+LaTeX Font Info:    Font shape `OT1/cmtt/bx/n' in size <10> not available
+(Font)              Font shape `OT1/cmtt/m/n' tried instead on input line 136.
+! Missing $ inserted.
+<inserted text> 
+                $
+l.136 ...aption=code_Gear&Data_Gear]{src/sample.c}
+                                                  
+? 
+! Misplaced alignment tab character &.
+\lst@caption ->code_Gear&
+                         Data_Gear
+l.136 ...aption=code_Gear&Data_Gear]{src/sample.c}
+                                                  
+? 
+! Extra }, or forgotten $.
+\sbox ...hbox {\color@setgroup #2\color@endgroup }
+                                                  
+l.136 ...aption=code_Gear&Data_Gear]{src/sample.c}
+                                                  
+? 
+! Missing $ inserted.
+<inserted text> 
+                $
+l.136 ...aption=code_Gear&Data_Gear]{src/sample.c}
+                                                  
+? 
+! Missing } inserted.
+<inserted text> 
+                }
 l.136 ...aption=code_Gear&Data_Gear]{src/sample.c}
                                                   
 ? 
@@ -204,19 +239,6 @@
 LaTeX Warning: Reference `fig:CG_Flexibility' on page 4 undefined on input line
  152.
 
-
-LaTeX Warning: File `./pic/CG_Flexibility.pdf' not found on input line 155.
-
-
-! LaTeX Error: Cannot determine size of image (no BoundingBox).
-
-See the LaTeX manual or LaTeX Companion for explanation.
-Type  H <return>  for immediate help.
- ...                                              
-                                                  
-l.155 ...cs[width=120mm]{./pic/CG_Flexibility.pdf}
-                                                  
-? 
 File: ./pic/CG_Flexibility.pdf Graphic file (type pdf)
 <./pic/CG_Flexibility.pdf> [4] [5]
 第 3 章
@@ -231,12 +253,6 @@
 or enter new name. (Default extension: c)
 
 Enter file name: 
-! Undefined control sequence.
-\\lst@inputlisting ...}}\reserved@a }\lst@doendpe 
-                                                  \@newlistfalse \ignorespaces 
-l.193 ...e, caption=GetTask]{./src/sync_dequeue.c}
-                                                  
-? 
 [6
 
 ]
@@ -269,19 +285,22 @@
 
 ] (./main.aux)
 
+LaTeX Font Warning: Some font shapes were not available, defaults substituted.
+
+
 LaTeX Warning: There were undefined references.
 
 
-LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
+LaTeX Warning: There were multiply-defined labels.
 
  ) 
 Here is how much of TeX's memory you used:
- 2114 strings out of 493777
- 29325 string characters out of 6151333
- 122772 words of memory out of 5000000
- 5590 multiletter control sequences out of 15000+600000
- 14180 words of font info for 55 fonts, out of 8000000 for 9000
+ 2203 strings out of 493777
+ 30281 string characters out of 6151333
+ 144772 words of memory out of 5000000
+ 5675 multiletter control sequences out of 15000+600000
+ 14874 words of font info for 59 fonts, out of 8000000 for 9000
  929 hyphenation exceptions out of 8191
- 26i,4n,40p,573b,325s stack positions out of 5000i,500n,10000p,200000b,80000s
+ 26i,4n,40p,573b,1140s stack positions out of 5000i,500n,10000p,200000b,80000s
 
-Output written on main.dvi (16 pages, 27828 bytes).
+Output written on main.dvi (16 pages, 29604 bytes).
Binary file paper/main.pdf has changed
--- a/paper/main.toc	Wed Feb 15 19:39:37 2017 +0900
+++ b/paper/main.toc	Wed Feb 15 21:55:15 2017 +0900
@@ -16,6 +16,7 @@
 \contentsline {section}{\numberline {5.2}CUDATwiceの実装}{9}
 \contentsline {section}{\numberline {5.3}CMake}{9}
 \contentsline {section}{\numberline {5.4}性能評価}{9}
+\contentsline {section}{\numberline {5.5}比較}{9}
 \contentsline {chapter}{\numberline {第6章}今後の課題}{10}
 \contentsline {section}{\numberline {6.1}GPU並列実行}{10}
 \contentsline {chapter}{\numberline {第7章}結論}{11}
--- a/paper/pic/CG_ Flexibility.graffle	Wed Feb 15 19:39:37 2017 +0900
+++ b/paper/pic/CG_ Flexibility.graffle	Wed Feb 15 21:55:15 2017 +0900
@@ -46,12 +46,171 @@
 	<key>Creator</key>
 	<string>いっくん</string>
 	<key>DisplayScale</key>
-	<string>1 0/72 in = 1 0/72 in</string>
+	<string>1 0/72 in = 1.0000 in</string>
 	<key>GraphDocumentVersion</key>
 	<integer>8</integer>
 	<key>GraphicsList</key>
 	<array>
 		<dict>
+			<key>Bounds</key>
+			<string>{{246.62880636665619, 215.00159669351666}, {95.796879999999987, 23}}</string>
+			<key>Class</key>
+			<string>ShapedGraphic</string>
+			<key>FontInfo</key>
+			<dict>
+				<key>Font</key>
+				<string>HiraKakuProN-W3</string>
+				<key>Size</key>
+				<real>12</real>
+			</dict>
+			<key>ID</key>
+			<integer>49</integer>
+			<key>Line</key>
+			<dict>
+				<key>ID</key>
+				<integer>18</integer>
+				<key>Position</key>
+				<real>0.49812299013137817</real>
+				<key>RotationType</key>
+				<integer>0</integer>
+			</dict>
+			<key>Magnets</key>
+			<array>
+				<string>{1, 1}</string>
+				<string>{1, -1}</string>
+				<string>{-1, -1}</string>
+				<string>{-1, 1}</string>
+				<string>{0, 1}</string>
+				<string>{0, -1}</string>
+				<string>{1, 0}</string>
+				<string>{-1, 0}</string>
+				<string>{-0.5, -0.233518}</string>
+				<string>{-0.49144199999999999, 0.26006299999999999}</string>
+				<string>{0.50711799999999996, -0.22408600000000001}</string>
+				<string>{0.50711799999999996, 0.267179}</string>
+				<string>{-0.27431, -0.474028}</string>
+				<string>{0.27977999999999997, -0.47847800000000001}</string>
+				<string>{0.29393799999999998, 0.54304399999999997}</string>
+				<string>{-0.28623199999999999, 0.55380399999999996}</string>
+			</array>
+			<key>Shape</key>
+			<string>Rectangle</string>
+			<key>Style</key>
+			<dict>
+				<key>shadow</key>
+				<dict>
+					<key>Draws</key>
+					<string>NO</string>
+				</dict>
+			</dict>
+			<key>Text</key>
+			<dict>
+				<key>Text</key>
+				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470
+\cocoascreenfonts1{\fonttbl\f0\fnil\fcharset128 HiraKakuProN-W3;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc
+
+\f0\fs24 \cf0 goto \'90\'e6\'82\'f0\'95\'cf\'8d\'58}</string>
+				<key>VerticalPad</key>
+				<integer>0</integer>
+			</dict>
+		</dict>
+		<dict>
+			<key>Class</key>
+			<string>LineGraphic</string>
+			<key>Head</key>
+			<dict>
+				<key>ID</key>
+				<integer>5</integer>
+			</dict>
+			<key>ID</key>
+			<integer>46</integer>
+			<key>OrthogonalBarAutomatic</key>
+			<true/>
+			<key>OrthogonalBarPoint</key>
+			<string>{0, 0}</string>
+			<key>OrthogonalBarPosition</key>
+			<real>11.746602058410645</real>
+			<key>Points</key>
+			<array>
+				<string>{322.14319747713506, 184.19062367450346}</string>
+				<string>{363.43640177751735, 210.99019486305059}</string>
+			</array>
+			<key>Style</key>
+			<dict>
+				<key>stroke</key>
+				<dict>
+					<key>Cap</key>
+					<integer>0</integer>
+					<key>HeadArrow</key>
+					<string>SharpArrow</string>
+					<key>Join</key>
+					<integer>0</integer>
+					<key>Legacy</key>
+					<true/>
+					<key>LineType</key>
+					<integer>2</integer>
+					<key>Pattern</key>
+					<integer>1</integer>
+					<key>TailArrow</key>
+					<string>0</string>
+				</dict>
+			</dict>
+			<key>Tail</key>
+			<dict>
+				<key>ID</key>
+				<integer>34</integer>
+			</dict>
+		</dict>
+		<dict>
+			<key>Class</key>
+			<string>LineGraphic</string>
+			<key>Head</key>
+			<dict>
+				<key>ID</key>
+				<integer>34</integer>
+			</dict>
+			<key>ID</key>
+			<integer>45</integer>
+			<key>OrthogonalBarAutomatic</key>
+			<true/>
+			<key>OrthogonalBarPoint</key>
+			<string>{0, 0}</string>
+			<key>OrthogonalBarPosition</key>
+			<real>11.717905044555664</real>
+			<key>Points</key>
+			<array>
+				<string>{225.60482266877497, 211.02596015787907}</string>
+				<string>{266.84063134308735, 184.17651877847322}</string>
+			</array>
+			<key>Style</key>
+			<dict>
+				<key>stroke</key>
+				<dict>
+					<key>Cap</key>
+					<integer>0</integer>
+					<key>HeadArrow</key>
+					<string>SharpArrow</string>
+					<key>Join</key>
+					<integer>0</integer>
+					<key>Legacy</key>
+					<true/>
+					<key>LineType</key>
+					<integer>2</integer>
+					<key>Pattern</key>
+					<integer>1</integer>
+					<key>TailArrow</key>
+					<string>0</string>
+				</dict>
+			</dict>
+			<key>Tail</key>
+			<dict>
+				<key>ID</key>
+				<integer>3</integer>
+			</dict>
+		</dict>
+		<dict>
 			<key>Class</key>
 			<string>LineGraphic</string>
 			<key>Head</key>
@@ -69,9 +228,8 @@
 			<real>-1</real>
 			<key>Points</key>
 			<array>
-				<string>{330.50000476837158, 289}</string>
-				<string>{391, 290}</string>
-				<string>{391, 331.4999864790621}</string>
+				<string>{294.51244523964431, 193.75001190171832}</string>
+				<string>{294.54220066019309, 259.50000488017986}</string>
 			</array>
 			<key>Style</key>
 			<dict>
@@ -90,13 +248,18 @@
 					<key>Pattern</key>
 					<integer>1</integer>
 					<key>TailArrow</key>
-					<string>SharpArrow</string>
+					<string>0</string>
 				</dict>
 			</dict>
+			<key>Tail</key>
+			<dict>
+				<key>ID</key>
+				<integer>34</integer>
+			</dict>
 		</dict>
 		<dict>
 			<key>Bounds</key>
-			<string>{{355, 332}, {72, 54}}</string>
+			<string>{{258.5, 260}, {72, 54}}</string>
 			<key>Class</key>
 			<string>ShapedGraphic</string>
 			<key>ID</key>
@@ -120,66 +283,7 @@
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
 \f0\fs24 \cf0 Code Gear\
-C}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{330.5, 174.625}, {45.933593999999999, 18.375}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>32</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006298999999999}</string>
-				<string>{0.50711799000000002, -0.22408600000000001}</string>
-				<string>{0.50711799000000002, 0.26717900999999999}</string>
-				<string>{-0.27430999, -0.47402799000000001}</string>
-				<string>{0.27977999999999997, -0.47847801000000001}</string>
-				<string>{0.29393801000000003, 0.54304397000000004}</string>
-				<string>{-0.28623198999999999, 0.55380397999999997}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>fill</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>stroke</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470
-\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 goto}</string>
+D}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
@@ -450,65 +554,6 @@
 			</dict>
 		</dict>
 		<dict>
-			<key>Bounds</key>
-			<string>{{271.533203125, 219.8125}, {45.933593999999999, 18.375}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>26</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006298999999999}</string>
-				<string>{0.50711799000000002, -0.22408600000000001}</string>
-				<string>{0.50711799000000002, 0.26717900999999999}</string>
-				<string>{-0.27430999, -0.47402799000000001}</string>
-				<string>{0.27977999999999997, -0.47847801000000001}</string>
-				<string>{0.29393801000000003, 0.54304397000000004}</string>
-				<string>{-0.28623198999999999, 0.55380397999999997}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>fill</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>stroke</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470
-\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 goto}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
 			<key>AllowLabelDrop</key>
 			<false/>
 			<key>Class</key>
@@ -551,11 +596,11 @@
 				<integer>5</integer>
 			</dict>
 			<key>ID</key>
-			<integer>11</integer>
+			<integer>38</integer>
 			<key>Points</key>
 			<array>
-				<string>{320.76488871608819, 185.07750679426221}</string>
-				<string>{360.48046246333166, 213.92492115764207}</string>
+				<string>{323.00540571047793, 269.83965367870672}</string>
+				<string>{362.434160725016, 246.10341578968794}</string>
 			</array>
 			<key>Style</key>
 			<dict>
@@ -574,7 +619,7 @@
 			<key>Tail</key>
 			<dict>
 				<key>ID</key>
-				<integer>1</integer>
+				<integer>40</integer>
 			</dict>
 		</dict>
 		<dict>
@@ -583,49 +628,14 @@
 			<key>Head</key>
 			<dict>
 				<key>ID</key>
-				<integer>5</integer>
-			</dict>
-			<key>ID</key>
-			<integer>38</integer>
-			<key>Points</key>
-			<array>
-				<string>{324.77608322531131, 275.6498643762593}</string>
-				<string>{371.21818830852447, 252.10346947523897}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>Legacy</key>
-					<true/>
-					<key>LineType</key>
-					<integer>1</integer>
-					<key>TailArrow</key>
-					<string>0</string>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>34</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>34</integer>
+				<integer>40</integer>
 			</dict>
 			<key>ID</key>
 			<integer>37</integer>
 			<key>Points</key>
 			<array>
-				<string>{224.41992605033562, 247.9557578866997}</string>
-				<string>{263.75942222228451, 276.1810437334305}</string>
+				<string>{226.56573390878216, 246.10350941019101}</string>
+				<string>{266.07827548444283, 269.76133415986806}</string>
 			</array>
 			<key>Style</key>
 			<dict>
@@ -648,113 +658,6 @@
 			</dict>
 		</dict>
 		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>1</integer>
-			</dict>
-			<key>ID</key>
-			<integer>8</integer>
-			<key>Points</key>
-			<array>
-				<string>{228.07640941164169, 213.42951603734704}</string>
-				<string>{274.89749509633344, 189.19035391564421}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>Legacy</key>
-					<true/>
-					<key>LineType</key>
-					<integer>1</integer>
-					<key>TailArrow</key>
-					<string>0</string>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>3</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>34</integer>
-			</dict>
-			<key>ID</key>
-			<integer>36</integer>
-			<key>Points</key>
-			<array>
-				<string>{308.5556962717904, 191.37834049073271}</string>
-				<string>{330.5, 231}</string>
-				<string>{309.53436892191536, 265.94271846347436}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>Legacy</key>
-					<true/>
-					<key>LineType</key>
-					<integer>1</integer>
-					<key>TailArrow</key>
-					<string>0</string>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>1</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>1</integer>
-			</dict>
-			<key>ID</key>
-			<integer>35</integer>
-			<key>Points</key>
-			<array>
-				<string>{278.99039783812128, 266.10804591303423}</string>
-				<string>{254, 226}</string>
-				<string>{277.9557871790692, 190.50994491989752}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>Legacy</key>
-					<true/>
-					<key>LineType</key>
-					<integer>1</integer>
-					<key>TailArrow</key>
-					<string>0</string>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>34</integer>
-			</dict>
-		</dict>
-		<dict>
 			<key>Bounds</key>
 			<string>{{355, 202}, {72, 54}}</string>
 			<key>Class</key>
@@ -780,14 +683,14 @@
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
 \f0\fs24 \cf0 Code Gear\
-D}</string>
+C}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
 		</dict>
 		<dict>
 			<key>Bounds</key>
-			<string>{{258.5, 264}, {72, 54}}</string>
+			<string>{{258.5, 139.25}, {72, 54}}</string>
 			<key>Class</key>
 			<string>ShapedGraphic</string>
 			<key>ID</key>
@@ -811,7 +714,7 @@
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
 \f0\fs24 \cf0 Code Gear\
-D}</string>
+B}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
@@ -847,96 +750,6 @@
 				<integer>0</integer>
 			</dict>
 		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{258.5, 139}, {72, 54}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>1</integer>
-			<key>Shape</key>
-			<string>Circle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470
-\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 Code Gear\
-B}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{212.56640999999999, 183.625}, {45.933593999999999, 18.375}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>25</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006298999999999}</string>
-				<string>{0.50711799000000002, -0.22408600000000001}</string>
-				<string>{0.50711799000000002, 0.26717900999999999}</string>
-				<string>{-0.27430999, -0.47402799000000001}</string>
-				<string>{0.27977999999999997, -0.47847801000000001}</string>
-				<string>{0.29393801000000003, 0.54304397000000004}</string>
-				<string>{-0.28623198999999999, 0.55380397999999997}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>fill</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>stroke</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470
-\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 goto}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
 	</array>
 	<key>GridInfo</key>
 	<dict/>
@@ -985,7 +798,7 @@
 	<key>MasterSheets</key>
 	<array/>
 	<key>ModificationDate</key>
-	<string>2017-02-13 05:01:21 +0000</string>
+	<string>2017-02-15 09:08:03 +0000</string>
 	<key>Modifier</key>
 	<string>いっくん</string>
 	<key>NotesVisible</key>
--- a/prepaper/finalPre.tex~	Wed Feb 15 19:39:37 2017 +0900
+++ b/prepaper/finalPre.tex~	Wed Feb 15 21:55:15 2017 +0900
@@ -2,8 +2,6 @@
 \usepackage[dvipdfmx]{graphicx}
 \usepackage{picins}
 \usepackage{fancyhdr}
-\usepackage{abstract}
-\usepackage{url}
 %\pagestyle{fancy}
 \lhead{\parpic{\includegraphics[height=1zw,keepaspectratio,bb=0 0 251 246]{pic/emblem-bitmap.pdf}}琉球大学主催 工学部情報工学科 卒業研究発表会}
 \rhead{}
@@ -20,189 +18,125 @@
 \pagestyle{empty}
 
 \input{dummy.tex}
-\renewcommand{\abstractname}{Abstract}
 \begin{document}
-\title{}
-%\title{Supporting NAT in Screen Sharing System TreeVNC}
-\author{125716B 氏名 {伊波}{立樹} 指導教員 : 河野 真治}
+\title{Code Gear Data Gear によるGPGPU処理実装}
+\author{135704C 氏名 {東恩納}{琢偉} 指導教員 : 河野 真治}
 \date{}
 \twocolumn [
 \maketitle
-\begin{onecolabstract}
-An implementation of Screen sharing system is presented.
-TreeVNC supports multicasting high resolution PC screen using tree structured network over PCs.
-Copying costs are distributed instead of the centralized heavy costs on a VNC server.
-It also possible to change screen server dynamically without changing display cables.
-TreeVNC is useful in a lecture which contains 40-60 students or small seminar.  
-We add several improvements on TreeVNC, such as new connection method for supporting NAT, screen change in a separated thread, multiple screen selection, notification of connection errors.  
-We also show the delay time distribution in real environments
-\end{onecolabstract}]
+\begin{英語abst}
+
+\end{英語abst}]
 \thispagestyle{fancy} 
 
-\section{画面共有を利用したコミュニケーション}
-授業やゼミ等で、それぞれが PC 端末を持っている場合では、
-PC の機能を活かしたコミュニケーションが可能である。
-
-通常の授業では先生の用意した資料、 PC 画面を見ながら授業が進むことが多い。 
-ゼミでは発表者を切り替えながら発表を行う。
-
-画面配信システム TreeVNC\cite{taninari:2011a}は発表者の画面を参加者の PC に表示する。
-そのため、参加者は手元の PC を使用しながら授業を受ける事が可能になる。
-更に発表者の切り替えの際もケーブルの差し替えずに共有する画面の切替を可能としている。
-
-Tree VNC は VNC\cite{vnc} を使用した画面配信を行っている。
-しかし通常の VNC では配信側に全ての参加者が接続するため、多人数の際の処理性能が落ちてしまう。
-Tree VNC では有線でネットワークに接続した参加者をバイナリツリー状に接続し、 配信コストをクライアントに分散させる仕組みになっている。
-そのため、授業で先生の画面を表示する際、多人数の生徒が参加しても処理性能が下がらない。
-また、ツリーのルートが参照している VNC サーバーを変更することで、共有する画面の切替が可能となる。
+\section{Gears OS}
+Code Segment は使用する Input Data Segment, Output Data Segment を指定することで処理とデータの依存関係を解決する。
+Gears OS では Gear という単位を用いてプログラムを Code Gear, Data Gear
+に細かく分割する。
+Gearで表現される計算はメタ計算により実行される。例えば、
+従来の OS が行う排他制御、メモリ管理、並列実行などは Meta Computation に相当する。
+接続する Gear を変更することでプログラムの振る舞いを変更することを可能
+にする柔軟性、メタ計算による並行制御,モデル検査を用いた信頼性の確保を目的とする。
+本研究では現状のGears OS のマルチCPUサポートに加えてGPGPUサポートを行
+う。
+GPGPUはCUDAまたはOpeCLで制御される。Gears OSからCide Gear Data Gearを
+これらに正しく渡す必要がある。
 
-しかし TreeVNC を授業やゼミで使用している中、 様々な問題が発生した。
-NATを越えたネットワーク接続に対応しておらず、遠隔地などで授業やゼミに参加することが出来ない。
-また、ゼミの際に、マルチディスプレイを使用して画面配信を行う際、すべての画面が配信され、不必要な画面まで表示されてしまう。
-
-そこで、本研究では上記の問題点を解決し、TreeVNCの有用性を評価することで授業やゼミを円滑に行えることを目標とする。
-
-\section{画面配信システムTreeVNC}
-VNC(Virtual Network Computing) は、 RFBプロトコルを用いて遠隔操作を行うリモートデスクトップソフトウェアである。
-
-TreeVNC は Java を用いて作成された TightVNC(Tight Virtual Network Computing)\cite{tightvnc} を元に作成されている。
+Gears OS上のTaskはRed Black Tree上に格納される。rb\_treeはCbCで記述さ
+れており、木をたどるためのStackを一つ持つ。
+アルゴリズム全体はCode Gearの有向グラフで表される。実際にこの有向グラ
+フを作成した。これは一種のフローチャートになっている。木とStackに格納
+されるのはData Gearである。この木を用いて GPGPUを実行するエンジンに
+Taskを渡す。
 
-TreeVNC は クライアント同士を接続させ、画面描画のデータを受け取ったクライアントが次のクライアントにデータを流す方式を取っている。
-また、サーバへ接続しに来たクライアントをバイナリツリー状に接続する(図\ref{fig:tree})。
-バイナリツリー状に接続することで、$N$ 台のクライアントが接続しに来た場合、画面配信の画像データをコピーする回数は従来の VNC ではサーバ側で$N$ 回する必要があるが、TreeVNCでは各ノードが2回ずつコピーするだけで済む。
 
-\begin{figure}[htbp]
-    \begin{center}
-        \includegraphics[width=50mm]{./pic/treeVnc.pdf}
-    \end{center}
-    \caption{構成される木構造}
-    \label{fig:tree}
-\end{figure}
+\section{Code Gear と Data Gear}
+Code Gear はプログラムの実行コードそのものであり、OpenCL\cite{opencl}/CUDA\cite{cuda} の kernel に相当する。
 
-\section{NAT への対応}
-遠隔地からでもゼミや授業に参加できるよう、 NATを越えたネットワークから TreeVNC への接続を可能にした。
-
-図\ref{fig:directConnection} にNATを越えたネットワークからの接続を示す。
-別ネットワークからTreeVNCに参加する際、 直接配信側のネットワークの Root Node に接続を行う。
-この接続を Direct Connection と呼ぶ。
-
-Direct Connection した Node はそのネットワークの Root Node になる。 
-そのネットワークの他の Node はそのネットワークの Root Node に接続し、木構造を生成する。
-
-配信側の Root Node は Direct Connection で接続された Root Node に対して Framebuffer Update で 画像データを送信する。
-Framebuffer Update が送信された Root Node は そのネットワークの Node に対して Framebuffer Update を送信する。
-
-これにより、NATを越えたネットワークの画面共有が可能となる。
+Code Gear は処理の基本として、 Input Data Gear を参照し、一つまたは複数の Output Data Gear に書き込む。また、接続された Data Gear 以外には参照を行わない。
+Input Data Gear と Output Data Gear の2つによって、Code Gear の Data に対す
+る依存関係を解決し、 Code Gear の並列実行を可能とする。
+Code Gear はCbCを元に記述されており、処理の移行はfunction callではないので、呼び出し元に戻る概念はない。
+その代わりに、次に実行する Code Gear を軽量継続の goto で指定する。
+Data Gear は、int や文字列などの Primitive Data Type の組み合わせ(struct)\
+である。
+Data Gearは様々な型を持つunionとして定義される。
+Gear の特徴の一つはその処理が Code Gear, Data Gear に閉じていることにある。
+これにより、Code Gear の実行時間、メモリ使用量を予測可能なものにする。
+\lstinputlisting[label=code_Gear&Data_Gear, caption=code_Gear&Data_Gear]{sr
+c/sample.c}
+\section{Context}
+ある Code Gear は次に実行する Code Gear を名前で指定する。これを継続と
+いう。
+Meta Code Gear が名前を解釈して、処理を対応する Code Gear に引き渡す。
+これらは、従来の OS の Dynamic Loading Library や Command 呼び出しに対応する。
+名前と Code Gear へのポインタの対応は Meta Data Gear に格納される。
+この Meta Data Gear を Context と呼ぶことにする。
+これは従来の OS の Process や Thread を表す構造体に対応する。
 
-\begin{figure}[htbp]
-    \begin{center}
-        \includegraphics[width=80mm]{./pic/directConnection.pdf}
-        \caption{遠隔地 Node からの接続}
-        \label{fig:directConnection}
-    \end{center}
-\end{figure}
-
-\section{マルチディスプレイ対応}
-画面配信側のPCがマルチディスプレイの場合、 VNC サーバーからは複数の画面全体の画像データが送信されてしまう。
-そこで、画面を共有する際、ディスプレイを選択させ、画面共有を行う機能を追加した\cite{parusu:2016a}。
-
-ディスプレイの情報は個々のクライアントでしか取得ができない。
-そのため、配信側は画面の切替を行う際に、ディスプレイを選択し、そのディスプレイの左上と右下の座標を取得する。
-その座標を Root Node への画面切り替えを要求する SERVER\_CHANGE\_REQUEST メッセージに付加させる。 
-Root Node は 配信側の VNC サーバー に画像データを要求する FRAMEBUFFER\_UPDATE\_REPLY メッセージに送信された座標を付加する。 
-VNC サーバーは要求された座標内の画像データを FRAMEBUFFER\_UPDATE メッセージで Root Node に送信する。 
-これにより、一画面のみの表示が可能となる。
-
-図\ref{fig:multidisplay} は Display1 のみを画面共有する例を示している。
-
-\begin{figure}[htbp]
-    \begin{center}
-        \includegraphics[width=70mm]{./pic/shareScreenToMultiDisplay.pdf}
-    \end{center}
-    \caption{マルチディスプレイへの対応}
-    \label{fig:multidisplay}
-\end{figure}
+Context には以下のようなものが格納される。
+\begin{itemize}
+    \item Code Gear の名前とポインタの対応表
+    \item Data Gear の Allocation 用の情報
+    \item Code Gear が参照する Data Gear へのポインタ
+    \item Data Gear に格納される Data Type の情報
+\end{itemize}
 
-\section{画面切り替えの安定化}
-画面切り替えを行う際、 配信中の画面を停止した後に画面の切り替え処理を実行していた。
-しかし、 切り替え先の VNC サーバーへの接続に時間がかかったり、 切り替え先の設定ミスなどで画面の切替がスムーズに行えない場合があった。
-
-そこで、 画面切り替えを行う際に新しく切り替え用のスレッドを生成し処理する変更を行った。
-Root Node は SERVER\_CHANGE\_REQUEST を受け取ると、 配信状態を維持したまま、画面切り替え用に新しくスレッドを生成する。
-切り替え用のスレッドは切り替えに必要なデータの設定、 VNC サーバー への接続など通常の切り替え処理を実行する。
-切り替えが完了した後に、 現在配信中の画面を停止し、画面の切替を行う。
-切り替え用のスレッドを用意することで、配信状況を維持したままスムーズな画面切り替えが可能になった。
-
-\section{クライアントへのエラー通知}
-TreeVNC には接続しているクライアントへのエラーの通知を行うことが出来なかった。
-そのため、 画面切り替えを行う際に切り替え先が VNC サーバーの共有設定をしていない場合 Root Node に接続エラーのダイアログが表示されるという実装になっており、切り替えを行ったクライアントには通知されていなかった。
-
-この問題を解決するために新しくERROR\_ANNOUNCE というメッセージを追加した。
-ERROR\_ANNOUNCE メッセージは Root Nodeから木構造を辿りながら末端の Node に通信を行うメッセージで、エラー通知したいクライアントの Node Nuber と エラー内容の文字列を付加して送信する。
-付加した Node Number に一致する Node がメッセージを受け取ると、 付加されたエラーの文字列をダイアログで表示する。
-エラー通知用のメッセージを追加することで、 各々のクライアントに対して通知を行うことが可能になった。
+\section{GPGPU}
+ GPGPUとは画像処理に使われるGPUを画像処理以外で利用する技術である。
+GPUはCPUに比べコア数が圧倒的に多く、単純な計算しかできないが並列処理において一度に大量の計算ができるため利用されている。
+Gears OS は Code Gear に分割され処理の依存関係が明確になるので、並列な処理を書きやすい。またData Gear へのアクセスは接続されたCode Gear からのみであるから、処理中に変数が書き変わる事がない。
+図\ref{fig:gpgpu}では以下の流れで処理が行われる。
+\begin{itemize}
+    \item Data Gear をPersistent Data Tree に挿入。
+    \item TasMannagerで実行する Code Gear と実行に必要な Data Gear へのKeyを持つTask を生成。
+    \item 生成したTaskをTaskQueueに挿入。
+    \item Workerの起動。
+    \item WorkerがTskQueueからTaskを取得。
+    \item 取得した Task を元に必要なData Gear を Persistent Data Tree から取得。
+    \item 並列処理される Code Gear を実行。
+\end{itemize}
 
-\section{TreeVNC の評価}
-VNC サーバー から受信する画像データ、 TreeVNC で扱われるメッセージ通信は構成された木を伝って伝達される。
-接続する人数が増える毎に木の段数は増えていく。 そこで Root Node から木の末端の Node までの画像データ伝達の遅延を検証する実験を行った。
-
-今回授業を受講している学生が TreeVNC を使用した状態で実験を行った。
-TreeVNC には最大で17名が接続していた。 
-バイナリツリーで木を構成した場合、 Node 数が17台だと深さが4となる。
+\begin{figure}[ht]
+    \centering
+    \includegraphics[width=90mm]{pic/gearsosgpgpu.pdf}
+    \caption{Gears OS による GPGPU}
+    \label{fig:gpgpu}
+\end{figure}
+\section{今後の課題}
 
-図\ref{fig:depth}は深さ4 の遅延の分布を示した散布図である。
-X軸はメッセージ伝達にかかった秒数(ms)、 Y軸は画像データのサイズ(Byte)である。
-画像データの伝達はほぼ1秒以内に収まっているが、容量が小さい場合でも時間がかかる場合がある。
-それはその送信の前に大容量の画像を送信した後の回線のDelayが残っているためだと考えられる。
-
-\begin{figure}[htbp]
-    \begin{center}
-        \includegraphics[width=60mm]{./pic/depth4.eps}
-    \end{center}
-    \caption{データサイズと遅延の関係 : 深さ4}
-    \label{fig:depth}
-\end{figure}
+\begin{thebibliography}{10}
+    \bibitem{cerium}
+        宮國 渡,河野真治,神里 晃,杉山千秋:Cell 用の Fine-grain Task Manager
+        の実装,情報処理学会
+        システムソフトウェアとオペレーティング・システム研究会(OS) (2008).
 
-また、この実験で1つだけ極端に遅い Node が見られた。
-このような Node を木に配置した場合、その Node の 子 Node 以下に影響を及ぼすおそれがある。
-
-\section{ボトルネックになっている Node への対処}
-画像データを受け取る時間が遅い Node をそのまま木構造に配置しているとその子 Node 以下に影響を及ぼす。
-そのためネックになっている Node への対処が必要である。
+    \bibitem{alice}
+        赤嶺一樹,河野真治:DataSegment API
+        を用いた分散フレームワークの設計,日本ソフトウェア科学会第28回大会論文集
+        (2011).
+    
+    \bibitem{gears}
+      伊波 立樹, 東恩納 琢偉,河野 真治:Code Gear、Data Gear に基づく OS のプロトタイプ、
+      情報処理学会システムソフトウェアとオペレーティング・システム研究会(OS) (2016).
 
-図\ref{fig:fixTree}は 6台の Node が接続している状態で Node1 がネックになっている場合の木の再構成を示している。
-Root Node はその Node がボトルネックなっているかの判断を遅延の実験で使用したメッセージを使って行う。
-ボトルネックになっているなら Root Node の nodeList からその Node を削除する。
-削除した Node の場所には末端の Node を配置するように CONNECT\_TO メッセージを送信する。
-nodeList から削除された Node は接続されたままなので、データの受信は行うが、 木構造には入らないため、ネックになっている Node の下に新しい Node が繋がることはない。
-そのためネックになっている Node 以下に影響を及ばすことがない。
-
-\begin{figure}[htbp]
-    \begin{center}
-        \includegraphics[width=100mm]{./pic/fixTree.pdf}
-    \end{center}
-    \caption{ボトルネックになっている Node への対処}
-    \label{fig:fixTree}
-\end{figure}
+    \bibitem{segment}
+        河野真治,杉本 優:Code Segment と Data Segment
+        によるプログラミング手法,第54回プログラミング・シンポジウム (2013).
 
-\section{まとめ}
-本研究では画面配信システム TreeVNC での NAT 対応、 マルチディスプレイ対応、共有画面切り替えの安定化、 各 Node へのエラー通知、TreeVNC の評価を行った。
+    \bibitem{monad} 
+        Eugenio Moggi, Notion of Computation and Monads(1991)
 
-NATを越えに対応した Direct Connection という接続方法を確立し実装した。
-これにより、NAT を越えた別ネットワークのユーザーが TreeVNC に参加することが可能となった。
-
-マルチディスプレイの場合に画面を選択して配信することが可能になった。
-
-画面切り替えの際に切り替え用のスレッドを用意することでスムーズな画面切り替えが可能。
+    \bibitem{cbc-llvm}
+        徳森海斗,河野真治:Continuation based C の LLVM/clang 3.5
+        上の実装について,情報処理学会システムソフトウェアとオペレーティング・システム研究会(OS)
+        (2014).
 
-新しく ERROR\_ANNOUNCE メッセージを追加することで各Nodeにエラー通知を行える様になった。
-
-今回の画像データの遅延実験を行い、 ボトルネックになっているノードがあることがわかった。
-また、ボトルネックになっているノードへの対処を行った。
+    \bibitem{opencl}
+        {Aaftab Munshi, Khronos OpenCL Working Group}: {\em {The OpenCL Specification Version 1.0}} (2007).
 
-また今後の課題として音声配信機能の実装、マルチディスプレイ時の表示画面サイズの調整を行う
+    \bibitem{cuda}
+        : {CUDA}, {https://developer.nvidia.com/category/zone/cuda-zone/}.
 
-\nocite{*}
-\bibliographystyle{junsrt}
-\bibliography{reference}
+\end{thebibliography}
 \end{document}