BlendLuxCore icon indicating copy to clipboard operation
BlendLuxCore copied to clipboard

ERROR: OpenCL driver API error (code: -1, file:/home/vsts/work/1/s/LinuxCompile/ LuxCore/src/luxrays/devices/ocldevice.cpp, line: 89): CL_DEVICE_NOT_FOUND

Open emily9the9strange opened this issue 4 years ago • 12 comments

I am using luxcore v2.5 on Blender 9.92 The installation and enabeling of the addon worked fine via terminal on ArchLinux. Starting a rendering via Terminal it says it finds two openCL Platforms. Two seconds later it says it cannot find anything (the CL_DEVICE is not found) On the one hand I do only want to render with CPU and would not need any CL devices. Yet I cannot suppress the CL Device Compiling. On the other hand I have read online that this problem was solved for v2.5 but I still got this error Message.

emily9the9strange avatar Apr 06 '21 16:04 emily9the9strange

You may have read about a different error (i.e. -1001 => CL_PLATFORM_NOT_FOUND_KHR). Your error is different and it looks like you have valid OpenCL platform available but it returns an error when I ask for the list of devices available. It sounds like a broken Platform installation. Do you have PoCL or something like that ? Can you post here the log output with the list of platforms available.

I would simple remove the broken platform to solve your problem (check your '/etc/OpenCL' directory and installed packages).

Dade916 avatar Apr 07 '21 13:04 Dade916

I'm not entirely sure about ArchLinux but In generic Linux there is always a dummy OpenCL device from Mesa and you need to disable it. That is easy enough to do.

ls /etc/OpenCL/vendors/

If you see a file called mesa.icd

then rename it to something like mesa.icd.old

(you need root privs) and then you should retry Luxcore. That's what I had to do to get Luxcore setting my nvidia device as an OpenCL device for testing.

BTW are you using an NVidia or AMD GPU?

mroy-mmc avatar Apr 08 '21 20:04 mroy-mmc

For me, this was an issue when running Blender from a flatpak installation. Running blender from an extracted instance in its own folder seems to fix this issue.

ebutts531 avatar Apr 25 '21 17:04 ebutts531

I'm not entirely sure about ArchLinux but In generic Linux there is always a dummy OpenCL device from Mesa and you need to disable it. That is easy enough to do.

ls /etc/OpenCL/vendors/

If you see a file called mesa.icd

then rename it to something like mesa.icd.old

(you need root privs) and then you should retry Luxcore. That's what I had to do to get Luxcore setting my nvidia device as an OpenCL device for testing.

BTW are you using an NVidia or AMD GPU?

This worked for me.

declarationperfume avatar Jun 24 '21 04:06 declarationperfume