49
edits
Changes
no edit summary
= Intel Advisor Tutorial Example =
Here is a great tutorial on how to use Intel Advisor to vectorize your code. [https://software.intel.com/en-us/advisor-tutorial-vectorization-windows-cplusplus Intel® Advisor Tutorial: Add Efficient SIMD Parallelism to C++ Code Using the Vectorization Advisor]
You can find the sample code in the directory of your Intel Parallel Studio installation. Just unzip the file and you can open the solution in Visual Studio or build on the command line.
== Loop Unrolling ==
To align data elements to an <code>x</code> amount of bytes in memory, use the <code>align</code> macro.
Code snippet that is used to align the data elements in the '<code>vec_samples' </code> project.
<source lang="cpp">
// Tell the compiler to align the a, b, and x arrays