my_digital_garden/4a1s/CP/PL - Aula 4.md

770 B

4 de Outubro 2023 - #CP

Ex. 2

a) Limitações vetoriais

A -> consecutive elements in a row -> consecutive access in the vector C -> same element B -> consecutive elements in a collumn

Não vai ser vetorizável.

b)

result of change cycles to i, k , j : A -> same element C -> consecutive elements in a row -> consecutive access in the vector B -> consecutive elements in a row -> consecutive access in the vector

i k j 0 0 1

Vai ser vetorizável.

128b 8B -> 64b 2 elements

!Pasted image 20231004115135.png

N Version Time CPI #I L1_DMiss Miss/#I
512 base()
51