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.

nVidia drivers + OpenCL issue

See original GitHub issue

Apparently the recent nVidia drivers (version 410+) have an OpenCL update that seems to be causing Magick to fail.

I’ve tried it with 7.7 and 7.6.0.1 on several computers (including end-users) and the common factor in all of them is the nvidia driver update.

In code, it hangs the thread as soon as we get to any OpenCL-friendly method. If no OpenCL methods have been used, it gets stuck on Dispose() or at the end of the using statement. It happens in using statements for GetPixelsUnsafe() as well. Same pattern - dead on dispose.

Please let me know if I can provide any additional info.

Am using Magick.NET-Q16-HDRI-x64-OpenMP.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dlemstracommented, Sep 21, 2018

Earlier this year we disabled NVIDIA devices by default for OpenCL due to a lot of reports about access violations: https://github.com/ImageMagick/ImageMagick/commit/506256cdb5e48435570bbcae81eb8d17de1f7b9f. But it looks like I made a mistake. Just pushed a patch to resolve this: https://github.com/ImageMagick/ImageMagick/commit/9c43e2af2a9ce851afdd27577282838c34bbc6c1. Working on a new release right now so a fix should be available very soon.

0reactions
daxpandhicommented, Nov 29, 2018

Haven’t been able to get any new useful info on this as we had to freeze the code for release soon. For safety’s sake, we now force OpenCL off on initialization. I’ll close this issue. If I find meaningful data in the future will reopen it. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Build 10074 OpenCL.DLL
Apparently nvidia driver has the problem, not to put the OpenCL well as after them manually opened my mind, GPU Cap, but in...
Read more >
opencl.dll missing! - CUDA Programming and Performance
i have recently bought a new laptop wit Nvidia GeForce GT 330M CUDA 1GB gpu. After visiting the nvidia wbsite i came to...
Read more >
Open Computing Language OpenCL | NVIDIA Developer
A simple test application that demonstrates a new CUDA 4.0 driver ability to embed PTX in a OpenCL kernel. Download - Windows (x86)...
Read more >
Driver crashs while OpenCL app is running
Hello,. I have a strange problem. My Video Driver crashes while my OpenCL application is running. I tried many different drivers (197.45, ...
Read more >
opencl apparently broken in latest nvidia-driver on Debian ...
This is tested and produces identical results on 4.2.0 and 4.2.1. Hope for some directions for a way to fix this annoyance: darktable ......
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