Reputation: 12577
When arrays have stride
equal to 1 (a very common case), it seems that code compiled for the generic case (any nonzero stride
) will often be suboptimal.
On the other hand, creating multiple versions of compiled functions and subroutines when some of the arguments are stride=1
scales exponentially with the number of arguments that are arrays.
What is the approach taken by GFortran here?
Upvotes: 3
Views: 185