Set Up System to Analyze GPU Kernels
- Make sure you have the Intel® Metrics Discovery Application Programming Interface. The library is included with theIntel® Advisor.
- Install and configure a graphics processing unit (GPU) driver for your system.
- For Linux* OS: Set up environment variables.
Install Intel® Metrics Discovery Application Programming Interface
Install a GPU driver
Set Up Environment Variables
- Add your username to the video group.
- To check if you are already in thevideogroup, run:groups | grep video
- If you are not part of thevideogroup, add your username to it:sudo usermod -a -G video <username>
- Typegroupsto verify that you successfully added your username to the video group . If video is not listed, log out and log back in.
- For Ubuntu* 19.10 and higher: Add your username to therendergroup.
- To check if you are already in therendergroup, run:groups | grep render
- If you are not part of therendergroup, add your username to it:sudo usermod -a -G render <username>
- Typegroupsto verify that you successfully added your username to therendergroup . Ifrenderis not listed, log out and log back in.
- Set the value of thedev.i915.perf_stream_paranoid sysctloption to0:sysctl -w dev.i915.perf_stream_paranoid=0This command makes a temporary change that is lost on the next reboot. To change this option permanently, run:echo dev.i915.perf_stream_paranoid=0 > /etc/sysctl.d/60-mdapi.conf
- Open the grub file in the/etc/defaultdirectory.
- FindGRUB_CMDLINE_LINUX_DEFAULTand typei915.enable_hangcheck=0between the "" to disable time limit and run OpenCL™ kernel for a longer period of time. Save the file and close.
- Run the following command to update the configuration:sudo update-grub