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