Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| formation:astrosim2017gpu4dummies [2017/07/07 12:22] – equemene | formation:astrosim2017gpu4dummies [2017/07/10 16:52] (Version actuelle) – [NBody, a simplistic simulator] equemene | ||
|---|---|---|---|
| Ligne 392: | Ligne 392: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | |||
| + | === Exercice #7 : explore '' | ||
| + | |||
| + | * Without any parameters (the default ones) : | ||
| + | * what is the selected device ? How many itops (iterative operations per second) do you reach ? | ||
| + | * With only the device parameter as '' | ||
| + | * What are the different ratios between the devices ? Which one is the most powerful ? | ||
| + | * With the selector of device and increasing the number of iterations and the number of redo : | ||
| + | * What arrive to itops values ? What is the typical variability on results ? | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Exercice #8 : explore '' | ||
| + | |||
| + | * With a PR from '' | ||
| + | * How decrease the elapsed time of | ||
| + | * With the selector of device and increasing the number of iterations and the number of redo : | ||
| + | * What arrive to itops values ? What is the typical variability on results ? | ||
| + | |||
| + | < | ||
| + | |||
| + | In this case, we define a gnuplot config file as follow. Adapt to your files and configuration. | ||
| + | < | ||
| + | set xlabel ' | ||
| + | set ylabel ' | ||
| + | plot ' | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | === Exercice #9 : explore '' | ||
| + | |||
| + | * Explore with '' | ||
| + | * For which '' | ||
| To explore on this platform the GPU device (device #1) from 2048 to 32768 as parallel rates with a step of 128 and 1000000000 iterations: < | To explore on this platform the GPU device (device #1) from 2048 to 32768 as parallel rates with a step of 128 and 1000000000 iterations: < | ||
| Ligne 401: | Ligne 448: | ||
| * '' | * '' | ||
| - | In this case, you can define a gnuplot | + | In this case, you can define a gnuplot |
| < | < | ||
| set xlabel ' | set xlabel ' | ||
| Ligne 410: | Ligne 457: | ||
| {{ : | {{ : | ||
| + | === Exercice #10 : explore '' | ||
| + | |||
| + | < | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | In this case, you can define a gnuplot config file | ||
| + | < | ||
| + | set xlabel ' | ||
| + | set ylabel ' | ||
| + | plot ' | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| ==== NBody, a simplistic simulator ==== | ==== NBody, a simplistic simulator ==== | ||
| + | The '' | ||
| + | |||
| + | It's available on: | ||
| + | * on file: ''/ | ||
| + | * on website: [[http:// | ||
| + | |||
| + | Launch the code with a '' | ||
| + | < | ||
| + | python NBody.py -n 2 -g -i 1000 | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | === Exercice #10 : explore '' | ||
| + | |||
| + | === Exercice #11 : explore '' | ||
| + | |||
| + | === Exercice #12 : explore '' | ||
| ===== Exploration with production codes ===== | ===== Exploration with production codes ===== | ||
| ==== PKDGRAV3 ==== | ==== PKDGRAV3 ==== | ||
| + | |||