-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
OpenCL driver API error (code: -1001) #422
Comments
Error "-1001" means OpenCL is not available on your platform. You should fix OpenCL support by installing appropriate drivers from AMD or NVIDIA. Try to run LuxMark to check if your OpenCL installation is working. "clinfo" command can help too. |
I'm on Intel i3 and I use the 'ocl-icd-libopencl1' ICD loader driver. When I uninstall the 'ocl-icd-libopencl1', BlenderLuxCore works fine but I have to install it via snap because the removal of 'ocl-icd-libopencl1' also removes the blender package along side a bunch of other packages like ffmpeg, gimp, vlc, ... and a lot more, about ~1.5 GB of packages that depend on it. But when the 'ocl-icd-libopencl1' is installed, even the blender installed via snap shows the same message. |
I'm starting to understand the problem: LuxCore detects OpenCL but than no available platform is found (and this is quit a uncommon case). As simple workaround, you could install Intel OpenCL CPU driver (note: CPU, not GPU). It will add an OpenCL CPU device to your installation, it will still useless for rendering but it will workaround this problem. In the mean time, I can fix this situation in the under development v2.5. |
I installed the 'pocl-opencl-icd' package and the issue is solved. @Dade916 thank you for your guidelines. |
…ICD platform has been found (issue #422)
I should have fixed this case in v2.5. |
.blend file:
Steps to reproduce:
Screenshots or rendered images:
Error message from Blender console: Traceback (most recent call last):
File "/home/romeo/.config/blender/2.83/scripts/addons/BlendLuxCore/handlers/load_post.py", line 59, in handler
updated = scene.luxcore.devices.update_devices_if_necessary()
File "/home/romeo/.config/blender/2.83/scripts/addons/BlendLuxCore/properties/devices.py", line 41, in update_devices_if_necessary
device_props = self.get_device_props()
File "/home/romeo/.config/blender/2.83/scripts/addons/BlendLuxCore/properties/devices.py", line 99, in get_device_props
return pyluxcore.GetOpenCLDeviceDescs()
RuntimeError: OpenCL driver API error (code: -1001, file:/home/vsts/work/1/s/LinuxCompile/LuxCore/src/luxrays/devices/ocldevice.cpp, line: 72): -1001
OS: UbuntuStudio 20.04
Blender version: 2.83
LuxCore version: 2.4
The text was updated successfully, but these errors were encountered: