Skip to content
Snippets Groups Projects
intel-advisor.md 1.58 KiB
Newer Older
Lukáš Krupčík's avatar
Lukáš Krupčík committed
Intel Advisor
Lukáš Krupčík's avatar
Lukáš Krupčík committed
=============

David Hrbáč's avatar
David Hrbáč committed
is tool aiming to assist you in vectorization and threading of your code. You can use it to profile your application and identify loops, that could benefit from vectorization and/or threading parallelism.
Lukáš Krupčík's avatar
Lukáš Krupčík committed

Installed versions
------------------
The following versions are currently available on Salomon as modules:

Lukáš Krupčík's avatar
Lukáš Krupčík committed
2016 Update 2 - Advisor/2016_update2
Lukáš Krupčík's avatar
Lukáš Krupčík committed

Usage
-----
Lukáš Krupčík's avatar
Lukáš Krupčík committed
Your program should be compiled with -g switch to include symbol names. You should compile with -O2 or higher to see code that is already vectorized by the compiler.
Lukáš Krupčík's avatar
Lukáš Krupčík committed

Lukáš Krupčík's avatar
Lukáš Krupčík committed
Profiling is possible either directly from the GUI, or from command line.
Lukáš Krupčík's avatar
Lukáš Krupčík committed

To profile from GUI, launch Advisor:

Lukáš Krupčík's avatar
Lukáš Krupčík committed
```bash
Lukáš Krupčík's avatar
Lukáš Krupčík committed
    $ advixe-gui
Lukáš Krupčík's avatar
Lukáš Krupčík committed
```
Lukáš Krupčík's avatar
Lukáš Krupčík committed

Lukáš Krupčík's avatar
Lukáš Krupčík committed
Then select menu File -> New -> Project. Choose a directory to save project data to. After clicking OK, Project properties window will appear, where you can configure path to your binary, launch arguments, working directory etc. After clicking OK, the project is ready.
Lukáš Krupčík's avatar
Lukáš Krupčík committed

Lukáš Krupčík's avatar
Lukáš Krupčík committed
In the left pane, you can switch between Vectorization and Threading workflows. Each has several possible steps which you can execute by clicking Collect button. Alternatively, you can click on Command Line, to see the command line required to run the analysis directly from command line.
Lukáš Krupčík's avatar
Lukáš Krupčík committed

References
----------
Pavel Jirásek's avatar
Pavel Jirásek committed
1.  [Intel® Advisor 2015 Tutorial: Find Where to Add Parallelism - C++ Sample](https://software.intel.com/en-us/intel-advisor-tutorial-vectorization-windows-cplusplus)
2.  [Product page](https://software.intel.com/en-us/intel-advisor-xe)
3.  [Documentation](https://software.intel.com/en-us/intel-advisor-2016-user-guide-linux)