vault backup: 2023-10-04 12:03:31

This commit is contained in:
Alice 2023-10-04 12:03:31 +01:00
parent 4c83d1abe2
commit e829078584
3 changed files with 19 additions and 5 deletions

View file

@ -161,11 +161,12 @@
"active": "98e0287d38212615", "active": "98e0287d38212615",
"lastOpenFiles": [ "lastOpenFiles": [
"Pasted image 20231004115209.png", "Pasted image 20231004115209.png",
"Images/Pasted image 20231004115725.png",
"4a1s/CP/PL - Aula 4.md",
"Images", "Images",
"Images/Pasted image 20231004115135.png", "Images/Pasted image 20231004115135.png",
"4a1s/CP/PL - Aula 3.md", "4a1s/CP/PL - Aula 3.md",
"4a1s/CP/PL - Aula 2.md", "4a1s/CP/PL - Aula 2.md",
"4a1s/CP/PL - Aula 4.md",
"4a1s/RAS/Projeto.md", "4a1s/RAS/Projeto.md",
"4a1s/RAS/T - Aula 3.md", "4a1s/RAS/T - Aula 3.md",
"4a1s/index.md", "4a1s/index.md",

View file

@ -24,9 +24,22 @@ Vai ser vetorizável.
8B -> 64b 8B -> 64b
2 elements 2 elements
Without vectorization:
![[Pasted image 20231004115725.png]]
With vectorization:
![[Pasted image 20231004115135.png]] ![[Pasted image 20231004115135.png]]
| N | Version | Time | CPI | \#I | L1_DMiss | Miss/#I | #### c)
| --- | ------- | ---- | --- | --- | -------- | ------- |
| 512 | base() | | | | | | | N | Version | Time | CPI | \#I |
| 51 | | | | | | | | --- | -------- | ---- | --- | --- |
| 512 | base_v()| 0.492484818 | 0.91 | 1113554887 |
| 512 | vect() | 0.081604350 | 2.88 | 578275097 |
>[!note]- Commands run
>module load gcc/9.3.0
>gcc -O2 -ftree-vectorize -msse4 mmult.c
>srun --partition=cpar perf stat -e cycles,instructions ./a.out

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB