Compiling OpenCL program base: CL_DEVICE_NOT_AVAILABLE #51442

Closed
opened 2017-05-09 11:08:51 +02:00 by Roel Koster · 10 comments
Member

System Information
OSX iMac 5k AMD R9 M395X

Blender Version
Broken: after commit bca6978

I've compile/built blender with the GIT SHA revisions mentioned below.. the OpenCL compiling (when init/rendering on GPU) error appears after Lukas Stockners' noise reduction merge.
Maybe assign this task to him. I don't think it's OSX specific, but have no proof of that.

Thanks for looking into it
Roel

Compiling OpenCL program base
OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (-2)
OpenCL error (AMD Radeon R9 M395X Compute Engine): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021c00 (AMD Radeon R9 M395X Compute Engine) (err:-2)
OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:

debug
Split/GPU

Compiling OpenCL program split
OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (517)
OpenCL error (AMD Radeon R9 M395X Compute Engine): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021c00 (AMD Radeon R9 M395X Compute Engine) (err:-2)
OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
Error returned by cvms_element_build_from_source

OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split build output: Error returned by cvms_element_build_from_source

debug
Split/All (and Intel selected)
Compiling OpenCL program split
OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: build program driver returned (-2)
OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): OpenCL Warning : clBuildProgram failed: could not build program for 0xffffffff (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz) (err:-2)
OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
CVMS_ERROR_SERVICE_FAILURE: CVMS compiler has crashed or hung managing the service.

OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split build output: CVMS_ERROR_SERVICE_FAILURE: CVMS compiler has crashed or hung managing the service.


Compile/Built blender with these GIT SHA revisions:
fc8f428224a8e77ba66394ad8238a406fa24ee3a gpu opencl render works
c171f0b3c96cb2d01fd6b6919f4dbec1a81c8da9 gpu opencl render works
d29e3ebcc6ecf354ae2e67aa74762a45bb88f8ff gpu opencl render works
2eb906e1b4c80a79f631fd315b9a9f3b6f4bf100 gpu opencl render works 
bca697834728fd12c84941aa2a428abfe2090b27 gpu opencl render works
c9451f1cff4403855d5a77c15cfd428e0a9ebe87 gpu opencl render FAILS with above errors

**System Information** OSX iMac 5k AMD R9 M395X **Blender Version** Broken: after commit bca6978 I've compile/built blender with the GIT SHA revisions mentioned below.. the OpenCL compiling (when init/rendering on GPU) error appears after Lukas Stockners' noise reduction merge. Maybe assign this task to him. I don't think it's OSX specific, but have no proof of that. Thanks for looking into it Roel ``` Compiling OpenCL program base OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (-2) OpenCL error (AMD Radeon R9 M395X Compute Engine): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021c00 (AMD Radeon R9 M395X Compute Engine) (err:-2) OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log: debug Split/GPU Compiling OpenCL program split OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (517) OpenCL error (AMD Radeon R9 M395X Compute Engine): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021c00 (AMD Radeon R9 M395X Compute Engine) (err:-2) OpenCL error (AMD Radeon R9 M395X Compute Engine): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log: Error returned by cvms_element_build_from_source OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console. OpenCL program split build output: Error returned by cvms_element_build_from_source debug Split/All (and Intel selected) Compiling OpenCL program split OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: build program driver returned (-2) OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): OpenCL Warning : clBuildProgram failed: could not build program for 0xffffffff (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz) (err:-2) OpenCL error (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log: CVMS_ERROR_SERVICE_FAILURE: CVMS compiler has crashed or hung managing the service. OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console. OpenCL program split build output: CVMS_ERROR_SERVICE_FAILURE: CVMS compiler has crashed or hung managing the service. Compile/Built blender with these GIT SHA revisions: fc8f428224a8e77ba66394ad8238a406fa24ee3a gpu opencl render works c171f0b3c96cb2d01fd6b6919f4dbec1a81c8da9 gpu opencl render works d29e3ebcc6ecf354ae2e67aa74762a45bb88f8ff gpu opencl render works 2eb906e1b4c80a79f631fd315b9a9f3b6f4bf100 gpu opencl render works bca697834728fd12c84941aa2a428abfe2090b27 gpu opencl render works c9451f1cff4403855d5a77c15cfd428e0a9ebe87 gpu opencl render FAILS with above errors ```
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @kostex

Added subscriber: @kostex
Mai Lavelle was assigned by Aaron Carlisle 2017-05-16 16:18:14 +02:00
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner
Member

Im unable reproduce here. Please update your drivers and try again with latest master.

Im unable reproduce here. Please update your drivers and try again with latest master.
Author
Member

Mai,

there is no such thing as updating drivers on OSX (except for Cuda, but that's not the issue here)

Every daily buildbot OSX version fails as well after 24th of april.
Reproducing is a matter of installing a daily on an AMD OSX machine and rendering on GPU.

And like my elaborate explanation, I've stated the exact moment where in the history tree it starts to fail.. after the noise reduc commit..

Roel

Mai, there is no such thing as updating drivers on OSX (except for Cuda, but that's not the issue here) Every daily buildbot OSX version fails as well after 24th of april. Reproducing is a matter of installing a daily on an AMD OSX machine and rendering on GPU. And like my elaborate explanation, I've stated the exact moment where in the history tree it starts to fail.. after the noise reduc commit.. Roel

Added subscriber: @billCritchfield

Added subscriber: @billCritchfield

Similar error? not sure because my card is rather old.
critcwc1-md1:~ critcwc1$ /Applications/blender-2.78c-OSX_10.6-x86_64/blender.app/Contents/MacOS/blender
Read new prefs: /Users/critcwc1/Library/Application Support/Blender/2.78/config/userpref.blend
found bundled python: /Applications/blender-2.78c-OSX_10.6-x86_64/blender.app/Contents/MacOS/../Resources/2.78/python
measureit: Imported multifiles
Registered Hard Ops 9 with 99 modules
Device init success
Compiling OpenCL program base
OpenCL error (ATI Radeon HD 5870): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (517)
OpenCL error (ATI Radeon HD 5870): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021b00 (ATI Radeon HD 5870) (err:-2)
OpenCL error (ATI Radeon HD 5870): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
Error returned by cvms_element_build_from_source

OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program base build output: Error returned by cvms_element_build_from_source

Similar error? not sure because my card is rather old. critcwc1-md1:~ critcwc1$ /Applications/blender-2.78c-OSX_10.6-x86_64/blender.app/Contents/MacOS/blender Read new prefs: /Users/critcwc1/Library/Application Support/Blender/2.78/config/userpref.blend found bundled python: /Applications/blender-2.78c-OSX_10.6-x86_64/blender.app/Contents/MacOS/../Resources/2.78/python measureit: Imported multifiles Registered Hard Ops 9 with 99 modules Device init success Compiling OpenCL program base OpenCL error (ATI Radeon HD 5870): [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (517) OpenCL error (ATI Radeon HD 5870): OpenCL Warning : clBuildProgram failed: could not build program for 0x1021b00 (ATI Radeon HD 5870) (err:-2) OpenCL error (ATI Radeon HD 5870): [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log: Error returned by cvms_element_build_from_source OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console. OpenCL program base build output: Error returned by cvms_element_build_from_source
Author
Member

The error is the same, but you're using the 2.78c release version, not a daily build after 24th of april.
2.78c release is working fine here, so maybe your card is not supported (anymore)
you can also try to cleanup all leftover kernels in ~/.cache/cycles/kernels.
For me that was no solution, but maybe for you it will.

Took the liberty of changing status to Normal again.. it has no incomplete elements whatsoever.

The error is the same, but you're using the 2.78c release version, not a daily build after 24th of april. 2.78c release is working fine here, so maybe your card is not supported (anymore) you can also try to cleanup all leftover kernels in ~/.cache/cycles/kernels. For me that was no solution, but maybe for you it will. Took the liberty of changing status to Normal again.. it has no incomplete elements whatsoever.
Member

Closed as duplicate of #49465

Closed as duplicate of #49465
Member

This was supposed to be merged into #44674 but phabricator seems to have done something weird... no option to fix it either...

This was supposed to be merged into #44674 but phabricator seems to have done something weird... no option to fix it either...
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#51442
No description provided.