Gimp-Forum.net
GIMP not utilizing NVIDIA GPU on Manjaro Linux - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Installation and usage (https://www.gimp-forum.net/Forum-Installation-and-usage)
+---- Forum: Linux and other Unixen (https://www.gimp-forum.net/Forum-Linux-and-other-Unixen)
+---- Thread: GIMP not utilizing NVIDIA GPU on Manjaro Linux (/Thread-GIMP-not-utilizing-NVIDIA-GPU-on-Manjaro-Linux)

Pages: 1 2


GIMP not utilizing NVIDIA GPU on Manjaro Linux - yascker - 04-21-2024

Hello, I'm running GIMP on the following setup:
  • OS: Manjaro Linux x86_64
  • DE: Plasma 5.27.11
  • Host: OMEN by HP Laptop 15-dc1xxx
  • Kernel: 5.15.154-1-MANJARO
  • CPU: Intel i7-9750H (12) @ 4.500GHz
  • GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630]
  • GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
  • Memory: 3296MiB / 15804MiB
I have OpenCL, OpenGL (EGL), OpenGL (GLX), Vulkan, and optimus-manager installed.

I've tested GIMP both in hybrid and NVIDIA modes with LTS 5 and 6 kernels.


When I run:

prime-run gimp
or
DRI_PRIME=1 gimp

GIMP doesn't appear in nvidia-smi, indicating that it's not utilizing the GPU.

I've enabled OpenCL with gimp --show-playground and other settings, but still no luck.


Question:

Is this a problem that can be resolved, or does GIMP only utilize the CPU and not the GPU? The issue is that GIMP has very poor performance when handling layers; it's excessively slow.

Thank you for your assistance with this.


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - Ofnuts - 04-21-2024

Works for me:
Code:
[font=monospace][color=#000000]+-----------------------------------------------------------------------------+ [/color]
| NVIDIA-SMI 470.239.06   Driver Version: 470.239.06   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro T1000        Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8     5W /  N/A |    959MiB /  3911MiB |     18%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1856      G   /usr/lib/xorg/Xorg                284MiB |
|    0   N/A  N/A      6099      G   /usr/bin/kwin_x11                  52MiB |
|    0   N/A  N/A      6139      G   /usr/bin/plasmashell               62MiB |
|    0   N/A  N/A      6294      G   ...b/thunderbird/thunderbird      162MiB |
|    0   N/A  N/A      7986      G   /usr/bin/ktorrent                  25MiB |
|    0   N/A  N/A     54300      G   /usr/lib/firefox/firefox          268MiB |
|    0   N/A  N/A     62510      G   ...eLanguageDetectionEnabled       44MiB |
|    0   N/A  N/A     65603      C   ...-dev/2.10.34/run/bin/gimp       49MiB |
+-----------------------------------------------------------------------------+

This is a  self-compiled build (hence the unusual location for the binary). So this might depend on compile options chosen by your distro maintainers. I use Kubuntu 22.04, by the way...


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - yascker - 04-21-2024

(04-21-2024, 07:01 AM)Ofnuts Wrote: Works for me:
Code:
[font=monospace][color=#000000]+-----------------------------------------------------------------------------+ [/color]
| NVIDIA-SMI 470.239.06   Driver Version: 470.239.06   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro T1000        Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8     5W /  N/A |    959MiB /  3911MiB |     18%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1856      G   /usr/lib/xorg/Xorg                284MiB |
|    0   N/A  N/A      6099      G   /usr/bin/kwin_x11                  52MiB |
|    0   N/A  N/A      6139      G   /usr/bin/plasmashell               62MiB |
|    0   N/A  N/A      6294      G   ...b/thunderbird/thunderbird      162MiB |
|    0   N/A  N/A      7986      G   /usr/bin/ktorrent                  25MiB |
|    0   N/A  N/A     54300      G   /usr/lib/firefox/firefox          268MiB |
|    0   N/A  N/A     62510      G   ...eLanguageDetectionEnabled       44MiB |
|    0   N/A  N/A     65603      C   ...-dev/2.10.34/run/bin/gimp       49MiB |
+-----------------------------------------------------------------------------+





This is a  self-compiled build (hence the unusual location for the binary). So this might depend on compile options chosen by your distro maintainers. I use Kubuntu 22.04, by the way...

[font]







Thank you for your reply. I understand that the issue might depend on the compile options chosen by the distribution maintainers. Would you be so kind as to provide me with more details about the compilation parameters you used for your GIMP version? Also, could you please let me know which kernel version you are using in Kubuntu 22.04? This could help me compare and identify any potential discrepancies that might be causing the issue.

I truly appreciate your assistance with this.
[/font]


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - Ofnuts - 04-21-2024


  1. Pretty much all default options... see attached file
  2. Kernel 5.15.0-105



RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - yascker - 04-22-2024

(04-21-2024, 05:29 PM)Ofnuts Wrote:
  1. Pretty much all default options... see attached file
  2. Kernel 5.15.0-105


Thank you very much for the file.
I compiled it and it generated both GIMP 2.10 and 2.99, but neither of them work with prime-run.

Just a reminder, I'm on Manjaro. I'll try on Ubuntu or some Debian derivative.

Thanks


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - Tas_mania - 04-23-2024

I don't know anybody that is using OpenCL with Gimp. For awhile it was an option in Preferences but when enabled it caused serious crashes. I use an app that pretty much requires OCL (Mandelbulber) and I usually check it with-
clinfo  (sudo apt install clinfo)

I'm using Gimp 2.10.36 and can't find OCL as an option. Maybe it will be in Gimp 3 but it's only for a few users. What really benefits Gimp is heaps of ram. Currently running 64Gb and this box can go to 128Gb. This Gimp will easily open 1300 frames @ 1920 X 1080px.
 I use Gimp as a support app for video effects that mostly come from G'MIC.


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - rich2005 - 04-23-2024

FWIW Recent Gimp 2.10 moved the OpenCL option to the playground.

Run Gimp from terminal using the --show-playground switch

[attachment=11734]


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - Tas_mania - 04-23-2024

Thanks Rich Smile  Sure enough added --show-playground to a Gimp appimage launcher and there it is. The other playground tools could be interesting Smile


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - rich2005 - 04-23-2024

(04-23-2024, 10:16 AM)Tas_mania Wrote: Thanks Rich Smile  Sure enough added --show-playground to a Gimp appimage launcher and there it is. The other playground tools could be interesting Smile

Could be interesting - but do not bother.

What would be very useful the n-point deformation has not worked since Gimp 2.10.8
The Seamless Clone worked a bit longer but is mostly broken now, you can not move the clone around. 
I think they were both Google Summer of Code projects and nobody around to maintain / fix them.


RE: GIMP not utilizing NVIDIA GPU on Manjaro Linux - yascker - 04-23-2024

(04-23-2024, 09:07 AM)rich2005 Wrote: FWIW Recent Gimp 2.10 moved the OpenCL option to the playground.

Run Gimp from terminal using the --show-playground switch

"I compiled GIMP 2.10 and 2.99 on Linux Mint (Ubuntu).
Now I can see it in Nvidia-SMI, but the performance is still poor.

PD:
GIMP 2.99 comes with many improvements! Does anyone know how to link layers in GIMP 2.99?"