Example: Vector Code
5 multiplies, 3 adds, 2 reciprocals per iteration
For n of order 2000
vector lengths near maximum
all arrays fit in cache
For n of order 7000, data does not all fit in cache
do j=1,n
c(j)=1.0/a(j) + f(j) + (1.0/b(j) + g(j)) * e
end do
Previous slide
Next slide
Back to first slide
View graphic version