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:astrosim2017para4dummies [2017/06/30 06:37] – equemene | formation:astrosim2017para4dummies [2017/07/07 07:25] (Version actuelle) – [5 W/2H : Why ? What ? Where ? When ? Who ? How much ? How ?] equemene | ||
|---|---|---|---|
| Ligne 13: | Ligne 13: | ||
| * **Where ?** On workstations, | * **Where ?** On workstations, | ||
| * **Who ?** For people who want to open the hood | * **Who ?** For people who want to open the hood | ||
| - | * **How ?** Applying some simples | + | * **How ?** Applying some simple |
| ===== Session Goal ===== | ===== Session Goal ===== | ||
| Ligne 134: | Ligne 134: | ||
| </ | </ | ||
| - | === Question | + | === Exercice |
| * How much lines of informations ? | * How much lines of informations ? | ||
| - | === Question | + | === Exercice |
| * What new informations appear on the output ? | * What new informations appear on the output ? | ||
| Ligne 150: | Ligne 150: | ||
| {{ : | {{ : | ||
| - | === Question | + | === Exercice |
| * Locate and identify the elements provided with '' | * Locate and identify the elements provided with '' | ||
| Ligne 178: | Ligne 178: | ||
| </ | </ | ||
| - | === Question | + | === Exercice |
| * How many devices do you get ? | * How many devices do you get ? | ||
| Ligne 190: | Ligne 190: | ||
| As when your drive a car, it's useful to get informations about running system during process. The commands '' | As when your drive a car, it's useful to get informations about running system during process. The commands '' | ||
| - | === Question | + | === Exercice |
| * What do you see first ? | * What do you see first ? | ||
| Ligne 283: | Ligne 283: | ||
| </ | </ | ||
| - | === Question | + | === Exercice |
| Ligne 343: | Ligne 343: | ||
| </ | </ | ||
| - | === Question | + | === Exercice |
| * Launch previous command to 10000, 1000, 100 launchs with respectly sizes of 10, 100, 1000 | * Launch previous command to 10000, 1000, 100 launchs with respectly sizes of 10, 100, 1000 | ||
| Ligne 405: | Ligne 405: | ||
| A program name '' | A program name '' | ||
| - | === Question | + | === Exercice |
| * What is the typical precision of the result ? | * What is the typical precision of the result ? | ||
| - | === Question | + | === Exercice |
| * Grep the '' | * Grep the '' | ||
| Ligne 415: | Ligne 415: | ||
| One Solution:< | One Solution:< | ||
| - | echo $(/ | + | echo $(/ |
| </ | </ | ||
| Ligne 431: | Ligne 431: | ||
| 32362.45954692556634304207 | 32362.45954692556634304207 | ||
| </ | </ | ||
| + | |||
| + | Example of code for previous results:< | ||
| + | for i in $(seq 10 ) ; do echo $(/ | ||
| From 1000 to 1000000, 1 time: | From 1000 to 1000000, 1 time: | ||
| Ligne 440: | Ligne 443: | ||
| </ | </ | ||
| + | Example of code for previous results:< | ||
| + | for POWER in $(seq 3 1 6); do ITERATIONS=$((10**$POWER)) ; echo -ne $ITERATIONS' | ||
| ==== Split the execution in equal parts ==== | ==== Split the execution in equal parts ==== | ||
| Ligne 465: | Ligne 470: | ||
| On the previous launch, User time represents 99.6% of Elapsed time. Internal system operations only 0.4%. | On the previous launch, User time represents 99.6% of Elapsed time. Internal system operations only 0.4%. | ||
| - | === Question | + | === Exercice |
| * Explore the values of '' | * Explore the values of '' | ||
| Ligne 585: | Ligne 590: | ||
| In this example, we see that the User time represents 98.52% of the Elapsed time. The total Elapsed time is greater up to 10% to unsplitted one. So, splitting has a cost. The system time represents 0.4% of Elapsed time. | In this example, we see that the User time represents 98.52% of the Elapsed time. The total Elapsed time is greater up to 10% to unsplitted one. So, splitting has a cost. The system time represents 0.4% of Elapsed time. | ||
| - | === Question | + | === Exercice |
| * Explore the values of '' | * Explore the values of '' | ||
| Ligne 592: | Ligne 597: | ||
| * What could you conclude ? | * What could you conclude ? | ||
| - | === Question | + | === Exercice |
| * Append the program to extract the total amount of //Inside// number of iterations | * Append the program to extract the total amount of //Inside// number of iterations | ||
| Ligne 726: | Ligne 731: | ||
| In conclusion, splitting a huge job into small jobs has a Operating System cost. But distribute the jobs using system can very efficient to reduce Elapsed time. | In conclusion, splitting a huge job into small jobs has a Operating System cost. But distribute the jobs using system can very efficient to reduce Elapsed time. | ||
| - | === Question | + | === Exercice |
| * Examine the '' | * Examine the '' | ||
| Ligne 732: | Ligne 737: | ||
| * Examine the '' | * Examine the '' | ||
| - | === Question | + | === Exercice |
| * Add iterator to redo the program 10 times | * Add iterator to redo the program 10 times | ||
| Ligne 789: | Ligne 794: | ||
| Examples of statistics on estimators: | Examples of statistics on estimators: | ||
| With //magic// '' | With //magic// '' | ||
| - | * for //Elapsed time// : '' | + | * for //Elapsed time// : '' |
| - | * for //System time// : '' | + | * for //System time// : '' |
| - | * for //User time// : '' | + | * for //User time// : '' |
| The previous results show that the variability, | The previous results show that the variability, | ||
| Ligne 823: | Ligne 828: | ||
| <note important> | <note important> | ||
| - | === Question | + | === Exercice |
| * Identify and launch the program on only the first core | * Identify and launch the program on only the first core | ||
| Ligne 831: | Ligne 836: | ||
| * Identify and launch on first on the first half and first on the second half of cores | * Identify and launch on first on the first half and first on the second half of cores | ||
| * Why is there a so great difference between elapsed time | * Why is there a so great difference between elapsed time | ||
| + | |||
| + | Watch inside terminal with '' | ||
| Solutions for a 32 cores workstation: | Solutions for a 32 cores workstation: | ||
| Ligne 849: | Ligne 856: | ||
| </ | </ | ||
| - | Why to much user time | + | === Exercice |
| - | + | ||
| - | HT Effect : why so much people desactivate... | + | |
| - | + | ||
| - | === Question | + | |
| * explore with previous program from '' | * explore with previous program from '' | ||
| Ligne 946: | Ligne 949: | ||
| </ | </ | ||
| - | === Question #16 : plot & fit with Amdahl and Mylq laws === | + | === Question #18 : plot & fit with Amdahl and Mylq laws === |
| * plot the curve with your favorite plotter the different values, focus on median one ! | * plot the curve with your favorite plotter the different values, focus on median one ! | ||
| Ligne 953: | Ligne 956: | ||
| * what law match the best | * what law match the best | ||
| - | Examples of codes | + | Examples of gnuplot bunch of commands to do the job. Adapt to your file and '' |
| + | < | ||
| + | Ta(x)=T1*(1-Pa+Pa/ | ||
| + | fit [x=1:16] Ta(x) ' | ||
| + | Tm(x)=Sm+Cm*x+Pm/ | ||
| + | fit [x=1:16] Tm(x) ' | ||
| + | set xlabel ' | ||
| + | set xrange [1:64] | ||
| + | set ylabel " | ||
| + | set title "PiMC : parallel execution with Bash for distributed iterations" | ||
| + | plot ' | ||
| + | Tm(1)/Tm(x) title "Mylq Law" with lines,\ | ||
| + | Ta(1)/Ta(x) title " | ||
| + | </ | ||
| - | xGEMM | + | {{ : |
| - | NBody.py | + | ==== Other sample codes (used for courses) ==== |
| - | PiXPU.py | + | |
| - | Choose your prefered parallel code | + | In folder ''/ |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| - | Improvment of statistics | + | === Exercice #19 : select parallelized program and explore salability === |
| - | Scalability law | + | * launch one of the upper code with '' |
| + | * draw the scalability curve | ||
| + | * estimates the parameters with Amdahl Law and Mylq Law | ||
| - | Amdahl Law | + | ==== Your prefered software ==== |
| - | Mylq Law | + | === Exercice #20 : select parallelized program and explore salability === |
| + | * launch your MPI code with '' | ||
| + | * draw the scalability curve | ||
| + | * estimates the parameters with Amdahl Law and Mylq Law | ||
| + | --- // | ||