Davinci resolve ошибка dll opencl

  • Login
  • Register
  • FAQ
  • Search
  • It is currently Wed Jun 21, 2023 7:12 pm
  • Print view

Davinci wont start ( missing OpenCL.dll) SOLVED

  • Message

PostWed Oct 07, 2020 1:10 pm

Hello,

Today Davinci resolve 16 is not starting because i get a message that it can’t find OpenCL.dll
The window message also suggest to reinstall Davinci ( it may help to fix the problem).
But if i want to reinstall i need first to uninstall.
My question is the following:
what it will happen with the Database ?
what it will happen with all the project ?

There is a way to backup all project without Davinci ?

thanks
looking forward for some help.
————————————-
Solved, i went to the Video card producer website and download the lasts and new Drivers.
Reboot computer and Davinci started without any problem

Thanks
@ Steve Alexander
@ jamedia

Last edited by Marco Quaglia Faccio on Fri Oct 09, 2020 6:24 am, edited 1 time in total.

Resolve Studio 17 | Fusion Studio 17 | Win 10 Enterprise (64-bit) |
X99-A II | i7-6800K CPU @ 3.40GHz | Memory 32GB
NVIDIA GeForce GTX 1080 | Samsung SSD 970 EVO Plus 500GB | CT240BX500SSD1 | WDC WD30EFRX-68EUZN0

PostWed Oct 07, 2020 1:14 pm

If you are running under Windows 10, you might try re-installing your graphics card driver (sometimes a Windows update will remove OpenCL.dll, I believe).

Uninstalling Resolve will not affect your database or projects.

Time Traveller
Resolve Studio 18.5b3 | Fusion Studio 18.5b3 | Win 11 Pro (22H2) | i9-7940x, P4000 (517.40, 8GB VRAM), 64GB RAM, M.2 boot, SSD scratch, RAID10 data | (laptop) 16″ MacBook Pro M1 MAX, 32 GPU cores, 64 GB RAM, 2 TB SSD, Ventura 13.4

User avatar

jamedia

  • Website
  • LinkedIn
  • Facebook
  • Twitter
  • Posts: 945
  • Joined: Sun Apr 14, 2019 7:21 pm
  • Location: Birmingham UK
  • Real Name: Chris Hills

PostWed Oct 07, 2020 4:47 pm

Steve Alexander wrote:If you are running under Windows 10, you might try re-installing your graphics card driver (sometimes a Windows update will remove OpenCL.dll, I believe).

I have had exactly the same problem with Resolve 16.2.7 and CUDA with my graphics card. Going to the manufacturers web site for the latest driver seems to the the way to go rather than a Win10 check for updates.
Win 10 update said I was up to date. Not so on the Nvida web site. Installed new driver and all was well.

www.JAmedia.uk
[AMD Ryzen 5950X 16 Core CPU | 128GB Ram | NVIDIA 3080TI 12GB ]
[MB ASUS ProArt B550| C Drive:; 1TB M2 980 Pro | D Drive; 2TB M2 970 EVO ]
[ Win 10 home |Resolve Studio V18 | Speed Editor via USB | Scarlett 2i2 3rd Gen| ]

Kors_Paap

  • Posts: 1
  • Joined: Mon Oct 12, 2020 5:33 pm
  • Real Name: Kors Paap

PostMon Oct 12, 2020 6:08 pm

My computer (PC Medion Akoya P62020 MD3400, systeem Windows 10 Home 64-bit Version 2004, Processor Intel Core i5 8400 @ 2.80GHz Coffee Lake 14nm Technologie, Motherboard MEDION B360H4-EM (U3E1), Graphic card Intel UHD Graphics 630 (Elitegroup) has had a windows 10 update last week. Afther that, Davinci Resolve 16 version 16.2.7.01 came up with the OpenCL-error. And because the Windowsupdate has cleared al the restorepoints, I could not fall back quickly to the settings before the update.
The Medion-supportsite for graphic drivers show me that there were now new drivers for my 3-year old computer.
But the Intel Driver and Support Assistent told me that there was indeed a new driver for my graphic (inboard) card, but warned me that there could be a problem that updating the graphic card with the Inteldriver could overruled some settings that Medion had implemented in their OEM computer. But desperated to use Davinci Resolve because of my projects that I couldn’t work on, I did indeed an upgrade with the Intel Driver and Support Assistent, and afther that Davinci Resolve 16 worked again at full speed.
Pfffff. Lucky me.
I make this replay for maybe someone else who has a Medioncomputer with this problem.
Its my first replay on this forum, so I hope this was the good way to make a note, otherwise the moderator will put it in another subject?

PC Medion Akoya P62020 MD3400, systeem Windows 10 Home 64-bit Version 2004, Processor Intel Core i5 8400 @ 2.80GHz Coffee Lake 14nm Technologie, Motherboard MEDION B360H4-EM (U3E1), Graphic card Intel UHD Graphics 630 (Elitegroup)


Return to DaVinci Resolve

Who is online

Users browsing this forum: Daniel Batinic, Google [Bot], Harold Tomlinson, indigogo, kenjohanson, mpetech and 90 guests

Loading up DaVinci Resolve only to be met with an error stating that there’s no OpenCL GPU? This might be a harsh thing to know, but it might potentially be time to upgrade.

OpenCL is the alternative to NVIDIA’s CUDA, a system designed to support other graphics cards from AMD or Intel.

NVIDIA cards can do OpenCL, but it’s always just best to choose CUDA.

OpenCL is a framework developed and maintained by Khronos Group. It’s intended for use in multiple applications to use the computing power available in a graphics card.

Most commonly, it’s found in various video and graphics software, or 3D programs like Blender.

NVIDIA’s CUDA is simply an alternative, but the proprietary version of it with its own benefits.

But what do you do if you see DaVinci Resolve to throw up an error about not finding a card?

DaVinci Resolve requires OpenCL 1.2 minimum, meaning that if you don’t have hardware that’s from at least 2012, you’re probably out of luck.

The earliest date and hardware that supported OpenCL 1.2 is AMD’s A-5 Series APUs from 2012, which, if you do still run these and are currently trying to load up Resolve, please just stop and look at our specifications page for our recommendations for whole upgrades.

This is the main issue with a lot of hardware that is currently trying to load up Resolve. Just because it’s free, a lot of people assume it’s going to be easy to run and that’s far from the truth.

Though, what happens if you have a compatible system? Here are some steps to take:

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Open

BlohoJo opened this issue

Feb 11, 2022

· 26 comments

Comments

@BlohoJo

Using MESA 21.3.5 MSVC.

Trying to use DaVinci Resolve 15 on GPU-less workstation, it uses either CUDA or OpenCL.

It starts and gives expected «Can’t find OpenCL GPU» message when run.

I copied all dll files from mesa3d-21.3.5-release-msvcx64 into Resolve directory.

Now when Resolve 15 is started, it says, "The procedure entry point clCreateFromGLBuffer could not be located in the dynamic link library OpenCL.dll."

Just to experiment, I renamed OpenCL.dll to OpenCL.dll.bak and MesaOpenCL.dll to OpenCL.dll. Now, it gives the message, "The procedure entry point clEnqueueBarrier could not be located in the dynamic link library OpenCL.dll."

Are there some environment variables I might be missing, or other files I’m maybe missing from other packages somewhere? I tried putting in vulkan-1.dll from VulkanRT-1.2.198.1-Componentsx64 but it made no difference.

Also, the message still comes up if ONLY OpenCL.dll and/or MesaOpenCL.dll is in the application directory.

I tried 22.0.0-rc1 and it had no effect on the above.

@BlohoJo

@BlohoJo

I guess I do need the above runtime, because otherwise there is no opencl.dll in the Windows system directories. I tried the other Intel OpenCL installer, but that appears to be for Intel CPU’s with onboard Graphics. The OpenCL test/benchmark program ViennaCLBench fails to run with that, but runs with the runtime that I linked in the post above this one.

The MESA docs say that it should be completely overriding all OpenCL calls anyway. I can’t test MESA with ViennaCLBench because it’s a 32 bit program, and the x86 builds of clover have failed so far in MESA. ;)

Here’s Resolve 15.3.1 free/trial if you want to test it.

@pal1000

Just to experiment, I renamed OpenCL.dll to OpenCL.dll.bak and MesaOpenCL.dll to OpenCL.dll.

That’s a bad idea because MesaOpenCL.dll is an ICD that needs to be loaded by official Khronos OpenCL runtime.

You can register MesaOpenCL.dll with Khronos OpenCL runtime by adding it in registry like this
register-MesaOpenCL
Don’t forget to remove Mesa DLLs from program folder otherwise it won’t pick it up.

@BlohoJo

Hey! Thanks for the reply! :)

Unfortunately, I couldn’t get it to work. Resolve now starts like there is no OpenCL on the system, and gives the message, «»DaVinci Resolve could not find any OpenCL capable GPUs.»

What files should not be in the program directory?

Here’s what I’ve got so far:

Made directory C:Program FilesMESA

Copied in the following:

MesaOpenCL.dll
OpenCL.dll
clon12compiler.dll
pipe_swrast.dll

Created Dword32 entry C:Program FilesMESAMesaOpenCL.dll under key HKEY_LOCAL_MACHINESOFTWAREKhronosOpenCLVendors, set to 0. Like your screenshot I also have an entry for intelocl64.dll.

In the Resolve application directory, I have:

libgallium_wgl.dll
libglapi.dll
opengl32.dll
vulkan-1.dll

All MESA files from 21.3.5 MSVC release. Vulkan-1.dll from VulkanRT-1.2.198.1-Components.zip.

I checked resolve.exe with x64dbg and created a log file. Looking at the file, I can see that it loads all four MESA OpenGL files listed above from the application directory. It doesn’t load opengl32.dll from the Windows System directory.

With OpenCL, it loads:

C:WindowsSystem32OpenCL.dll
C:Program Files (x86)Common FilesIntelOpenCLwindowscompilerlibintel64_winintelocl64.dll
C:Program Files (x86)Common FilesIntelOpenCLwindowscompilerlibintel64_wintask_executor64.dll
C:Program Files (x86)Common FilesIntelOpenCLwindowscompilerlibintel64_wincpu_device64.dll
C:Program FilesMESAMesaOpenCL.dll

That’s everything I noticed. MesaOpenCL.dll does throw numerous exceptions in the log file.

Here’s the entire x64dbg log file: https://pastebin.com/bWPY9aaW

Resolve does appear to be looking for a hardware GPU, so maybe it just simply won’t work with MESA. Or it could be something stupid like a file needing to be named something specific. I remember when I was trying to get Topaz applications to run with MESA and had just about given up, thinking it wasn’t possible, and I have no idea what made me think to try this, but I made a second copy of MESA’s opengl32.dll in the application directory and named it opengl32sw.dll, and that actually worked. I was shocked when I saw the application run. I discovered that it would only work if both opengl32.dll (MESA) and opengl32sw.dll (duplicate copy of MESA opengl32.dll) were present in the application directory. Delete one, and it no longer works. There was NOTHING from looking at any debugger, logs, or otherwise to lead anyone to think that that would be what makes it work. So it’s possible there’s something like that going on here. (I have no idea, just guessing.)

@pal1000

Copy libgallium_wgl.dll and libglapi.dll in C:Program FilesMESA and then remove those 4 files from Dvinci Resolve folder. If this still doesn’t work we are kind of screwed.

@BlohoJo

It didn’t work. Oh well, thanks for trying! :

It gives this error:

error01

If I click «Update Configuration» it shows this:

error02

I believe that’s the problem. It should list an entry in there for the «GPU» which is the Intel CPU runtime for OpenCL, like it shows here in ViennaCLBench:

error03

I mean, MESA shouldn’t really be necessary, since the Intel drivers I have installed are supposed to be a complete software rendering runtime. So it must mean Resolve 15 is coded in such a way as to need to see a physical GPU card. The reason I tried at all is that I’ve heard of people running Resolve 15 on Linux using MESA, so I thought it should work for Windows, since OpenCL is now part of the Windows build here (at least for x64 so far). It must be that the Linux version of Resolve is coded without the limitation of needing a physical GPU. I suppose I could try older versions of Resolve, but I think I’ve spent too much time on this so far!

Thanks again for the replies. :)

@BlohoJo

I tried running this:

http://wiki.luxcorerender.org/LuxMark_v3
https://github.com/LuxCoreRender/LuxMark/releases/download/luxmark_v3.1/luxmark-windows64-v3.1.zip

It crashed.

I then removed the registry entry of C:Program FilesMESAMesaOpenCL.dll under key HKEY_LOCAL_MACHINESOFTWAREKhronosOpenCLVendors.

After doing that, LuxMark now runs.

So I guess Resolve is hard coded not to use a software renderer for OpenCL.

LuxMark should work with the MESA version of OpenCL though, shouldn’t it?

 
 
Here’s the x64dbg log of the LuxMark crash with the MESA registry key in place (it loops endlessly at the end):
https://pastebin.com/dYwcbBP6

Faulting application name: luxmark.exe, version: 0.0.0.0, time stamp: 0x55e59579
Faulting module name: MSVCR120.dll, version: 12.0.40660.0, time stamp: 0x577e0cc7
Exception code: 0x40000015
Fault offset: 0x00000000000748a6
Faulting process id: 0x4220
Faulting application start time: 0x01d81fb22e7f7654
Faulting application path: E:luxmark-windows64-v3.1LuxMark-v3.1luxmark.exe
Faulting module path: C:Windowssystem32MSVCR120.dll
Report Id: 6d10ad07-8ba5-11ec-a7fb-0050560334cc

luxmark_nocrash

 
 
Oh s**t, I probably should have mentioned this is Windows Server 2008 R2 (equivalent to Windows 7). MESA isn’t now Windows 10/11 only, is it?

@pal1000

So it must mean Resolve 15 is coded in such a way as to need to see a physical GPU card.

Precisely, it demands a CL GPU type device, see pal1000/save-legacy-intel-graphics#4.
It might work with Mesa clover (MesaOpenCL.dll) or CLonD3D12.
You don’t seam to have much luck with former and judging by this

Oh s**t, I probably should have mentioned this is Windows Server 2008 R2 (equivalent to Windows 7).

you are way bellow the requirements for latter.

I tested ViennaCLBench but it’s not relevant to this issue because it’s a 32-bit program so it can’t use Mesa clover and it also uses CL CPU type devices if available.

@pal1000

I tested LuxMark and I got the same crash you reported. CLonD3D12 crashes too but at least it let us in enough so we can disable it from right pane if we are fast enough. You should report crashes like this upstream for better visibility.

@BlohoJo

I keep trying new MESA versions, including the latest 22 r2, and so far I have not found a single thing working with OpenCL. Same crash on Luxmark, etc. The release notes seem to indicate changes and such for clover… is ANYTHING supposed to be working for OpenCL? If not, what is the point of these non working builds? Not trying to sound insulting or anything… just confused.

@pal1000

Well, clond3d12 is also available for Windows 10 and 11 and it works even without a D3D12 graphics driver by using the CPU. I may give up on clover if I keep getting reports that is so broken.

@BlohoJo

At this point I’m just trying Luxmark with new releases to see if it will start.

Still crashes with mesa3d-22.1.0-release-msvc. 😞

MESA folder contains MesaOpenCL.dll, libgallium_wgl.dll, and libglapi.dll. Registry key HKEY_LOCAL_MACHINESOFTWAREKhronosOpenCLVendors has 32 bit Dword C:Program FilesMESAMesaOpenCL.dll in it. Luxmark crashes. Delete that Dword, and it runs with Intel CPU OpenCL drivers (intelocl64.dll is in above registry key).

pal1000

added a commit
that referenced
this issue

Jun 2, 2022

@pal1000

@TherealGenius

also please notice this

The OpenCL CPU runtimes will be installed to the following directory:
C:Program Files (x86)Common FilesIntelShared Libraries

Known Issues and Limitations
A known-issue in the installer of previous version of Intel® OpenCL driver for Intel® Graphics for Windows that removes one registray key, so the OpenCL application will fail to run on Intel CPU processor.

Workaround: this issue can be fixed with the method below.

Manually update the registry key:
run «Registry Editor» program
go to
for x32
HKEY_LOCAL_MACHINESOFTWAREKhronosOpenCLVendors

for x64
HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeKhronosOpenCLVendors

add a new key with following key-value pair:

for x64
«C:Program Files (x86)Common FilesIntelShared Librariesintelocl64.dll»=dword:0
this file dont showng up at inside regedit or the folder intelocl64_emu.dll

for x32
«C:Program Files (x86)Common FilesIntelShared Librariesia32intelocl32.dll»=dword:0
«C:Program Files (x86)Common FilesIntelShared Librariesia32intelocl32_emu.dll»=dword:0

the file named C:Windowssystem32MSVCR120.dll
its from the Microsoft Visual C++ Redistributable

that file is for
Visual C++ Redistributable Packages for Visual Studio 2013

Visual Studio 2015, 2017, 2019, and 2022
docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Architecture Link
ARM64 https://aka.ms/vs/17/release/vc_redist.arm64.exe Permalink for latest supported ARM64 version
X86 https://aka.ms/vs/17/release/vc_redist.x86.exe Permalink for latest supported x86 version
X64 https://aka.ms/vs/17/release/vc_redist.x64.exe Permalink for latest supported x64 version.

                 Notes
                 The X64 Redistributable package contains both ARM64 and X64 binaries. 
                 This package makes it easy to install required Visual C++ ARM64 binaries when the X64 Redistributable is 
                 installed on an ARM64 device

also notice
The current installed version number is stored in the HKEY_LOCAL_MACHINESOFTWARE[Wow6432Node]MicrosoftVisualStudio14.0VCRuntimes{x86|x64|ARM} key.

every visual studio got it version number for the

The version number is 14.0 for Visual Studio 2015, 2017, 2019, and 2022 because the latest Redistributable is binary compatible with previous versions back to 2015

@BlohoJo

Yeah, that’s fine, I have that registry key and OpenCL for Intel CPU works fine. It’s the MESA Clover OpenCL GPU software emulation that is not working… yet. Hopefully it will, someday? :p

@BlohoJo

The upstream was closed with «Closing now that Clover’s probably going away.»

Not sure if that means that Windows will not support OpenCL at all for the future, or if Clover will be replaced with something else.

@pal1000

Not sure if that means that Windows will not support OpenCL at all for the future

Windows has CLonD3D12 driver but it may have stopped working with switch to LLVM/Clang 15.

or if Clover will be replaced with something else.

It’s being replaced by Rusticl, but this new driver doesn’t build for Windows yet.

@BlohoJo

As usual, please forgive my ignorance…

How does one go about configuring the system for openclon12 / CLonD3D12?

I tried the simple «copy all dll’s from the latest release into the application directory,» but that didn’t work for Luxmark. I tried both MSVC and MingW.

@pal1000

Using CLonD3D12 works the same way it worked with clover ICD (MesaOpenCL.dll).
CLonD3D12 ICD name is openclon12.dll.

@BlohoJo

What other files should be in the directory that contains openclon12.dll?

@pal1000

Registering OpenCL or Vulkan drivers in general doesn’t involve copying files over to program folder at all, instead it works by writing to registry or setting environment variables that point to driver full path.
I already gave you an example with registry here. Also don’t forget CLonD3D12 requires Windows 10.0.19041.488 or newer.

@BlohoJo

I understand that, what I am asking is, what files other than openclon12.dll need to be in the driver full path folder? openclon12.dll is under 2 MB so there must be other files that need to be in the driver path folder, right? 😕

@pal1000

I recommend you to just extract mesa-dist-win release package somewhere and then the paths to CLonD3D12 driver would be <path-to-mesa-dist-win>binx64openclon12.dll and <path-to-mesa-dist-win>binx86openclon12.dll respectively.

For Vulkan and OpenCL drivers you don’t have to copy any files to program directory. OpenCL ICD loader and Vulkan runtime respectively handle finding drivers’ depending DLLs for us.

To satisfy your curiosity openclon12.dll depends on dxil.dll, clon12compiler.dll and on x64 only, WinPixEventRuntime.dll.

@BlohoJo

OK, thanks very much for the clarification.

Again (sorry for so many basic questions), does the Vulcan runtime need to be in the driver path folder along with MESA, or does the Vulcan runtime go in its own driver path? (Or in the WindowsSystem32 directory)?

Remember, I’m attempting to get a MESA to run as GPU MESA, on a system that does not have a GPU, which I’m assuming should be possible in the same way that OpenGL is able to run OpenGL dependent applications on a system without a GPU (i.e., a VPS).

@pal1000

Vulkan runtime is packaged an excusable installer. Just run it as it’s unpacked in WindowsSystem32.

@BlohoJo

Hello again and Happy Holidays!

I finally had time to try openclon12.dll. It didn’t work, Luxmark still crashes, but it looks a bit different now. It appears to crash at the point where it would start drawing onscreen. Event log just shows Luxmark crashing itself (luxmark.exe), so that isn’t really useful.

Here’s what I did (Windows 10 x64 2004 final build 19041.1415):

1 — System path environment variable added C:Program FilesMESA

2 — Place all files from mesa3d-22.3.1-release-msvc.7zx64 into C:Program FilesMESA. (Also tried with mesa3d-22.3.1-release-mingw.7zx64, this had no effect.)

3 — Create zero value DWORD registry entry openclon12.dll under ComputerHKEY_LOCAL_MACHINESOFTWAREKhronosOpenCLVendors.

4 — Install Vulkan runtime VulkanRT-1.3.236.0-Installer.7z. (Also tried manually copy + pasting files from VulkanRT-1.3.236.0-Components.zip into C:WindowsSystem32 and C:WindowsSysWOW64, this had no effect.)

I think that should be everything?

So this is what happens when I try to run Luxmark:

luxmark_openclon12_crash

Unfortunately, since it crashes nearly right away, I cannot scroll down the log text on the bottom, or export it since the application is in a crashed state.

Does this require a GPU to work? The Vulkan runtime is for a GPU, and this is a system with no GPU. If it does need a GPU, then I wonder what is the point, as I thought this was supposed to be a GPU software renderer for OpenCL, unless I am misunderstanding something. (Should I be doing anything with Swiftshader?)

@pal1000

I got crash with Luxmark 3.1 and CLonD3D12 as well so it’s not just you. Try collecting a call stack (MSVC) or backtrace (MinGW). Help yourself with debug packages. Report the crash to Mesa3D CLC or CLonnD3D12 ICD depending on module crashing clon12compiler.dll or openclon12.dll respectively.

So I get this is a tad off topic but as you never get any response on anything in the Blackmagic forum I thought maybe someone here had an idea.

So of course I wanted to check out how Fusion worked in the new integration in the Resolve 15b1, but it won’t start, giving me an OpenCL error. I actually think I had the same issue with the first beta of Fusion 9 as well…

Anyone know a workaround? I checked around online and there are some stuff that might be relevant but I thought I’d check here before starting to experiment, hehe… :)

Faulting application name: Resolve.exe, version: 15.0.0.30, time stamp: 0x5acab42e
Faulting module name: OpenCL.dll, version: 2.1.1.0, time stamp: 0x59d3377a
Exception code: 0xc0000005
Fault offset: 0x0000000000001516
Faulting process id: 0x22fc
Faulting application start time: 0x01d3d052e1f79f54
Faulting application path: C:Program FilesBlackmagic DesignDaVinci ResolveResolve.exe
Faulting module path: C:Program FilesBlackmagic DesignDaVinci ResolveOpenCL.dll
Report Id: 81bc79c5-0d04-422c-ac1b-50ddaef1157d
Faulting package full name:
Faulting package-relative application ID:

Finally figured out how to get OpenCL to work on Ubuntu, and I dragged one of my mp4 files in and I get this. The video file just imports the audio channel visibly, and there is no blue video channel leaving the preview screen black.

DaVinci has detected my GPU correctly, and also seemingly in my logs here. However, I think OpenCL/Resolve is not working properly still as the video doesn’t load in.

Could this be possible because of lack of any software like video codecs or drivers or something? Has anyone else experienced this result maybe not on linux even when you drag your clips on to the timeline?

  • Davinci resolve ошибка cuda
  • Davinci resolve ошибка 702
  • Davinci resolve ошибка 209
  • David beckham is a name where is known all over the world исправить ошибку
  • Dauntless произошла ошибка при подключении к игровым серверам