OpenCL with Nvidia RTX3070

Hi all.
I notice when I launch dt 4.6 that I get a message telling me that OpenCL is not enabled.
The first possible cause (according to the message) is the absence of ocl-icd, but according to my system, it IS installed.
Remaining potential issues are blocked access due to failed previous attempts to load,
buggy drivers,
power management issues,
no openCL drivers installed.

Would someone be kind enough to help me diagnose which of those is the problem, or if it might be something else, please?
I deliberately gave dt a heavy workload so I could monitor CPU and GPU usage… CPU was maxed out while GPU sat idle, so there’s defiinitely an issue.
Thanks in advance.

I would start with the output of darktable-cltest Please use Pastebin or attach a txt file.

I’m guessing you asked for pastebin or a text file because you thought the output would be large? It’s really quite short. But here’s a text file anyway. :slight_smile:
opencl.txt (977 Bytes)

I think using pastebin or attaching a log file is more polite than a long thread to scroll on the cellphone. :slight_smile:

You dont have the GPU drivers working correctly. I think you mentioned being on Manjaro. I’m not too familiar with it. A google search pointed me to this two things to try:

sudo pamac install opencl-nvidia

and also

sudo mhwd -a pci nonfree 0300

per Configure Graphics Cards - Manjaro

I hope that someone that uses Manjaro and Nvidia can give you better guidance.

g-man, thanks for the input! I’ll ty the opencl-nvidia approach for starters.

Well, looks like you nailed it g-man!
Just ran the same heavy workload in dt that I tried earlier today (which took about 5 min to complete then)… knocked it out in about 20 seconds.
Many thanks!

It sounds like you had Mint humming along …why the change to Manjaro??

Hello, If I may jump in I’m having the same problem with Nvidia RTX3060 running on Pop_OS. Open CL does not appear to be enabled. It ran fine with the previous version of DT. Mine is a flatpak version, and I have graphic acceleration enabled.
would the sudo pamac install opencl-nvidia work?
If I should open another thread I certainly can.
thanks!

sudo pamac install opencl-nvidia certainly did the job for me.

Todd, this was at the suggestion of Coding Dave.
Something to do with Mint not updating quick enough for some particular dependency (don’t remember what it was now)… something that darktable also needed, but dt insisted on a newer version than what Mint was supporting.
Dave suggested I move to Manjaro because they update stuff quicker.

Hello Bruce, this is also Bruce from patreon. I’ll give it a shot, but Pop_Os has all of its apps flatpak. darktable-cltest fails stating I do not have DT installed!

fixed it.
I installed FlatSeal from my repository. Opened the Darktable tab, enabled Graphic acceleration. Restarted the computer and it was running. One thing I like about PoP_OS is that they have a version with NVIDIA drivers installed, and they are updated on a regular basis. It’s Flatpak that gives me rare fits sometimes.
Looking forward to your 4.6 videos Bruce!

Hi again,
As discussed in the “compiling on manjaro” thread, I ran some updates today which broke darktable.
I had to recompile and reinstall.
But now, the OpenCL issue is back.
Sadly, rerunning sudo pamac install opencl-nvidia did NOT fix the issue.
Any other thoughts on how to fix this, brainstrust?

Try clearing dt’s cache.

What does dt call its cache file? I’m looking in ./config/darktable and I can see my library.db and data.db files. I don’t think we want to go deleting those! :slight_smile:

I think you find them in with the thumbs in the mipmaps folder … its in Appdata in Windows…not sure in Linux… you will see a folder you can delete them and let DT make them again…

Todd, thanks mate! Found it! And yes, that fixed the issue.
Merry Christmas one and all!

1 Like

Well done…pretty sparse instructions on my part…really glad you got sorted… Have a wonderful holiday……

Thanks mate, you too! Sorry for the late reply.
But, the issue is back… again!
I deleted the mipmaps folders which forced dt to recreate them, but that has not resolved the issue this time.
Exports are back to a snail’s pace. :frowning:

Sorry to hear that… Not being a Linux guy I don’t know the nuances of all this opencl driver trouble. On windows its just Nvidia driver and good to go…