Thread 'I can't get Intel HD Graphics 4000 to work on Ubuntu 18.04'

Message boards : GPUs : I can't get Intel HD Graphics 4000 to work on Ubuntu 18.04
Message board moderation

To post messages, you must log in.

AuthorMessage
Bill
Avatar

Send message
Joined: 13 Jun 17
Posts: 91
United States
Message 98107 - Posted: 28 Apr 2020, 3:03:41 UTC

I recently have started using this computer for Boinc, running Einstein@home exclusively. It has an Intel i7-3612QM, which has integrated Intel HD Graphics 4000.

For this computer, I changed the OS to Ubuntu 18.04 and then installed boinc (Costamagnagianfranco, currently on version 7.16.6).

Anyway, Boinc is not detecting the HD Graphics 4000. The event log says "No usable GPUs found". I've done some searching online, and it appears that this Ivy Bridge chip should be recognized for GPU support, as long as OpenCL 1.2 is available (please correct me if I am wrong).

I found Intel's support for OpenCL on Linux here, and literally, I ran these lines at terminal:
sudo add-apt-repository ppa:intel-opencl/intel-opencl
sudo apt update
sudo apt install intel-opencl-icd

Still, no luck. What am I missing? I'm a casual Linux user. That is, I search online enough to get me going, so please forgive me if I ask a bunch of noob questions going forward.

Any help would be appreciated. Thanks!
ID: 98107 · Report as offensive
breakone9r

Send message
Joined: 29 Apr 20
Posts: 2
United States
Message 98144 - Posted: 29 Apr 2020, 9:18:13 UTC - in response to Message 98107.  
Last modified: 29 Apr 2020, 9:19:05 UTC

It's a possibly a permissions problem.

I had a similar issue:

In my case, I needed to add the boinc user to the render group, but I'm running OpenSUSE, so you might have to add it to a different group.

According to Intel's website:
To allow NEO access to GPU device make sure user has permissions to files /dev/dri/renderD*.
ID: 98144 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 98148 - Posted: 29 Apr 2020, 11:51:01 UTC

Does intel_gpu_top work? (Install Intel GPU tools)
If it does, OpenCL should work.

I thought a 3rd gen Intel igp was too old to run OpenCL?

But if boinc sees it, you'll have to edit your config.xml file and enable all GPUs

See here:
https://boinc.berkeley.edu/wiki/Client_configuration
ID: 98148 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5134
United Kingdom
Message 98149 - Posted: 29 Apr 2020, 12:03:39 UTC - in response to Message 98148.  

But if boinc sees it, you'll have to edit your config.xml file and enable all GPUs

See here:
https://boinc.berkeley.edu/wiki/Client_configuration
Er, no. Admittedly, that's a badly worded bit of documentation:

<use_all_gpus>0|1</use_all_gpus>
If 1, use all GPUs (otherwise only the most capable ones are used). Requires a client restart.
In fact, that rule only applies to dissimilar GPUs within each manufacter's range. The best available GPU from each manufacturer is automatically activated.
ID: 98149 · Report as offensive
Bill
Avatar

Send message
Joined: 13 Jun 17
Posts: 91
United States
Message 98308 - Posted: 3 May 2020, 18:29:24 UTC - in response to Message 98148.  

Does intel_gpu_top work? (Install Intel GPU tools)
I don't think it does. I typed that in literally, and I got this output:
(intel_gpu_top:12236) intel-mmio-CRITICAL: Test assertion failure function intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:12236) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:12236) intel-mmio-CRITICAL: Last errno: 13, Permission denied
(intel_gpu_top:12236) intel-mmio-CRITICAL: Couldn't map MMIO region
Stack trace:
  #0 [_init+0x7b87]
  #1 [_init+0x5420]
  #2 [_init+0xe85]
  #3 [__libc_start_main+0xe7]
  #4 [_init+0x1c92]
Test (null) failed.
**** DEBUG ****
(intel_gpu_top:12236) intel-chipset-DEBUG: Test requirement passed: pci_dev
(intel_gpu_top:12236) intel-mmio-CRITICAL: Test assertion failure function intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:12236) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:12236) intel-mmio-CRITICAL: Last errno: 13, Permission denied
(intel_gpu_top:12236) intel-mmio-CRITICAL: Couldn't map MMIO region
(intel_gpu_top:12236) igt-core-INFO: Stack trace:
(intel_gpu_top:12236) igt-core-INFO:   #0 [_init+0x7b87]
(intel_gpu_top:12236) igt-core-INFO:   #1 [_init+0x5420]
(intel_gpu_top:12236) igt-core-INFO:   #2 [_init+0xe85]
(intel_gpu_top:12236) igt-core-INFO:   #3 [__libc_start_main+0xe7]
(intel_gpu_top:12236) igt-core-INFO:   #4 [_init+0x1c92]
****  END  ****
FAIL (-1.000s)

I'm not sure what to do next.

According to Intel's website:

To allow NEO access to GPU device make sure user has permissions to files /dev/dri/renderD*.
I looked in /dev/dri, and there is no renderD folder.
To be clear, Boinc does not see my GPU at all, but I'm guessing by this output, Ubuntu is not seeing my GPU either (at least not more than a generic VGA driver).
ID: 98308 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 98469 - Posted: 13 May 2020, 4:47:19 UTC
Last modified: 13 May 2020, 4:48:53 UTC

If the command lspci shows the intel GPU, then it might still work.
it's an older architecture, but not all Intel IGPs are supported.

There are only a few projects supporting Intel CPUs.
You'll need to install OpenCL for Intel

See this post:
https://boinc.berkeley.edu/forum_thread.php?id=13256&postid=96195
ID: 98469 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15573
Netherlands
Message 98477 - Posted: 13 May 2020, 20:36:31 UTC - in response to Message 98469.  

There are only a few projects supporting Intel CPUs.
This statement in its present state is severely incorrect. Perhaps you meant to say Intel GPUs. Perhaps you truly meant it to differentiate with AMD CPUs. Even when one installs OpenCL for the Intel CPU the statement is incorrect.

All projects that have CPU applications support Intel CPUs, but the same code can be run on AMD CPUs.
Not all projects support GPUs, those that do, don't all support all brands and models.
No project has OpenCL applications for CPUs, but at least one has multi-threaded applications that use all cores on the CPU.
ID: 98477 · Report as offensive
Bill
Avatar

Send message
Joined: 13 Jun 17
Posts: 91
United States
Message 98535 - Posted: 16 May 2020, 1:47:08 UTC - in response to Message 98469.  

If the command lspci shows the intel GPU, then it might still work.
it's an older architecture, but not all Intel IGPs are supported.

There are only a few projects supporting Intel CPUs.
You'll need to install OpenCL for Intel

See this post:
https://boinc.berkeley.edu/forum_thread.php?id=13256&postid=96195
When I type lspci, I get:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
So, something is there...
I'm trying to install OpenCL for Intel, but either it didn't work or I didn't do it right. Any additional hand-holding on that front would be hepful.
ID: 98535 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 98655 - Posted: 19 May 2020, 18:02:19 UTC - in response to Message 98477.  
Last modified: 19 May 2020, 18:05:06 UTC

There are only a few projects supporting Intel CPUs.
This statement in its present state is severely incorrect. Perhaps you meant to say Intel GPUs. Perhaps you truly meant it to differentiate with AMD CPUs. Even when one installs OpenCL for the Intel CPU the statement is incorrect.

All projects that have CPU applications support Intel CPUs, but the same code can be run on AMD CPUs.
Not all projects support GPUs, those that do, don't all support all brands and models.
No project has OpenCL applications for CPUs, but at least one has multi-threaded applications that use all cores on the CPU.

Sorry, typo from cellphone. I meant GPU there, thanks for catching that!
OpenCL is made for GPUs.
intel made a few GPUs as well, but mainly still own integrated GPUs.
ID: 98655 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15573
Netherlands
Message 98673 - Posted: 19 May 2020, 20:27:23 UTC - in response to Message 98655.  

OpenCL is made for GPUs.
OpenCL was originally made for CPUs and GPUs, at the time it was even planned to run on SoCs in Ethernet cards, Soundcards and other add-on cards with dedicated processing power.
Apparently AMD has dropped support for OpenCL for Ryzen (at least on Windows), but Intel still has runtime drivers and apps for OpenCL on the CPU.
ID: 98673 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 98680 - Posted: 20 May 2020, 10:11:58 UTC - in response to Message 98107.  
Last modified: 20 May 2020, 10:16:07 UTC

I recently have started using this computer for Boinc, running Einstein@home exclusively. It has an Intel i7-3612QM, which has integrated Intel HD Graphics 4000.
.
As far as I know Intel’s Neo drivers (aka intel-opencl-icd) support the 8th gen onwards so you can’t use them. On such an old CPU I would install beignet-opencl-icd.

Be aware that running OpenCL tasks on the iGPU will slow down the whole CPU so you lose productivity as a result. It’s usually faster running CPU only tasks.
MarkJ
ID: 98680 · Report as offensive
ProDigit

Send message
Joined: 8 Nov 19
Posts: 718
United States
Message 98701 - Posted: 20 May 2020, 21:33:13 UTC - in response to Message 98680.  
Last modified: 20 May 2020, 21:35:43 UTC

I recently have started using this computer for Boinc, running Einstein@home exclusively. It has an Intel i7-3612QM, which has integrated Intel HD Graphics 4000.
.
As far as I know Intel’s Neo drivers (aka intel-opencl-icd) support the 8th gen onwards so you can’t use them. On such an old CPU I would install beignet-opencl-icd.

Be aware that running OpenCL tasks on the iGPU will slow down the whole CPU so you lose productivity as a result. It’s usually faster running CPU only tasks.

His CPU is about as fast as my Netbook CPU. Half a core goes to feeding the GPU (8 to 12 shaders at 600-1500Mhz, depending on the IGP specs). In most scenarios, the GPU is just as powerful as the CPU (100 Gflops)
As long as the CPU isn't overheating or throttling, enabling the GPU should give about a 75% boost in performance:
+100% boost for adding the gpu,
minus 25% for losing half a thread on the (dual core) CPU
= running at 175% performance.

In his case a little less as his CPU has 8threads instead of 4.
ID: 98701 · Report as offensive

Message boards : GPUs : I can't get Intel HD Graphics 4000 to work on Ubuntu 18.04

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.