[Exchange and share] Intel® software for general purpose GPU capabilities
deepin 23 751 views · 1 replies ·
jiutian123
deepin
2022-11-22 19:22
Author
Driver installation instructions assume the Linux distribution is already installed. Refer to 3rd party instructions to load the distribution, if not already present.
If you need to update your GPU firmware, refer to the system’s Original Equipment Manufacturer (OEM) for the latest version.
Please note that Resizable BAR (ReBAR) is currently required to be enabled in the system BIOS on the host platform. For Intel based platforms, this includes most systems based on 10th Generation Intel® Core™ Processors and newer. Follow this link for more on What Is Resizable BAR and How Do I Enable It?. Intel continues to optimize the SW stack to reduce the dependency on ReBAR enabled hosts in future.
Please use below instruction to check Resizable BAR enabled or not.
lspci -v |grep -A8 VGA
Similar information will be showed as below:
03:00.0 VGA compatible controller: Intel Corporation Device 56a0 (rev 08) (prog-if 00 [VGA controller])
Subsystem: Intel Corporation Device 4905
Flags: bus master, fast devsel, latency 0, IRQ 182
Memory at 84000000 (64-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=16G]
Expansion ROM at 85000000 [disabled] [size=2M]
Capabilities:
Kernel driver in use: i915
Kernel modules: i915
With Resizable BAR support, “Memory at 4000000000 (64-bit, prefetchable) [size=16G] ” should match the graphics memory size of your Arc GPU.More details, please refer to Arc Specifications
To install the repositories.intel.com/graphics package repository, add the following to your Ubuntu installation. Prior to copy/pasting to your console, you may want to run sudols and enter your password to prevent the commands from being swallowed by the sudo password prompt:
The above will make sure your system has gpg-agent and wget installed. It will then download and install the public key used to verify the integrity of the package repository. Finally, it adds the repositories.intel.com/graphics repository to the system.
NOTE: Currently the DKMS package only supports the Ubuntu 5.17 oem kernel. Please install the Ubuntu 5.17.0-1019 oem kernel (ie “linux-image-5.17.0-1019-oem”).
Reboot the system for these changes to take effect
sudo reboot
If you have enabled Secure Boot in the BIOS, you might get the prompt during the reboot.Please make sure you choose Enroll MOK to make the new kernel to be effective.
Please ensure you are using 5.17.0-1019-oem . Then proceed with the below instructions.
If you will be doing development, you may want to install optional development packages. oneAPI users will need to install these packages for some of the oneAPI tools to function correctly:
In order to access GPU capabilities, a user needs to have the correct permissions on system. The following will list the group assigned ownership of the render nodes, and list the groups the active user is a member of:
stat -c "%G" /dev/dri/render*
groups ${USER}
If a group is listed for the render node which isn’t listed for the user, you will need to add the user to the group using gpasswd. In the following, the active user will be added to the ‘render’ group and a new shell spawned with that group active:
Number of platforms 2
Platform Name Intel(R) OpenCL HD Graphics
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 3.0
Platform Profile FULL_PROFILE