vault backup: 2023-10-04 12:03:31
This commit is contained in:
parent
4c83d1abe2
commit
e829078584
3 changed files with 19 additions and 5 deletions
|
@ -24,9 +24,22 @@ Vai ser vetorizável.
|
|||
8B -> 64b
|
||||
2 elements
|
||||
|
||||
Without vectorization:
|
||||
![[Pasted image 20231004115725.png]]
|
||||
|
||||
With vectorization:
|
||||
![[Pasted image 20231004115135.png]]
|
||||
|
||||
| N | Version | Time | CPI | \#I | L1_DMiss | Miss/#I |
|
||||
| --- | ------- | ---- | --- | --- | -------- | ------- |
|
||||
| 512 | base() | | | | | |
|
||||
| 51 | | | | | | |
|
||||
#### c)
|
||||
|
||||
| N | Version | Time | CPI | \#I |
|
||||
| --- | -------- | ---- | --- | --- |
|
||||
| 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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue