インテル® VTune™ Amplifier 2018 ヘルプ
Use the GPU In-kernel Profiling to analyze GPU kernel execution per code line and identify performance issues caused by memory latency or inefficient kernel algorithms.
This analysis type is available on the processors based on Intel® microarchitecture code name Broadwell and later.
The GPU In-kernel Profiling instruments your code and, depending on your configuration settings, helps identify performance-critical basic blocks or issues caused by memory accesses in the GPU kernels.
Since the GPU In-kernel Profiling incurs higher performance overhead than the GPU Hotspots analysis, you may consider first running the GPU Hotspots analysis to identify the hottest GPU computing task (GPU kernel) and then exploring this kernel with the GPU In-kernel Profiling.
GPU In-kernel profiling introduces the following key metrics:
Estimated GPU Cycles: The average number of GPU cycles per one kernel instance.
GPU Instructions Executed per Instance: The average number of GPU instructions executed per one kernel instance.
GPU Instructions Executed per Thread: The average number of GPU instructions executed by one thread per one kernel instance.
Syntax:
$ amplxe-cl -collect gpu-profiling [-knob <knobName=knobValue>] -- <target> [target_options]
Knobs: gpu-profiling-mode, kernels-to-profile.
For the most current information on available knobs (configuration options) for the GPU In-kernel Profiling, enter:
$ amplxe-cl -help collect gpu-profiling
Example:
This example runs GPU In-kernel Profiling for a Linux target analyzing only the specified kernel1 and kernel2 with the sampling interval equal to 10 kernels.
$ amplxe-cl -collect gpu-profiling -knob gpu-profiling-mode=memlatency -knob kernels-to-profile=kernel1:1:10:4294967185,kernel2:1:10:4294967185 -- home/test/myApplication
When the data collection is complete, do one of the following to view the result:
Use the -report action to view the data from command line.
Use the -report-output action to write report to a .txt or .csv file
Open the data collection result (*.amplxe) in the VTune Amplifier graphical interface.