Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6527 Discussions

2024.5 GPU install fails intel-i915-dkms syntax error

CFR
New Contributor II
1,304 Views

I've been trying to install various tools on my new NUC and ran into the following during the OpenVINO install.  Even with all the things I've tried to get to this point I don't see how this can be due to "user error".

Starting from these instructions...

https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-pip.html

pip install openvino==2.5.1
python -c "from openvino import Core; print(Core().available_devices)"

... only show the CPU. (That may be ok for now)

Continuing down the twisting path of additional instructions...

https://docs.openvino.ai/2024/get-started/configurations/configurations-intel-gpu.html

... and ...

https://dgpu-docs.intel.com/driver/client/overview.html

These are basic steps...

# The Ubuntu 24.04 repositories contain compute packages for various Intel graphics products. To install those packages, use the following commands:

# Install the Intel graphics GPG public key
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg

# Configure the repositories.intel.com package repository
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble client" | \
sudo tee /etc/apt/sources.list.d/intel-gpu-noble.list

# Update the package repository meta-data
sudo apt update

# Install the compute-related packages
sudo apt-get install -y libze1 intel-level-zero-gpu intel-opencl-icd clinfo

.
.
.
Error! Bad return status for module build on kernel: 6.8.0-50-generic (x86_64)
Consult /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/make.log for more information.
dpkg: error processing package intel-i915-dkms (--configure):
installed intel-i915-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
intel-i915-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

... Looking at the log file the last section is...

.
.
.
CC [M] /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/i915_user_extensions.o
CC [M] /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/i915_ioc32.o
/var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/intel_runtime_pm.c: In function ‘__intel_runtime_pm_get_if_active’:
/var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/intel_runtime_pm.c:260:13: error: too many arguments to function ‘pm_runtime_get_if_active’
260 | if (pm_runtime_get_if_active(to_kdev(rpm), ignore_usecount) <= 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/backport-include/linux/pm_runtime.h:3,
from /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/intel_runtime_pm.c:29:
./include/linux/pm_runtime.h:75:12: note: declared here
75 | extern int pm_runtime_get_if_active(struct device *dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
make[6]: *** [scripts/Makefile.build:243: /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915/intel_runtime_pm.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [scripts/Makefile.build:481: /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build/drivers/gpu/drm/i915] Error 2
make[4]: *** [Makefile:1925: /var/lib/dkms/intel-i915-dkms/1.24.6.12.240823.13/build] Error 2
make[3]: *** [Makefile.build:13: modules] Error 2
make[2]: *** [Makefile.real:95: modules] Error 2
make[1]: *** [Makefile:95: modules] Error 2
make: *** [Makefile:80: default] Error 2


# The commands listed above install all the essential packages needed for most users, aiming to minimize the installation of unnecessary packages. However, if you plan to use PyTorch, install libze-dev and intel-ocloc additionally:

apt-get install -y libze-dev intel-ocloc

... From some of my earlier installs of other software it looks like clinfo sees the GPU...

cr@NUC:/local/repo$ clinfo | grep "Device Name"
Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics

... OpenVINO does not ...

cr@NUC:/local/repo$ python -c "from openvino import Core; print(Core().available_devices)"
['CPU']

... but the beta XPU version of Pytorch does...

Python 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:27:36) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.5.1+xpu'
>>> torch.xpu.is_available()
True

... help?

0 Kudos
7 Replies
Aznie_Intel
Moderator
1,238 Views

Hi CFR,

 

Thanks for reaching out. Try to run these commands and then rerun the installation command, starting from the package update.

 

sudo apt purge intel-i915-dkms

sudo apt autoremove

 

 

Regards,

Aznie


0 Kudos
CFR
New Contributor II
1,179 Views

That seemed to clean out the error but when I try to install the new 2024.6.0 things don't get an error, but it still doesn't seem to report any GPU is available. (clinfo and pytorch 2.5.1 xpu still does)


wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu noble client" | sudo tee /etc/apt/sources.list.d/intel-gpu-noble.list

sudo apt update

sudo apt-get install -y libze1 intel-level-zero-gpu intel-opencl-icd clinfo igsc

sudo apt-get install -y libze-dev intel-ocloc

python -c "import openvino; print(openvino.__version__)"
2024.6.0-17404-4c0f47d2335-releases/2024/6

python -c "from openvino import Core; print(Core().available_devices)"
['CPU']

clinfo | grep "Device Name"

Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics
Device Name Intel(R) Arc(TM) Graphics

0 Kudos
Aznie_Intel
Moderator
1,174 Views

Hi CFR,

 

What is your kernel version? Can you try to install the apt package below:

 

apt-get install -y ocl-icd-libopencl1 intel-opencl-icd intel-level-zero-gpu level-zero

 

Then, please try the code below and see if GPU is detected:

 

import openvino as ov

core = ov.Core()

core.available_devices

device = "GPU"

core.get_property(device, "FULL_DEVICE_NAME")

 

If the issue persists, please provide the information on your system configuration for further checking.

 

 

Regards,

Aznie


0 Kudos
CFR
New Contributor II
1,139 Views

>What is your kernel version? Can you try to install the apt package below:

Hardware is an ASUS NUC pro (NUC14RVH, U7-155H)

Software is Ubuntu 24.04 (with a couple updates it wanted to install that I think brings it to 24.04.1) I bought the NUC just to play with the Intel capabilities so I haven't made any real configuration changes.

 

cfr@NUC:/local/repo$ uname -a
Linux NUC 6.8.0-50-generic #51-Ubuntu SMP PREEMPT_DYNAMIC Sat Nov 9 17:58:29 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux


>apt-get install -y ocl-icd-libopencl1 intel-opencl-icd intel-level-zero-gpu level-zero

cfr@NUC:/local/repo$ sudo apt-get install -y ocl-icd-libopencl1 intel-opencl-icd intel-level-zero-gpu level-zero
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libze1' instead of 'level-zero'
ocl-icd-libopencl1 is already the newest version (2.3.2-1build1).
intel-opencl-icd is already the newest version (24.39.31294.20-1032~24.04).
intel-level-zero-gpu is already the newest version (1.3.29735.27-914~24.04).
libze1 is already the newest version (1.17.44.0-1022~24.04).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.


>Then, please try the code below and see if GPU is detected:

>import openvino as ov
>core = ov.Core()
>core.available_devices
>device = "GPU"
>core.get_property(device, "FULL_DEVICE_NAME")

cfr@NUC:/local/repo$ python
Python 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:27:36) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import openvino as ov
>>> ov.__version__
'2024.6.0-17404-4c0f47d2335-releases/2024/6'
>>> core = ov.Core()
>>> core.available_devices
['CPU']
>>> device = "GPU"
>>> core.get_property(device, "FULL_DEVICE_NAME")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Exception from src/inference/src/cpp/core.cpp:214:
Check '!m_device_map.empty()' failed at src/plugins/intel_gpu/src/plugin/plugin.cpp:419:
[GPU] Can't get FULL_DEVICE_NAME property as no supported devices found or an error happened during devices query.
[GPU] Please check OpenVINO documentation for GPU drivers setup guide.

 

It feels like maybe I missed a step, but I've tried to follow the directions per:

https://docs.openvino.ai/2024/get-started/configurations/configurations-intel-gpu.html#linux
https://dgpu-docs.intel.com/driver/client/overview.html#installing-client-gpus

 

With the holidays coming up I may have limited chance to access things so if I don't respond right away it _doesn't_ mean I've solved the problem. ;^)

0 Kudos
Aznie_Intel
Moderator
1,113 Views

 

Hi CFR,

 

Can you download and install the latest deb package 24.45.31740.9 version.

Please also refer to Driver Issues Troubleshooting to check and troubleshoot with the GPU driver.

 

 

Regards,

Aznie


0 Kudos
CFR
New Contributor II
827 Views

I tried the latest version and it didn't seem to make any difference.  OpenVINO doesn't see the GPU though clinfo and pytorch-xpu seem to.  I went through the troubleshooting page and checked what I could but didn't see anything that fixed things.

 

I tried to look through the OpenVINO source to find some way to see how it tries to recognize the GPU and why that might be failing, but I haven't found the right code yet.  I did notice that "Core" has a register_plugin function but it's unclear what arguments I should use to see if I can explicitly use the GPU plugin.

 

Beyond that it looks like my two options are 1) reinstall the OS and install OpenVINO first to see if that works. 2) dig into the OpenVINO source and maybe build a debug version that I can poke to see where the GPU fails to be recognized.  Not sure which I'll do.

 

It may be a while till I get some results, so if you want to close this go ahead.  I will post a followup when I do get things working (just in case someone else runs into the same problem).

0 Kudos
Aznie_Intel
Moderator
782 Views

Hi CFR,

 

Thank you for your patience.

Please try reinstalling OpenVINO and check if the issue persists. If the problem continues, feel free to open a new ticket, as this thread will no longer be monitored.

 

If you require any additional information from Intel, kindly submit a new question.

We appreciate your understanding and are here to help if needed!

 

 

Regards,

Aznie


0 Kudos
Reply