Advantages of Vectorization and the Effects of Data Size

Overview

This video demonstrates the increases in speed and decreases in loop trip counts to be gained by vectorizing code, as well as examining how data type sizes can affect these results and be tweaked to maximize the gains of vectorization.

The demonstration is achieved by comparing the trip counts and run times of the scalar and vectorized versions of a pair of loops using floats and doubles, to show both the massive improvement gained by vectorization and the consequences of using more bytes than you need. It also shows the viewer how to use certain aspects of Advisor’s survey report to gain useful diagnostic information about the details of how their loops vectorized.

Resources

Download Video[MP4 13.0MB]

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804