Loop Unrolling and Sum Reductions
Tuned (4)
do i = 1, lda
do j = 1, lda, 4
a1 = a1 + b(j) * c(i)
a2 = a2 + b(j+1) * c(i)
a3 = a3 + b(j+2) * c(i)
a4 = a4 + b(j+3) * c(i)
enddo
enddo
aa = a1 + a2 +a3 + a4
Previous slide
Next slide
Back to first slide
View graphic version