annotate document/presentation/semi09_01_09.html @ 0:99a6512a8253

moving from firefly
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Wed, 28 Oct 2009 20:12:40 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 <head>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 <title>ゼミ資料 09/01/09</title>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 <!-- metadata -->
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 <meta name="generator" content="S5" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 <meta name="version" content="S5 1.1" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 <meta name="presdate" content="20050728" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 <meta name="author" content="Eric A. Meyer" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 <meta name="company" content="Complex Spiral Consulting" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 <!-- configuration parameters -->
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 <meta name="defaultView" content="slideshow" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 <meta name="controlVis" content="hidden" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 <!-- style sheet links -->
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 <!-- S5 JS -->
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 <script src="ui/default/slides.js" type="text/javascript"></script>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 </head>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 <body>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 <div class="layout">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 <div id="controls"><!-- DO NOT EDIT --></div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 <div id="currentSlide"><!-- DO NOT EDIT --></div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 <div id="header"></div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 <div id="footer">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 <h1>[date:09/01/09]</h1>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 <h2>並列プログラミングにおけるテストルーチンによる信頼性の向上</h2>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 <div class="presentation">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 <div class="slide">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 <h1>並列プログラミングにおける<br>テストルーチンによる信頼性の向上</h1>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 <h3>小林 佑亮</h3>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 <h4>琉球大学 工学部 情報工学科</h4>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 <h4>No.055722G</h4>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 <div class="slide">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 <h1>研究背景・目的</h1>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 <ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 <font size="4">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 <li>当研究室では学生実験において、PlayStation3を用いた並列的なゲームプログラムの作成を行っている。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 <li>PlayStation3にはCellと呼ばれるCPUが搭載されており、作成したプログラムはCellに最適化させる必要がある。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 <li>そこで使用されるのが当研究室で開発したCeriumレンダリングエンジンである。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 <li>Ceriumには、Taskの管理やデータの転送などを行うTaskManager、オブジェクトのレンダリングを行うRenderingEngine、ゲームの場面(Scene)やルールをTree構造に格納したSceneGraphがある。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 <li>Ceriumを用いたプログラムにはTaskやSceneの概念、Cell上でのデータのやりとりなどがある為、期待された動作を保証するのは難しい。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 <br>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 <li>本研究ではCppUnitを用いて、学生の作成したプログラム、およびCerium本体に対しての単体テストを行う。学生の作成したプログラムに対してはTask単位、Scene単位でのテストを行い、その動作を保証する。</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 </font>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 </ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 <div class="slide">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 <h1>Doing</h1>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 <ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 <li>Game_project/ps3/tree_dandy2のCeriumへの移行</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 <font size="5">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 Scene_Graphの適用<font color= red>_doing</font><br>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 その他
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 </font>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 <li>Test</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 <font size="5">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 1つのSceneだけを抜き出すテスト<br>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 (まずは明らかにおかしい2面ボスシーンを)
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 </font>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 </ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 <div class="slide">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 <h1>tree_dandy2</h1>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 <ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 <li>move.c</li>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 <font size ="5">
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 <pre>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 void Move()
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 ...
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 switch (enemy[tekino].move) {
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 case 0:
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 enemy[tekino].x += enemy[tekino].sx;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 enemy[tekino].y += enemy[tekino].sy;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 break;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 case 1:
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 enemy[tekino].x -= enemy[tekino].sx;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 enemy[tekino].y -= enemy[tekino].sy;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 break;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 case 2:
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 enemy[tekino].sy -= 0.25;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 enemy[tekino].y += enemy[tekino].sy;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 break;
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 ...
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 </pre>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 </font>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 </ul>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 </div>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 </body>
99a6512a8253 moving from firefly
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 </html>