From c62f1a95e46f3111c2207827ce5bf25e02c084f7 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 8 Nov 2023 12:01:12 +0000 Subject: [PATCH] vault backup: 2023-11-08 12:01:12 --- 4a1s/CP/PL - Aula 8.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/4a1s/CP/PL - Aula 8.md b/4a1s/CP/PL - Aula 8.md index 9e044cd..40e4979 100644 --- a/4a1s/CP/PL - Aula 8.md +++ b/4a1s/CP/PL - Aula 8.md @@ -1,16 +1,19 @@ >[!note] Initial commands ->module load gcc/11.2.0 ->gcc -O2 -fopenmp -lm exe1.c -o exe1.out ->./exe1.out +>- module load gcc/11.2.0 +>- gcc -O2 -fopenmp -lm -g -fno-omit-frame-pointer exe1.c -o exe1.out +>- ./exe1.out +>- srun --partition=cpar --cpus-per-task=2 ./exe1.out +> sbatch --partition=cpar --cpus-per-task=4 +time.sh ## Ex 1 ### a) Valores de pi | | 2PUs | 4PUs | | --------- | ---- | ---- | -| critical | 3.1415927770 | | -| atomic | | | -| reduction | | | +| critical | 3.1415927770 | | +| atomic | 3.1415927770 | | +| reduction | 3.1415927770 | |