Enabling Compositor OpenCL Throws Bunch of warning in EXR files #70913

Closed
opened 2019-10-18 03:28:52 +02:00 by Fahad Hasan · 6 comments

System Information
Operating system: Linux-5.2.0-3-amd64-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce GTX 950/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.50

Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-16 19:56, hash: 812b30daf5
Worked: (optional)

{F7831896}
ocl error.blend

CLERROR[-11]: CL_BUILD_PROGRAM_FAILURE
<kernel>:29:32: warning: excess elements in scalar initializer
__constant const int zero = {0,0};
                               ^
<kernel>:36:34: warning: excess elements in scalar initializer
        int coords = {get_global_id(0), get_global_id(1)};
                                        ^~~~~~~~~~~~~~~~
<kernel>:39:22: warning: excess elements in scalar initializer
        float color = {0.0f,0.0f,0.0f,0.0f};
                            ^~~~
<kernel>:40:27: warning: excess elements in scalar initializer
        float multiplyer = {0.0f,0.0f,0.0f,0.0f};
                                 ^~~~
<kernel>:46:20: error: call to 'read_imagef' is ambiguous
        tempBoundingBox = read_imagef(boundingBox, SAMPLER_NEAREST, coords).s0;
                          ^~~~~~~~~~~
cl_kernel.h:18570:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord);
                        ^
cl_kernel.h:18571:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord);
                        ^
<kernel>:59:12: error: call to 'read_imagef' is ambiguous
                        color = read_imagef(inputImage, SAMPLER_NEAREST, imageCoordinates);
                                ^~~~~~~~~~~
cl_kernel.h:18570:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord);
                        ^
cl_kernel.h:18571:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord);
                        ^
<kernel>:60:15: error: assigning to '__attribute__((address_space(16776963))) float' from incompatible type 'float4'
                        multiplyer = (float4)(1.0f, 1.0f, 1.0f, 1.0f);
                                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<kernel>:63:50: error: member reference base type '__attribute__((address_space(16776963))) int' is not a structure or union
                for (ny = minXY.y, inputXy.y = ny - offsetInput.y ; ny < maxXY.y ; ny += step, inputXy.y += step) {
                                                    ~~~~~~~~~~~^~
<kernel>:64:27: error: member reference base type 'const __attribute__((address_space(16776963))) int' is not a structure or union
                        uv.y = ((realCoordinate.y-ny)/radius2)*bokehImageDim.y+bokehImageCenter.y;
                                 ~~~~~~~~~~~~~~^~
<kernel>:66:51: error: member reference base type '__attribute__((address_space(16776963))) int' is not a structure or union
                        for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx += step, inputXy.x += step) {
                                                            ~~~~~~~~~~~^~
<kernel>:67:28: error: member reference base type 'const __attribute__((address_space(16776963))) int' is not a structure or union
                                uv.x = ((realCoordinate.x-nx)/radius2)*bokehImageDim.x+bokehImageCenter.x;
                                         ~~~~~~~~~~~~~~^~
<kernel>:68:11: error: assigning to '__attribute__((address_space(16776963))) float' from incompatible type 'float4'
                                bokeh = read_imagef(bokehImage, SAMPLER_NEAREST, uv);
                                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<kernel>:69:11: error: can't convert between vector values of different size ('__attribute__((address_space(16776963))) float' and 'float __attribute__((ext_vector_type(4)))')
                                color += bokeh * read_imagef(inputImage, SAMPLER_NEAREST, inputXy);
                                ~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<kernel>:76:11: error: call to 'read_imagef' is ambiguous
                color = read_imagef(inputImage, SAMPLER_NEAREST, imageCoordinates);
                        ^~~~~~~~~~~
cl_kernel.h:18570:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord);
                        ^
cl_kernel.h:18571:25: note: candidate function
float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord);
                        ^

Exact steps for others to reproduce the error

  • Import the file attached in compositor.
  • Check OpenCL
  • Scrub timeline
  • Terminal throws the warning
**System Information** Operating system: Linux-5.2.0-3-amd64-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: GeForce GTX 950/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.50 **Blender Version** Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-16 19:56, hash: `812b30daf5` Worked: (optional) **{[F7831896](https://archive.blender.org/developer/F7831896/04_1a_00001.exr)}** [ocl error.blend](https://archive.blender.org/developer/F7831910/ocl_error.blend) ``` CLERROR[-11]: CL_BUILD_PROGRAM_FAILURE <kernel>:29:32: warning: excess elements in scalar initializer __constant const int zero = {0,0}; ^ <kernel>:36:34: warning: excess elements in scalar initializer int coords = {get_global_id(0), get_global_id(1)}; ^~~~~~~~~~~~~~~~ <kernel>:39:22: warning: excess elements in scalar initializer float color = {0.0f,0.0f,0.0f,0.0f}; ^~~~ <kernel>:40:27: warning: excess elements in scalar initializer float multiplyer = {0.0f,0.0f,0.0f,0.0f}; ^~~~ <kernel>:46:20: error: call to 'read_imagef' is ambiguous tempBoundingBox = read_imagef(boundingBox, SAMPLER_NEAREST, coords).s0; ^~~~~~~~~~~ cl_kernel.h:18570:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord); ^ cl_kernel.h:18571:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord); ^ <kernel>:59:12: error: call to 'read_imagef' is ambiguous color = read_imagef(inputImage, SAMPLER_NEAREST, imageCoordinates); ^~~~~~~~~~~ cl_kernel.h:18570:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord); ^ cl_kernel.h:18571:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord); ^ <kernel>:60:15: error: assigning to '__attribute__((address_space(16776963))) float' from incompatible type 'float4' multiplyer = (float4)(1.0f, 1.0f, 1.0f, 1.0f); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <kernel>:63:50: error: member reference base type '__attribute__((address_space(16776963))) int' is not a structure or union for (ny = minXY.y, inputXy.y = ny - offsetInput.y ; ny < maxXY.y ; ny += step, inputXy.y += step) { ~~~~~~~~~~~^~ <kernel>:64:27: error: member reference base type 'const __attribute__((address_space(16776963))) int' is not a structure or union uv.y = ((realCoordinate.y-ny)/radius2)*bokehImageDim.y+bokehImageCenter.y; ~~~~~~~~~~~~~~^~ <kernel>:66:51: error: member reference base type '__attribute__((address_space(16776963))) int' is not a structure or union for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx += step, inputXy.x += step) { ~~~~~~~~~~~^~ <kernel>:67:28: error: member reference base type 'const __attribute__((address_space(16776963))) int' is not a structure or union uv.x = ((realCoordinate.x-nx)/radius2)*bokehImageDim.x+bokehImageCenter.x; ~~~~~~~~~~~~~~^~ <kernel>:68:11: error: assigning to '__attribute__((address_space(16776963))) float' from incompatible type 'float4' bokeh = read_imagef(bokehImage, SAMPLER_NEAREST, uv); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <kernel>:69:11: error: can't convert between vector values of different size ('__attribute__((address_space(16776963))) float' and 'float __attribute__((ext_vector_type(4)))') color += bokeh * read_imagef(inputImage, SAMPLER_NEAREST, inputXy); ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <kernel>:76:11: error: call to 'read_imagef' is ambiguous color = read_imagef(inputImage, SAMPLER_NEAREST, imageCoordinates); ^~~~~~~~~~~ cl_kernel.h:18570:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, int2 coord); ^ cl_kernel.h:18571:25: note: candidate function float4 __OVERLOADABLE__ read_imagef(image2d_t image, sampler_t sampler, float2 coord); ^ ``` **Exact steps for others to reproduce the error** - Import the file attached in compositor. - Check OpenCL - Scrub timeline - Terminal throws the warning
Author

Added subscriber: @MD.FahadHassan

Added subscriber: @MD.FahadHassan

Added subscribers: @Sergey, @Jeroen-Bakker, @mano-wii

Added subscribers: @Sergey, @Jeroen-Bakker, @mano-wii
Jeroen Bakker was assigned by Germano Cavalcante 2019-10-18 17:45:15 +02:00

I can confirm.
The error messages appear as soon as you import the image.

@Jeroen-Bakker, is this your area?
Cc @Sergey

I can confirm. The error messages appear as soon as you import the image. @Jeroen-Bakker, is this your area? Cc @Sergey
Member

Steps to get these warnings are:

  • go to compositor tab
  • enable Nodes
  • enable OpenCL
  • ctrl-shift click on render node

any compositor calculation will start compiling the kernel. Seems like the kernel file has been altered and committed untested ( https://developer.blender.org/rB3302fbaeb1d5f58d926c06b6153ec5d6f1a9b0be#change-W0b3GutO79fw )

Steps to get these warnings are: * go to compositor tab * enable Nodes * enable OpenCL * ctrl-shift click on render node any compositor calculation will start compiling the kernel. Seems like the kernel file has been altered and committed untested ( https://developer.blender.org/rB3302fbaeb1d5f58d926c06b6153ec5d6f1a9b0be#change-W0b3GutO79fw )

This issue was referenced by bcac0ed977

This issue was referenced by bcac0ed977c9e2eb2610bceda4b447947c2d199d
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Thomas Dinges added this to the 2.81 milestone 2023-02-08 16:46:56 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#70913
No description provided.