From b57bc5857c9cc48f1e1ccba36f53a25e3adb2500 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 27 Sep 2023 12:21:53 +0100 Subject: [PATCH] vault backup: 2023-09-27 12:21:52 --- 4a1s/CP/PL - Aula 3.md | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/4a1s/CP/PL - Aula 3.md b/4a1s/CP/PL - Aula 3.md index bc3c961..64e53c0 100644 --- a/4a1s/CP/PL - Aula 3.md +++ b/4a1s/CP/PL - Aula 3.md @@ -27,15 +27,31 @@ double -> 8 ### d) -| N | Version | Time | CPI | \#I| L1_DMiss (estimated) | L1_DMiss | | -| --------- | --- | --- | -------- | ----------- | ---------- | -------------- | ---------- | ------ | ------ | -| 512 | base() | | 1 | 0 | 1 | 1 | 0 | 0 | 1 | -| 512 | transp() | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | +| N | Version | Time | CPI | \#I| L1_DMiss (estimated) | L1_DMiss | Miss/\#I | +| --------- | --- | --- | -------- | ----------- | ---------- | -------------- | ---------- | +| 512 | base() | | 1 | 0 | 1 | 1 | 0 | +| 512 | transp() | 0 | 1 | 0 | 0 | 1 | 1 | 512x512x8 = 2 MB 512x8 = 4KB -Impacto (n=512): -- C -> n² / 8 = 32 -- A -> n² / 8 -- B -> n³ ( 8) \ No newline at end of file +**Base: (n=512):** +- C -> n² / 8 = 262144 +- A -> n³ / 8 = 16777216 +- B -> n³ ( 8) = 16777216 +- Total = + +**Transp: Impacto (n=512):** +- C -> n² / 8 = 262144 +- A -> n² / 8 = 262144 +- B -> n³ ( 8) = 16777216 +- Total = 17072128 + +>[!note]- Commands run +>srun --partition=cpar perf stat -e L1-dcache-load-misses -M cpi ./b.out +### e) + +### f) + + +## Ex. 2 \ No newline at end of file