question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows: opencl call failed

See original GitHub issue
Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "butterflow/__main__.py", line 12, in <module>
  File "butterflow/cli.py", line 262, in main
RuntimeError: opencl call failed

I do have the latest nVidia driver installed. I’m using Windows 10.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
excxpcommented, May 31, 2019

i think i found the problem: butterflow expects the pathname to 64bit opencl dll to be installed at: HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors

and 32bit dll at: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors

For some reason recent nvidia driver installers do not setup the regkeys. if you want to get butterflow working with latest nvidia drivers, manually installing the regkeys worked for me:

do a search in your windows folder for nvopencl64.dll and nvopencl32.dll (it should be in driverstore, use the one from your latest nvidia driver). here’s an example of the regkeys to install :

[HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors] “C:\Windows\System32\nvopencl64.dll”=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors] “C:\Windows\System32\nvopencl32.dll”=dword:00000000

3reactions
irfanfadilahcommented, Jun 7, 2019

@excxp your solution is working fine. But in my case, the location of the dll files are located at:

C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_995a8ca55addcada\nvopencl64.dll

and

C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_995a8ca55addcada\nvopencl32.dll
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix OpenCL.dll Missing or Not Found Errors
The most direct method to fix DLL file missing error is copying the missing file from another trusted resource. But you have to...
Read more >
Opencl Dll Missing Error - How To Resolve? - Silicophilic
Reasons That Trigger The OpenCL Dll Missing Error? · Fix 1: Run SFC Scan · Fix 2: Update Your Graphics Card Drivers ·...
Read more >
MISSING OPENCL.DLL ON WINDOWS10
Close the command prompt window. Re-start the program associated with opencl.dll error. Method 3:Repair Invalid Opencl.dll ...
Read more >
Fix OpenCL.dll is missing or not found error on your computer
How do I fix OpenCL.DLL missing in Windows 10? ... Among other fixes which include installing the OpenCL.dll file, updating your device drivers, ......
Read more >
openCL call error -4(263) , Can anyone please tell me how to ...
Rig one has two cards with openCL call error -4(263) ... do we need to make any special settings in windows for 8...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found