Page MenuHome

OpenCL Cycles Render Fail
Closed, ResolvedPublic

Description

System Information
Operating system: Win 10
Graphics card: AMD R7 265

Blender Version
Broken:2.80 Beta
(example: 2.79b release)
(example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional)

Short description of error
Compiling OpenCL program split
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split build output: "source\kernel/kernel_volume.h", line 394: error: expression must have

  pointer-to-struct-or-union type
if(rand < pdf->x) {
          ^

"source\kernel/kernel_volume.h", line 397: error: expression must have

  pointer-to-struct-or-union type
else if(rand < pdf->x + pdf->y) {
               ^

"source\kernel/kernel_volume.h", line 397: error: expression must have

  pointer-to-struct-or-union type
else if(rand < pdf->x + pdf->y) {
                        ^

3 errors detected in the compilation of "C:\Users\Karthik\AppData\Local\Temp\OCL9568T4.cl".
Frontend phase failed compilation.

Split kernel error: failed to load kernel_path_init
Error: Split kernel error: failed to load kernel_path_init
Compiling OpenCL program split
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split build output: "source\kernel/kernel_volume.h", line 394: error: expression must have

  pointer-to-struct-or-union type
if(rand < pdf->x) {
          ^

"source\kernel/kernel_volume.h", line 397: error: expression must have

  pointer-to-struct-or-union type
else if(rand < pdf->x + pdf->y) {
               ^

"source\kernel/kernel_volume.h", line 397: error: expression must have

  pointer-to-struct-or-union type
else if(rand < pdf->x + pdf->y) {
                        ^

3 errors detected in the compilation of "C:\Users\Karthik\AppData\Local\Temp\OCL9568T4.cl".
Frontend phase failed compilation.

Split kernel error: failed to load kernel_path_init
Error: Split kernel error: failed to load kernel_path_init

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

Event Timeline

Hey, I see you have marked this issue as resolved. If you can let me.know how I cam do it in my system as I am using latest beta version of blender it will be helpful

Thanks,
Karthik

Get the latest build from here:
https://builder.blender.org/download/

If there's still a problem please post the error message, since the code here was changed.

Hey , i just tried out with the latest version Jan 11 release
And its still failing

Device init success
Compiling OpenCL program denoising
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program denoising build output: "source\kernel/filter/filter_nlm_gpu.h", line 39: error: expression must have

pointer-to-struct-or-union type

co->z = sx-r;
^

"source\kernel/filter/filter_nlm_gpu.h", line 40: error: expression must have

pointer-to-struct-or-union type

co->w = sy-r;
^

"source\kernel/filter/filter_nlm_gpu.h", line 44: error: expression must have

pointer-to-struct-or-union type

*rect = make_int4(max(0, -co->z), max(0, -co->w),

^

"source\kernel/filter/filter_nlm_gpu.h", line 44: error: expression must have

pointer-to-struct-or-union type

*rect = make_int4(max(0, -co->z), max(0, -co->w),

^

"source\kernel/filter/filter_nlm_gpu.h", line 44: error: expression must have

pointer-to-struct-or-union type

*rect = make_int4(max(0, -co->z), max(0, -co->w),

^

"source\kernel/filter/filter_nlm_gpu.h", line 44: error: expression must have

pointer-to-struct-or-union type

*rect = make_int4(max(0, -co->z), max(0, -co->w),

^

"source\kernel/filter/filter_nlm_gpu.h", line 62: error: expression must have

pointer-to-struct-or-union type

co->x = x;
^

"source\kernel/filter/filter_nlm_gpu.h", line 63: error: expression must have

pointer-to-struct-or-union type

co->y = y;
^

8 errors detected in the compilation of "C:\Users\Karthik\AppData\Local\Temp\OCL10028T1.cl".
Frontend phase failed compilation.

Error: Failed loading render kernel, see console for errors

Can you kindly check

Thanks for the amazing tool though. Beats most of the modeling suite out there

How do I solve the issue ?

Is the fix included in jan 12 build ?

Update openCL still failing with following issue
Compiling OpenCL program denoising
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program denoising build output: "source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

4 errors detected in the compilation of "C:\Users\Karthik\AppData\Local\Temp\OCL10156T1.cl".
Frontend phase failed compilation.

Error: Failed loading render kernel, see console for errors

Hope it helps

Blender 2.80 Jan 13 Build

Compiling OpenCL program denoising
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program denoising build output: "source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

"source\kernel/filter/filter_nlm_gpu.h", line 42: error: expression must have

  pointer-to-struct-or-union type
*rect = make_int4(max(0, -co->z),     max(0, -co->w),
        ^

4 errors detected in the compilation of "C:\Users\Karthik\AppData\Local\Temp\OCL6452T2.cl".
Frontend phase failed compilation.

Error: Failed loading render kernel, see console for errors

Hope it helps

Brecht Van Lommel (brecht) claimed this task.

This latest error should be solved by rB10fa3b790fb8: Fix T60450: Cycles broken GPU denoising after recent changes..

By the way, I guess you have either a quite old or very new graphics driver, because I don't get those OpenCL errors. So I'm flying blind a bit fixing these things.

Hmm That's very strange. I'm running on AMD R7 265. I tested both on 18.9.3(Nov 2018) and 19.1.1(Jan 2019) driver. both are facing same issue

Hey Downloaded the latest version of blender 17 Jan version. the Open CL issue is gone. But when I put on GPU compute bake with tile size 128X 128. My entire PC froze up and I had to turn it off manually