Specifying the Dependency Rules
In the following example:
if K>N no dependency; if K<N there is a dependency.
The value of K is unknown to the compiler , thus the
compiler will assume dependencies.
The ivdep directive can be used to
communicate to the compiler the
IVDEP = Ignore Vector DEPendency
SUBROUTINE DAXPYI(N,X,K,A)
K<N (dependence) 14% peak
K>N (no dependence) 33% peak
SUBROUTINE DAXPYI(N,X,K,A)