Visible to Intel only — GUID: GUID-792BEE47-8F92-4F4A-A8FB-243BEF21E916
Visible to Intel only — GUID: GUID-792BEE47-8F92-4F4A-A8FB-243BEF21E916
Intel® Profiling Tools Interfaces for GPU
Intel® Intercept Layer for OpenCL Applications is limited to OpenCL backend. To trace applications using Level Zero and/or OpenCL backend, you need Intel® Profiling Tools Interfaces for GPU.
Intel® Profiling Tools Interfaces for GPU is a collection of code samples and documentations for developers who are interested in building their own tools. It also has a set of tools for developers who prefer lightweight command-line performance tools and onetrace is one of them.
Like Intel® Intercept Layer for OpenCL Applications, onetrace traces activities on both the host and/or the device while the application is running.
By default, onetrace times kernels and/or commands executed on the device and Level Zero and/or OpenCL calls on the host:
onetrace <application>
![Device and Host Timing](/content/dam/docs/us/en/optimization-guide-gpu/2023-2/1B59A679-A0A1-4656-A2A3-494D27713D4A-low.png)
You can also use onetrace to collect host/device/kernel timeline data and use chrome://tracing to view the timelines:
onetrace --chrome-call-logging --chrome-device-timeline <application>
![Device and Host Timelines](/content/dam/docs/us/en/optimization-guide-gpu/2023-2/9999B267-2875-4571-8492-DD5283DAC8A1-low.png)
More information on onetrace and other tools including source code is available in the Intel® Profiling Tools Interfaces for GPU repository.