diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index b05e65f..5832932 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,11 +4,11 @@ "type": "split", "children": [ { - "id": "acc5682fcfccc7e6", + "id": "3315871ba65ef140", "type": "tabs", "children": [ { - "id": "98e0287d38212615", + "id": "37b14566e757368b", "type": "leaf", "state": { "type": "markdown", @@ -69,7 +69,7 @@ } ], "direction": "horizontal", - "width": 300 + "width": 328.5 }, "right": { "id": "d8cc89662b1baf06", @@ -158,13 +158,13 @@ "digitalgarden:Digital Garden Publication Center": false } }, - "active": "98e0287d38212615", + "active": "37b14566e757368b", "lastOpenFiles": [ - "Pasted image 20231004115209.png", "Images/Pasted image 20231004115725.png", - "4a1s/CP/PL - Aula 4.md", - "Images", "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 2.md", "4a1s/RAS/Projeto.md", diff --git a/4a1s/CP/PL - Aula 4.md b/4a1s/CP/PL - Aula 4.md index c3b7703..5d4799d 100644 --- a/4a1s/CP/PL - Aula 4.md +++ b/4a1s/CP/PL - Aula 4.md @@ -9,7 +9,7 @@ B -> consecutive elements in a collumn Não vai ser vetorizável. -#### b) +#### b) Enable vectorization result of change cycles to i, k , j : A -> same element C -> consecutive elements in a row -> consecutive access in the vector @@ -29,8 +29,8 @@ Without vectorization: With vectorization: ![[Pasted image 20231004115135.png]] - -#### c) +Estimated: ( n^3 / 2 )* 8 +#### c)Measure and analyze results | N | Version | Time | CPI | \#I | | --- | -------- | ---- | --- | --- | @@ -43,3 +43,12 @@ With vectorization: >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 \ No newline at end of file diff --git a/Pasted image 20231004115209.png b/Pasted image 20231004115209.png deleted file mode 100644 index 72f1b38..0000000 Binary files a/Pasted image 20231004115209.png and /dev/null differ