Maniphest T60320

OpenCL Cycles Render Fail
Closed, Resolved

Assigned To
Brecht Van Lommel (brecht)
Authored By
Karthik Hebbar (deltamish)
Jan 8 2019, 3:37 PM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Karthik Hebbar (deltamish)

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).

Revisions and Commits

rC Cycles
rB Blender

Related Objects

Mentioned In
T60450: After denoising tiles rendered by GPU turn black (regression)
Mentioned Here
rB10fa3b790fb8: Fix T60450: Cycles broken GPU denoising after recent changes.

Event Timeline

Karthik Hebbar (deltamish) created this task.Jan 8 2019, 3:37 PM
Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved by committing rBb486088218f6: Fix T60320: Cycles OpenCL volume rendering error on some drivers..Jan 8 2019, 3:59 PM
Brecht Van Lommel (brecht) added a commit: rBb486088218f6: Fix T60320: Cycles OpenCL volume rendering error on some drivers..
Karthik Hebbar (deltamish) added a comment.Jan 9 2019, 5:00 PM

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

Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).Jan 9 2019, 5:01 PM

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.

Karthik Hebbar (deltamish) added a comment.Jan 11 2019, 7:22 AM
This comment was removed by Karthik Hebbar (deltamish).
Karthik Hebbar (deltamish) changed the task status from Resolved to Unknown Status.Jan 11 2019, 7:27 AM

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

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved by committing rBe5a1a9288c66: Fix T60320: Cycles OpenCL denoising filter errors on some drivers..Jan 11 2019, 11:26 AM
Brecht Van Lommel (brecht) added a commit: rBe5a1a9288c66: Fix T60320: Cycles OpenCL denoising filter errors on some drivers..
Karthik Hebbar (deltamish) added a comment.Jan 11 2019, 12:08 PM

How do I solve the issue ?

Brecht Van Lommel (brecht) added a comment.Jan 11 2019, 12:11 PM

There will be a fix in tomorrow's build from https://builder.blender.org/download/.

Karthik Hebbar (deltamish) added a comment.EditedJan 12 2019, 11:31 AM

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

Karthik Hebbar (deltamish) changed the task status from Resolved to Unknown Status.Jan 13 2019, 5:01 AM

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) changed the task status from Unknown Status to Resolved.Jan 14 2019, 12:14 PM
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.

Karthik Hebbar (deltamish) added a comment.Jan 14 2019, 6:38 PM

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

Karthik Hebbar (deltamish) added a comment.Jan 18 2019, 5:39 AM

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

Brecht Van Lommel (brecht) added a commit: rC359666e41efe: Fix T60320: Cycles OpenCL volume rendering error on some drivers..Feb 11 2019, 7:28 PM
Brecht Van Lommel (brecht) added a commit: rCe96a2e28d67a: Fix T60320: Cycles OpenCL denoising filter errors on some drivers..