Open main menu

CDOT Wiki β

GPU621/Intel Advisor Assistant

Revision as of 16:16, 8 December 2021 by RRamirez (talk | contribs) (Intel Advisor)

Intel Advisor

Group Members

Introduction to Intel Advisor

Intel advisor is a tool used by developers writing code in Fortran, C, C++, Data Parallel C++ (DPC++), OpenMP, and Python. It will analyze your code written in these languages and help you figure out where you can optimize, and make your application run faster.

It is a part of the Intel OneAPI Base Toolkit that we used in our course – GPU621.

This tool will take your code and help with its performance, it does this through analyzing your code through following key points: • Vectorization and Code Insights • CPU/ Memory Roofline Insights and GPU Roofline Insights • Offload Modeling • GPU Roofline Insights • Threading

Intel Advisor will not write your code, but it will help with optimization. It allows you to: • Model your application performance on an accelerator • Visualize performance bottlenecks on a CPU or GPU using a Roofline chart • Check vectorization efficiency • Prototype threading designs

How to install Intel Advisor

The standalone tool is available on Intel’s official website at https://www.intel.com/content/www/us/en/developer/tools/oneapi/advisor.html and it is also a part of the Intel OneAPI Base Toolkit.

Advantages of Using Intel Advisor

To talk about the advantages of using Intel Advisor we need to discuss a major concern of programmers today; CPU speeds are not increasing and there is a larger emphasize on producing code that will perform more efficiently with the resources available.

With newer processors more options for multi-threading processes become available to coders, as such code produced in this era of computing needs to be parallelized to reach its capabilities.

Intel Advisor is a tool designed to help you take advantage of all the cores available on your CPU. Compiling your code with the proper instruction set will allow your program to take full advantage all the processing power of your CPU.

As it is, with Visual Studio, having optimization turned off simply has the compiler create assembly code for your code as written. With optimization Visual Studio uses Profile-Guided Optimization (PGO) to produce a more optimized code, but no where near as optimized as is possible.

How It Displays Information

A key feature of Intel Advisor is it offers information to the user via a graphical user interface (GUI) or Command Line. Here in an example taken from the Intel Website site we can see an example of vectorization and code insights offered by their application:

Here this offers several important pieces of information such as: • Performance metrics • Top time-consuming loops as sorted by time • A recommendation list for fixing performance issues with your code

How Vectorization and Code Insights works : • Get integrated compiler report data and performance data by running a survey analysis • Identifies the number of times loops are invoked and execute and the number of floating-point and integer operations by running a Characteristic analysis • Checks for various memory issues by running the Memory Access Patterns (MAP) analysis • Checks for data dependencies in loops that the compiler did not vectorize by running the Dependencies analysis.

To expand on a few of these points. Survey analysis is the process where Intel Advisor looks to identify loop hotspots and will use that to provide recommendations on how to fix vectorization issues. Memory Access Patterns will check for memory access issues with such as non-contiguous parts. Dependencies analysis will check for real data dependencies in loops which the compiler failed to vectorize.


Progress