vault backup: 2023-10-04 12:13:31
This commit is contained in:
parent
e829078584
commit
6f6741a669
3 changed files with 19 additions and 10 deletions
14
.obsidian/workspace.json
vendored
14
.obsidian/workspace.json
vendored
|
@ -4,11 +4,11 @@
|
||||||
"type": "split",
|
"type": "split",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "acc5682fcfccc7e6",
|
"id": "3315871ba65ef140",
|
||||||
"type": "tabs",
|
"type": "tabs",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "98e0287d38212615",
|
"id": "37b14566e757368b",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 300
|
"width": 328.5
|
||||||
},
|
},
|
||||||
"right": {
|
"right": {
|
||||||
"id": "d8cc89662b1baf06",
|
"id": "d8cc89662b1baf06",
|
||||||
|
@ -158,13 +158,13 @@
|
||||||
"digitalgarden:Digital Garden Publication Center": false
|
"digitalgarden:Digital Garden Publication Center": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "98e0287d38212615",
|
"active": "37b14566e757368b",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Pasted image 20231004115209.png",
|
|
||||||
"Images/Pasted image 20231004115725.png",
|
"Images/Pasted image 20231004115725.png",
|
||||||
"4a1s/CP/PL - Aula 4.md",
|
|
||||||
"Images",
|
|
||||||
"Images/Pasted image 20231004115135.png",
|
"Images/Pasted image 20231004115135.png",
|
||||||
|
"4a1s/CP/PL - Aula 4.md",
|
||||||
|
"Images/Pasted image 20231004115209.png",
|
||||||
|
"Images",
|
||||||
"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/RAS/Projeto.md",
|
"4a1s/RAS/Projeto.md",
|
||||||
|
|
|
@ -9,7 +9,7 @@ B -> consecutive elements in a collumn
|
||||||
Não vai ser vetorizável.
|
Não vai ser vetorizável.
|
||||||
|
|
||||||
|
|
||||||
#### b)
|
#### b) Enable vectorization
|
||||||
result of change cycles to i, k , j :
|
result of change cycles to i, k , j :
|
||||||
A -> same element
|
A -> same element
|
||||||
C -> consecutive elements in a row -> consecutive access in the vector
|
C -> consecutive elements in a row -> consecutive access in the vector
|
||||||
|
@ -29,8 +29,8 @@ Without vectorization:
|
||||||
|
|
||||||
With vectorization:
|
With vectorization:
|
||||||
![[Pasted image 20231004115135.png]]
|
![[Pasted image 20231004115135.png]]
|
||||||
|
Estimated: ( n^3 / 2 )* 8
|
||||||
#### c)
|
#### c)Measure and analyze results
|
||||||
|
|
||||||
| N | Version | Time | CPI | \#I |
|
| N | Version | Time | CPI | \#I |
|
||||||
| --- | -------- | ---- | --- | --- |
|
| --- | -------- | ---- | --- | --- |
|
||||||
|
@ -43,3 +43,12 @@ With vectorization:
|
||||||
>srun --partition=cpar perf stat -e cycles,instructions ./a.out
|
>srun --partition=cpar perf stat -e cycles,instructions ./a.out
|
||||||
|
|
||||||
|
|
||||||
|
#### d) Vectorization fine-tuning
|
||||||
|
Ganhos de 4 vezes mais.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Ex. 3
|
||||||
|
#### a)
|
||||||
|
2 operações em FP
|
Binary file not shown.
Before Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue