tugas3-openMP/readme.md

47 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2022-11-27 14:18:26 +07:00
<p>
Gabriel Possenti Kheisa Drianasta<br>
19/442374/PA/19123
</p>
<h1>Hasil Performance tuning</h1>
<h3>Sebelum parallel</h3>
<pre>
mahasiswa2
komputasi06
mimax= 129 mjmax= 65 mkmax= 65
imax= 128 jmax= 64 kmax= 64
Start rehearsal measurement process.
Measure the performance in 10000 times.
MFLOPS: 724.292114 time(s): 227.362640 8.79942896E-10
</pre>
<h3>Sesudah parallel</h3>
<pre>
mahasiswa2
komputasi06
mimax= 129 mjmax= 65 mkmax= 65
imax= 128 jmax= 64 kmax= 64
Start rehearsal measurement process.
Measure the performance in 10000 times.
MFLOPS: 6017.17725 time(s): 27.3678112 8.79942896E-10
</pre>
<h1>Pembahasan</h1>
<h3>Program OMP do end do disispkan pada bagian berikut pada program <a href="https://elok.ugm.ac.id/pluginfile.php/2173252/mod_resource/content/1/sample4.f">himeno</a>:</h3>
<p>https://repo.gabrielkheisa.xyz/gabrielkheisa/tugas3-openMP/commit/1f11c6330793ba22afb953d114078c87e65d522c</p>
<img src="https://cdn.discordapp.com/attachments/1003173519879847966/1046321839607136297/image.png">
<img src="https://media.discordapp.net/attachments/1003173519879847966/1046321891406786580/image.png">
<h3>Kemudian dilanjutkan dengan penambahan $OMP parallel private() dan do reduction untuk deklarasi variabel parallel:</h3>
<p>https://repo.gabrielkheisa.xyz/gabrielkheisa/tugas3-openMP/commit/8babfcc27e3b0dc524cf99a00cbd47645b9d0273</p>
<img src="https://media.discordapp.net/attachments/1003173519879847966/1046322875797352518/image.png">
2022-11-27 14:23:46 +07:00
<p>Hasilnya adalah peningkatan performa dari <b>724MFLOPS</b> menjadi <b>6017MFLOPS</b> atau sebesar <b>8.3 kali</b> untuk <b>20 threads</b></p>
<br>
2022-11-27 14:21:52 +07:00
<p>Lampiran source code dan dokumentasi: https://repo.gabrielkheisa.xyz/gabrielkheisa/tugas3-openMP/src/branch/master2</p>