flâneur — a map of the web's best reading

CS 6120: Loop-Level Automatic Vectorization

cs.cornell.edu · 3,643 words · saved by 1 readers

Introduction Modern processors have support for SIMD instructions, which allow for efficient vector operations. We can leverage this feature to optimize loops that operate iteratively on arrays by changing operations that act on single array elements into vector operations that act on multiple array values in one instruction. Consider the following loop of a vector-vector add:

Loop-Level Automatic Vectorization by Katy Voor , Henry Liu October 23, 2019 Introduction Modern processors have support for SIMD instructions, which allow for efficient vector operations. We can leverage this feature to optimize loops that operate iteratively on arrays by changing operations that act on single array elements into vector operations that act on multiple array values in one instruction. Consider the following loop of a vector-vector add: # Assume a, b, and c represent array base addresses in memory such # that the arrays do not overlap. ... one: int = const 1; vvadd_loop: ai: in

Explore this link on the map →

related reading