ClBuildProgram with Alpha 3

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
User avatar
rrubberr
Posts: 37
Joined: Sun Mar 25, 2018 5:21 am
Location: California
Contact:

ClBuildProgram with Alpha 3

Post by rrubberr »

Since upgrading to 2.1 Alpha3 I have not been able to successfully run a render. I have been getting the error ClBuildProgram when rendering on CPU, GPU, or both. I also get this error if I compile directly after freshly cloning the repositories.
Capture.PNG
Any ideas on how to fix this?
Calling all Linux users: check out the new LuxRender 1.7 Flatpak! https://github.com/rrubberr/Flatpak-LuxRender
Light transport enthusiast - www.rrubberr.com
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: ClBuildProgram with Alpha 3

Post by FarbigeWelt »

How did you update and from which version?
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: ClBuildProgram with Alpha 3

Post by Dade »

rrubberr wrote: Thu Aug 23, 2018 12:59 am Any ideas on how to fix this?
It looks like a problem compiling one (of the very small) OpenCL kernels used by the image pipeline (so it happens with any rendering engine). It happens only to you so it is likely to be something specific of your platform. As first step, you should check if your OpenCL driver is still working by running LuxMark. Sometime, a driver update can break an installation.

Do you have also any other GPU aside from the GTX 1080 ? Like a Intel HD4000 on a laptop (i.e. a GPU known to be unable to run some complex OpenCL kernel).

As workaround, you could disable the OpenCL image pipeline and use the CPU version but I don't know if this option is exposed in Blender :?:
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ClBuildProgram with Alpha 3

Post by B.Y.O.B. »

Dade wrote: Thu Aug 23, 2018 1:17 pm As workaround, you could disable the OpenCL image pipeline and use the CPU version but I don't know if this option is exposed in Blender
It was implemented after the v2.1alpha3 release. But if I understand rrubberr correctly, he compiled from the latest sources, so he should have the option.
It was this commit: https://github.com/LuxCoreRender/BlendL ... 6d468f8df2
https://github.com/LuxCoreRender/BlendL ... 3...master
You can find the checkbox in the camera properties, imagepipeline panel.
User avatar
rrubberr
Posts: 37
Joined: Sun Mar 25, 2018 5:21 am
Location: California
Contact:

Re: ClBuildProgram with Alpha 3

Post by rrubberr »

Dade wrote: Thu Aug 23, 2018 1:17 pm
rrubberr wrote: Thu Aug 23, 2018 12:59 am Any ideas on how to fix this?
Do you have also any other GPU aside from the GTX 1080 ? Like a Intel HD4000 on a laptop (i.e. a GPU known to be unable to run some complex OpenCL kernel).

I can confirm that it does not work with Nvidia OpenCL, OpenCL on my Xeons, or OpenCL on my Vega FE card (AMD drives).
Calling all Linux users: check out the new LuxRender 1.7 Flatpak! https://github.com/rrubberr/Flatpak-LuxRender
Light transport enthusiast - www.rrubberr.com
User avatar
rrubberr
Posts: 37
Joined: Sun Mar 25, 2018 5:21 am
Location: California
Contact:

Re: ClBuildProgram with Alpha 3

Post by rrubberr »

B.Y.O.B. wrote: Thu Aug 23, 2018 1:25 pm
Dade wrote: Thu Aug 23, 2018 1:17 pm As workaround, you could disable the OpenCL image pipeline and use the CPU version but I don't know if this option is exposed in Blender
It was implemented after the v2.1alpha3 release. But if I understand rrubberr correctly, he compiled from the latest sources, so he should have the option.
It was this commit: https://github.com/LuxCoreRender/BlendL ... 6d468f8df2
https://github.com/LuxCoreRender/BlendL ... 3...master
You can find the checkbox in the camera properties, imagepipeline panel.
I have just done a fresh compile, so I'm sure I do have that option, but while that is a workaround you can't beat the speed of Lux OpenCL rendering :P
Last edited by rrubberr on Thu Aug 23, 2018 10:44 pm, edited 1 time in total.
Calling all Linux users: check out the new LuxRender 1.7 Flatpak! https://github.com/rrubberr/Flatpak-LuxRender
Light transport enthusiast - www.rrubberr.com
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ClBuildProgram with Alpha 3

Post by B.Y.O.B. »

rrubberr wrote: Thu Aug 23, 2018 8:25 pm but while that is a workaround you can't beet the speed of Lux OpenCL rendering
We are only talking about the imagepipeline processing (taking the raw film and applying all imagepipeline plugins like tonemapping, bloom, vignette etc.).
You can still render with the OpenCL engines, the option only forces to use the CPU for the imagepipeline because that is apparently what's throwing the error in your case.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: ClBuildProgram with Alpha 3

Post by Dade »

rrubberr wrote: Thu Aug 23, 2018 8:24 pm
Dade wrote: Thu Aug 23, 2018 1:17 pm
rrubberr wrote: Thu Aug 23, 2018 12:59 am Any ideas on how to fix this?
Do you have also any other GPU aside from the GTX 1080 ? Like a Intel HD4000 on a laptop (i.e. a GPU known to be unable to run some complex OpenCL kernel).

I can confirm that it does not work with Nvidia OpenCL, OpenCL on my Xeons, or OpenCL on my Vega FE card (AMD drives).
But are you using the v2.1alpha3 available in this forum or binaries compiled from the latest sources ? There has been some not trivial change in OpenCL code in the latest sources.
Support LuxCoreRender project with salts and bounties
User avatar
rrubberr
Posts: 37
Joined: Sun Mar 25, 2018 5:21 am
Location: California
Contact:

Re: ClBuildProgram with Alpha 3

Post by rrubberr »

Dade wrote: Thu Aug 23, 2018 10:48 pm
rrubberr wrote: Thu Aug 23, 2018 8:24 pm
Dade wrote: Thu Aug 23, 2018 1:17 pm
Do you have also any other GPU aside from the GTX 1080 ? Like a Intel HD4000 on a laptop (i.e. a GPU known to be unable to run some complex OpenCL kernel).

I can confirm that it does not work with Nvidia OpenCL, OpenCL on my Xeons, or OpenCL on my Vega FE card (AMD drives).
But are you using the v2.1alpha3 available in this forum or binaries compiled from the latest sources ? There has been some not trivial change in OpenCL code in the latest sources.
I have just run another compile (about 10 minutes ago), and I'm starting to think it's just a slightly broken OpenCL driver, because while Luxmark works, the Julia4d OpenCL test in MSI Kombustor also has errors. I will try reinstalling and report back.

*UPDATE*

Nope, I get the same error with a different, clean-installed driver version as well, perhaps it is an issue on Nvidia's end, though.
Calling all Linux users: check out the new LuxRender 1.7 Flatpak! https://github.com/rrubberr/Flatpak-LuxRender
Light transport enthusiast - www.rrubberr.com
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: ClBuildProgram with Alpha 3

Post by Dade »

If you install the v2.1alpha3 available here: viewtopic.php?f=9&t=538

Do you get the same error ?
Support LuxCoreRender project with salts and bounties
Post Reply