Visible to Intel only — GUID: GUID-671EC0DC-FBA2-4A0D-A159-E89623C58ACB
Visible to Intel only — GUID: GUID-671EC0DC-FBA2-4A0D-A159-E89623C58ACB
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/2024-0/DD6CEE81-E6CF-49BC-9AB0-A399A6C43199-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/2024-0/4BDD3FA7-921C-488E-8881-521076AC1F31-low.png)
More information on onetrace and other tools including source code is available in the Intel® Profiling Tools Interfaces for GPU repository.