GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
2. Jalankan dan optimasi kode 01-nbody.cu berikut ini.
kompilasi:
nvcc 01-nbody.cu -o nbody
eksekusi:
./nbody
atau
./nbody x
dimana x adalah jumlah partikel/body dalam dengan jumlah partikel 2 << x.
misal: ./nbody 11 artinya menjalankan dengan jumlah partikel 2 << 11, yaitu 4096
Optimasi kode di atas, dan ujilah dengan jumlah partikel 4096 (./nbody 11) dan 16K (./nbody 13)
Eksekusi kode tersebut akan menampilkan jumlah interaksi antar body per detik.
Pada server 167.205.32.100, baseline nya adalah 0.039 Billion interaction per second untuk 4096 body,
dan
catatan:
1. jangan mengubah kode fungsi randomizeBodies, karena fungsi ini berjalan pada host dan tidak perlu/bisa dioptimasi
#IF5160
##Task 1
Using asynhcronous data transfer from host to device, execution can overlap. The total time taken based on the case given is around 12 us. Please see the image attached for proof of execution.