Skip to content
Snippets Groups Projects
intel-advisor.md 1.63 KiB
Newer Older
  • Learn to ignore specific revisions
  • Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    # Intel Advisor
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Intel Advisor is a 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:
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    `2016 Update 2` - Advisor/2016_update2
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ## Usage
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Your program should be compiled with the `-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
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Profiling is possible either directly from the GUI or from the command line.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    To profile from the GUI, launch Advisor:
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ```console
    $ advixe-gui
    ```
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    Then select the menu *File -> New -> Project*. Choose a directory to which the project data is saved. After clicking OK, the *Project properties* window appears, where you can configure the 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
    
    
    Jan Siwiec's avatar
    Jan Siwiec committed
    In the left pane, you can switch between *Vectorization* and *Threading* workflows. Each has several possible steps, which you can execute by clicking the *Collect* button. Alternatively, you can click on *Command Line* to see the command line required to run the analysis directly from the command line.
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    ## References
    
    
    David Hrbáč's avatar
    David Hrbáč committed
    1. [Intel® Advisor 2015 Tutorial: Find Where to Add Parallelism - C++ Sample][a]
    1. [Product page][b]
    1. [Documentation][c]
    
    [a]: https://software.intel.com/en-us/intel-advisor-tutorial-vectorization-windows-cplusplus
    [b]: https://software.intel.com/en-us/intel-advisor-xe
    
    David Hrbáč's avatar
    David Hrbáč committed
    [c]: https://software.intel.com/en-us/intel-advisor-2016-user-guide-linux