Run
Offload Modeling Perspective from GUI
Offload Modeling
Perspective from GUIPrerequisites:
- For a SYCL, OpenMP* target, or OpenCL™ application, dooneof the following:
- To analyze the application running on a GPU: Configure your system to analyze GPU kernels.
- To analyze the application running on a CPU: Set up environment variables to offload it temporarily to a CPU.
- In the graphical-user interface (GUI): Create a project and specify an analysis target and target options.
To configure and run the
Offload Modeling
perspective from the GUI:
- Select a baseline device from the drop-down. This is the device that your application runs on for the Intel® Advisor to collect performance data.
- To analyze an application running on a CPU (for example, C, C++, or Fortran), make sureCPUis selected.
- To analyze an application running on a GPU (for example, SYCL, OpenMP target, OpenCL), select theGPUbaseline device.If you select GPU, make sure theGPU Profilingcheckbox is enabled under Survey, Characterization, and Performance Modeling analyses.
- Configure the perspective and set analysis properties, depending on desired results.
- Select a collection accuracy level with analysis properties preset for a specific result:
- Low: Model your application performance for a target device and get the basic low-confidence information about potential speed-up and performance.
- Medium: Model your application performance and data transfers between host and target devices.
- High: Model your application performance, data transfers, and memory objects attribution to improve offload modeling accuracy. For application running on CPU, analyze loop-carried dependencies.
- Select the analyses and properties manually to adjust the perspective flow to your needs. The accuracy level is set toCustom.
The higher accuracy value you choose, the higher runtime overhead is added to your application. TheOverheadindicator shows the overhead for the selected configuration. For theCustomaccuracy, the overhead is calculated automatically for the selected analyses and properties.The Dependencies analysis (included in the high accuracy for CPU baseline device) adds the highest overhead and is not required if your application is highly parallelized or vectorized on a CPU or if you know that key hotspots in your application do not have loop-carried dependencies. You may need to run it for a CPU application if it has scalar loops/functions or you are not sure about dependencies in your code. See Check How Assumed Dependencies Affect Modeling for a workflow to learn about potential dependencies in your code.By default, accuracy is set toLow. See Offload Modeling Accuracy Presets for more details. - Select a target platform from theTarget Platform Modeldrop-down. This is a platform that the Intel Advisor models your application performance on. The following target platforms are available:PlatformDevicepvc_xt_448xve(default)Intel® Data Center GPU Max 448pvc_xt_512xveIntel® Data Center GPU Max 512XeHPG 512Intel® Arc™ Graphics with 512 vector enginesXeHPG 256Intel® Arc™ Graphics with 256 vector enginesGen11 GT2Intel® Iris® Plus GraphicsXeLP Max 96Intel® Iris® XeMAX GraphicsXeLP GT2Intel® Iris® XeGraphicsGen9 GT2Intel® HD Graphics 530Gen9 GT3eIntel® Iris® Graphics 550Gen9 GT4eIntel® Iris® Pro Graphics 580
- ClickRunto run the perspective.While the perspective is running, you can do the following in theAnalysis Workflowtab:
- Control the perspective execution:
- Stop data collection and see the already collected data: Click the
button.
- Pause data collection: Click the
button.
- Cancel data collection and discard the collected data: Click the
button.
- Expand an analysis with
to control the analysis execution:
- Pause the analysis: Click the
button.
- Stop the currently running analysis and start the next analysis selected: Click the
button.
- Interrupt execution of all selected analyses and see the already collected data: Click the
button.
After you run theOffload Modelingperspective, the collected Survey data becomes available for all other perspectives. If you switch to another perspective, you can skip the Survey step and run only perspective-specific analyses.
To run the CPU-to-GPU
Offload Modeling
perspective with the Medium accuracy from the command line interface:advisor --collect=offload --project-dir=./advi_results -- ./myApplication
To run the GPU-to-GPU
Offload Modeling
perspective with the Medium accuracy from the command line interface:advisor --collect=offload --gpu --project-dir=./advi_results -- ./myApplication
See
Run Offload Modeling Perspective from Command Line for details. See
Run GPU-to-GPU Performance Modeling from Command Line for details about the GPU-to-GPU
Offload Modeling
.
Once the
Offload Modeling
perspective collects data, the report opens showing a
Summary
tab with performance metrics estimated for the selected target platform, such as estimated speedup, potential performance bottlenecks, and top offloaded loops. Depending on the selected accuracy level and perspective properties, continue to investigate the results. See
Explore Offload Modeling Results