vault backup: 2023-11-08 12:11:12

This commit is contained in:
Alice 2023-11-08 12:11:12 +00:00
parent c62f1a95e4
commit ff8bfcf5d0

View file

@ -2,18 +2,19 @@
>[!note] Initial commands >[!note] Initial commands
>- module load gcc/11.2.0 >- module load gcc/11.2.0
>- gcc -O2 -fopenmp -lm -g -fno-omit-frame-pointer exe1.c -o exe1.out >- gcc -O2 -fopenmp -lm -g -fno-omit-frame-pointer exe1.c -o exe1.out
>- ./exe1.out >>- ./exe1.out
>- srun --partition=cpar --cpus-per-task=2 ./exe1.out >- srun --partition=cpar --cpus-per-task=2 ./exe1.out perf stat exe1.out
> sbatch --partition=cpar --cpus-per-task=4 > sbatch --partition=cpar --cpus-per-task=4
time.sh time.sh
## Ex 1 ## Ex 1
### a) Valores de pi ### a) Tempos de execução
| | 2PUs | 4PUs | | | 2PUs | 4PUs |
| --------- | ---- | ---- | | --------- | ---- | ---- |
| critical | 3.1415927770 | | | critical | | |
| atomic | 3.1415927770 | | | atomic | | |
| reduction | 3.1415927770 | | | reduction | 0.0568250 | 0.032184014 |