Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
formation:astrosim2017gpu4dummies [2017/07/07 15:36] equemene [Pi Monte Carlo, a Compute Bound Example] |
formation:astrosim2017gpu4dummies [2017/07/10 18:52] (Version actuelle) equemene [NBody, a simplistic simulator] |
||
---|---|---|---|
Ligne 474: | Ligne 474: | ||
==== NBody, a simplistic simulator ==== | ==== NBody, a simplistic simulator ==== | ||
+ | The ''NBody.py'' code is a implementation of N-Body kepkerian system on OpenCL devices. | ||
+ | |||
+ | It's available on: | ||
+ | * on file: ''/scratch/AstroSim2017/NBody.py'' on workstations | ||
+ | * on website: [[http://www.cbp.ens-lyon.fr/emmanuel.quemener/documents/Astrosim2017/NBody.py|NBody.py]] | ||
+ | |||
+ | Launch the code with a ''N=2'' on ''1000'' iterations with a graphical output | ||
+ | <code> | ||
+ | python NBody.py -n 2 -g -i 1000 | ||
+ | </code> | ||
+ | |||
+ | {{ :formation:nbody_n2_gpu.png?600 |}} | ||
+ | |||
+ | |||
+ | === Exercice #10 : explore ''NBody.py'' with different devices === | ||
+ | |||
+ | === Exercice #11 : explore ''NBody.py'' with steps and iterations === | ||
+ | |||
+ | === Exercice #12 : explore ''NBody.py'' with Double Precision === | ||
===== Exploration with production codes ===== | ===== Exploration with production codes ===== | ||
==== PKDGRAV3 ==== | ==== PKDGRAV3 ==== | ||
+ | |||