Cycles fails to compile opencl kernel #76469
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#76469
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.6.10-custom-x86_64-AMD_A8-5600K_APU_with_Radeon-tm-_HD_Graphics-with-slackware-14.2 64 Bits
Graphics card: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.36.0, 5.6.10-custom, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.2
Blender Version
Broken: version: 2.83 (sub 15), branch: master, commit date: 2020-05-05 22:28, hash:
c036ef1369
Worked: a version from couple of days ago worked fine, ver 2.82 works as well.
Short description of error
Cycles fails to compile opencl kernel.
Exact steps for others to reproduce the error
It fails on the default cube scene .
Logs
%%% ./blender --debug-cycles
Read prefs: /home/sanjuro/.config/blender/2.83/config/userpref.blend
found bundled python: /opt/applications/blender-2.83-c036ef136960-linux64/2.83/python
I0506 10:50:55.780392 2271 blender_python.cpp:191] Debug flags initialized to:
CPU flags:
CUDA flags:
OptiX flags:
OpenCL flags:
I0506 10:51:14.656942 2271 device_cuda.cpp:56] CUEW initialization failed: Error opening the library
I0506 10:51:16.374800 2271 device_opencl.cpp:48] CLEW initialization succeeded.
I0506 10:51:16.448984 2271 opencl_util.cpp:945] Enumerating devices for platform AMD Accelerated Parallel Processing.
I0506 10:51:16.449033 2271 opencl_util.cpp:981] Using more readable device name: AMD Radeon (TM) RX 480 Graphics
I0506 10:51:16.449050 2271 opencl_util.cpp:983] Adding new device AMD Radeon (TM) RX 480 Graphics.
I0506 10:51:17.432133 2271 util_task.cpp:329] Creating pool of 4 threads.
I0506 10:51:17.432173 2271 util_task.cpp:241] Detected 4 processors in active group.
I0506 10:51:17.432196 2271 util_task.cpp:251] Not setting thread group affinity.
I0506 10:51:17.433156 2271 device_opencl_impl.cpp:639] Creating new Cycles device for OpenCL platform AMD Accelerated Parallel Processing, device AMD Radeon (TM) RX 480 Graphics.
I0506 10:51:17.583458 2271 opencl_util.cpp:298] OpenCL program split_subsurface_scatter not found in cache.
I0506 10:51:17.675879 2271 opencl_util.cpp:298] OpenCL program split_subsurface_scatter not found on disk.
I0506 10:51:17.675966 2271 opencl_util.cpp:298] OpenCL program split_direct_lighting not found in cache.
I0506 10:51:17.676230 2356 opencl_util.cpp:298] OpenCL program split_subsurface_scatter not found in cache.
I0506 10:51:17.755847 2271 opencl_util.cpp:298] OpenCL program split_direct_lighting not found on disk.
I0506 10:51:17.755939 2271 opencl_util.cpp:298] OpenCL program split_indirect_background not found in cache.
I0506 10:51:17.756111 2371 opencl_util.cpp:298] OpenCL program split_direct_lighting not found in cache.
Cycles: compiling OpenCL program split_subsurface_scatter...
I0506 10:51:17.776859 2356 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
I0506 10:51:17.830255 2271 opencl_util.cpp:298] OpenCL program split_indirect_background not found on disk.
I0506 10:51:17.830617 2380 opencl_util.cpp:298] OpenCL program split_indirect_background not found in cache.
I0506 10:51:17.840534 2271 opencl_util.cpp:298] OpenCL program split_do_volume not found in cache.
Cycles: compiling OpenCL program split_direct_lighting...
I0506 10:51:17.880977 2371 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
I0506 10:51:17.938980 2271 opencl_util.cpp:298] OpenCL program split_do_volume not found on disk.
I0506 10:51:17.939067 2271 opencl_util.cpp:298] OpenCL program split_shader_eval not found in cache.
I0506 10:51:17.939131 2381 opencl_util.cpp:298] OpenCL program split_do_volume not found in cache.
I0506 10:51:18.016666 2271 opencl_util.cpp:298] OpenCL program split_shader_eval not found on disk.
I0506 10:51:18.016773 2271 opencl_util.cpp:298] OpenCL program split_lamp_emission not found in cache.
I0506 10:51:18.111045 2271 opencl_util.cpp:298] OpenCL program split_lamp_emission not found on disk.
I0506 10:51:18.111166 2271 opencl_util.cpp:298] OpenCL program split_holdout_emission_blurring_pathtermination_ao not found in cache.
I0506 10:51:18.183953 2271 opencl_util.cpp:298] OpenCL program split_holdout_emission_blurring_pathtermination_ao not found on disk.
I0506 10:51:18.184069 2271 opencl_util.cpp:298] OpenCL program split_shadow_blocked_dl not found in cache.
I0506 10:51:18.251524 2271 opencl_util.cpp:298] OpenCL program split_shadow_blocked_dl not found on disk.
I0506 10:51:18.251632 2271 opencl_util.cpp:298] OpenCL program split_shadow_blocked_ao not found in cache.
I0506 10:51:18.330969 2271 opencl_util.cpp:298] OpenCL program split_shadow_blocked_ao not found on disk.
I0506 10:51:18.331269 2271 opencl_util.cpp:298] OpenCL program split_bundle not found in cache.
I0506 10:51:18.421718 2271 opencl_util.cpp:298] OpenCL program split_bundle not found on disk.
I0506 10:51:18.422175 2271 device_opencl_impl.cpp:920] Buffer allocate: RenderBuffers, 43,206,144 bytes. (41.20M)
I0506 10:51:18.469211 2271 device_opencl_impl.cpp:920] Buffer allocate: display buffer half, 21,603,072 bytes. (20.60M)
I0506 10:51:18.936722 2440 session.cpp:803] Requested features:
Experimental features: Off
Max nodes group: 0
Nodes features: 0
Use Hair: False
Use Object Motion: False
Use Camera Motion: False
Use Baking: False
Use Subsurface: False
Use Volume: False
Use Branched Integrator: False
Use Patch Evaluation: False
Use Transparent Shadows: False
Use Principled BSDF: True
Use Denoising: False
Use Displacement: False
Use Background Light: True
I0506 10:51:18.937978 2440 device_opencl_impl.cpp:759] Loading kernels for platform AMD Accelerated Parallel Processing, device AMD Radeon (TM) RX 480 Graphics.
I0506 10:51:18.938197 2440 opencl_util.cpp:298] OpenCL program base not found in cache.
I0506 10:51:18.974778 2440 opencl_util.cpp:325] Build options passed to clBuildProgram: '-cl-no-signed-zeros -cl-mad-enable -D__KERNEL_OPENCL_AMD__ -D__KERNEL_CL_KHR_FP16__ '.
I0506 10:51:18.980587 2440 opencl_util.cpp:298] Loaded program from /home/sanjuro/.cache/cycles/kernels/cycles_kernel_base_3E07356B4B46689D30DE1E70918B033E_E853A8238BDD0E253C66384B1C685DD7.clbin.
I0506 10:51:18.980692 2440 opencl_util.cpp:298] OpenCL program background not found in cache.
I0506 10:51:19.082490 2440 opencl_util.cpp:298] OpenCL program background not found on disk.
I0506 10:51:19.082655 2440 opencl_util.cpp:298] OpenCL program split_shader_eval not found in cache.
Cycles: compiling OpenCL program split_indirect_background...
I0506 10:51:19.091385 2371 opencl_util.cpp:298] Separate-process building of /home/sanjuro/.cache/cycles/kernels/cycles_kernel_split_direct_lighting_4A526F5A1C1A408546E0B35129173E30_4A9D816F3C0CD3D5C15703F8E549BE09.clbin failed, will fall back to regular building.
I0506 10:51:19.091435 2380 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
Cycles: compiling OpenCL program split_do_volume...
I0506 10:51:19.146499 2356 opencl_util.cpp:298] Separate-process building of /home/sanjuro/.cache/cycles/kernels/cycles_kernel_split_subsurface_scatter_4A526F5A1C1A408546E0B35129173E30_3ECCEE227BE1374E6C35F161F5BA9E5B.clbin failed, will fall back to regular building.
I0506 10:51:19.146566 2381 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
Cycles: compiling OpenCL program split_direct_lighting...
I0506 10:51:19.216847 2371 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
I0506 10:51:19.216900 2371 opencl_util.cpp:325] Build options passed to clBuildProgram: '-cl-no-signed-zeros -cl-mad-enable -D__KERNEL_OPENCL_AMD__ -D__KERNEL_CL_KHR_FP16__ -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__'.
Cycles: compiling OpenCL program split_subsurface_scatter...
I0506 10:51:19.239979 2356 opencl_util.cpp:298] Build flags: -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__
I0506 10:51:19.240196 2356 opencl_util.cpp:325] Build options passed to clBuildProgram: '-cl-no-signed-zeros -cl-mad-enable -D__KERNEL_OPENCL_AMD__ -D__KERNEL_CL_KHR_FP16__ -D__SPLIT_KERNEL__ -D__COMPUTE_DEVICE_GPU__ -D__KERNEL_AO_PREVIEW__ -D__NODES_MAX_GROUP__=0 -D__NODES_FEATURES__=0 -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__ -D__NO_TRANSPARENT__ -D__NO_SHADOW_TRICKS__ -D__NO_PRINCIPLED__ -D__NO_DENOISING__ -D__NO_SHADER_RAYTRACE__'.
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_direct_lighting build output: source/kernel/svm/svm_voronoi.h:687:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:726:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:770:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:809:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:829:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:859:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
source/kernel/svm/svm_voronoi.h:880:7: error: 'opencl_unroll_hint' attribute requires OpenCL version 2.0 or above
source/kernel/kernel_compat_opencl.h:46:43: note: expanded from macro 'ccl_loop_no_unroll'
define ccl_loop_no_unroll attribute((opencl_unroll_hint(1)))
7 errors generated.
error: Clang front-end compilation failed!
Frontend phase failed compilation.
Error: Compiling CL to IR %%%
clinfo
Added subscriber: @enenra
Changed status from 'Needs Triage' to: 'Confirmed'
This issue was referenced by blender/cycles@6c5f10786a
This issue was referenced by
ed1fb242a8
Changed status from 'Confirmed' to: 'Resolved'