Power-of-2 Strides: Maximize Cache Conflict Misses

Strides that are powers of two can lead to severe cache conflict misses, especially when array sizes or access patterns align with cache line boundaries, causing different data items to map to the same cache set and evict each other.

Sources

Open the full topic