Skip to content
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

Closed
dadaromeo opened this issue Jul 30, 2020 · 5 comments
Closed

OpenCL driver API error (code: -1001) #422

dadaromeo opened this issue Jul 30, 2020 · 5 comments
Assignees
Labels

Comments

@dadaromeo
Copy link

dadaromeo commented Jul 30, 2020

.blend file:

Steps to reproduce:

Screenshots or rendered images:
Screenshot_2020-07-30_14-12-51

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

@Dade916 Dade916 self-assigned this Jul 30, 2020
@Dade916
Copy link
Member

Dade916 commented Jul 30, 2020

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.

@dadaromeo
Copy link
Author

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.

@Dade916
Copy link
Member

Dade916 commented Jul 30, 2020

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.

@dadaromeo
Copy link
Author

I installed the 'pocl-opencl-icd' package and the issue is solved. @Dade916 thank you for your guidelines.

@Dade916 Dade916 transferred this issue from LuxCoreRender/BlendLuxCore Aug 2, 2020
Dade916 added a commit that referenced this issue Aug 2, 2020
@Dade916 Dade916 added the bug label Aug 2, 2020
@Dade916
Copy link
Member

Dade916 commented Aug 2, 2020

I should have fixed this case in v2.5.

@Dade916 Dade916 closed this as completed Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants