Open main menu

CDOT Wiki β

Changes

GPU621/Intel Advisor

79 bytes added, 13:48, 23 November 2018
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.
TypicallyFor default installations, the sample code would be located here: <code>C:\Program Files (x86)\IntelSWTools\Advisor 2019\samples\en\C++\vec_samples.zip 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]>
== 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
49
edits