OpenCL render somtime idles on one tile with BPT #52877

Closed
opened 2017-09-22 20:10:44 +02:00 by mathieu menuet · 8 comments

System Information
win7 x64, Vega 64, driver 17.9.1

Blender Version
Broken: latest master since a week at least

Short description of error
After rendering for some seconds with BPT, the gpu idles, but the tile will never finish.

Exact steps for others to reproduce the error
Render this scene from barbershop (10_03_B - Agent dodges) https://cloud.blender.org/p/agent-327/591ac3cabb3ea141675bbaf2 with OpenCL, the first tile will render for 1-2 seconds with 100% GPU usage and then go idle, never finishing it.

**System Information** win7 x64, Vega 64, driver 17.9.1 **Blender Version** Broken: latest master since a week at least **Short description of error** After rendering for some seconds with BPT, the gpu idles, but the tile will never finish. **Exact steps for others to reproduce the error** Render this scene from barbershop (10_03_B - Agent dodges) https://cloud.blender.org/p/agent-327/591ac3cabb3ea141675bbaf2 with OpenCL, the first tile will render for 1-2 seconds with 100% GPU usage and then go idle, never finishing it.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @bliblubli

Added subscriber: @bliblubli
Author

Added subscribers: @brecht, @MaiLavelle, @Sergey

Added subscribers: @brecht, @MaiLavelle, @Sergey
Brecht Van Lommel self-assigned this 2017-09-28 02:23:28 +02:00

Probably my fault. I couldn't redo with NVidia OpenCL yet, will try AMD later.

Probably my fault. I couldn't redo with NVidia OpenCL yet, will try AMD later.

I can't reproduce this issue with an RX 480, driver 17.9.1 and Windows 10. I tried using the default tile size in this file and bigger ones like 256x256 and 1024x1024.

I also looked over the relevant code changes but couldn't find anything suspicious. I would guess it's some issue with a wrong ray state that causes the path iteration to never finish, but would expect that kind of problem to happen on any GPU.

I can't reproduce this issue with an RX 480, driver 17.9.1 and Windows 10. I tried using the default tile size in this file and bigger ones like 256x256 and 1024x1024. I also looked over the relevant code changes but couldn't find anything suspicious. I would guess it's some issue with a wrong ray state that causes the path iteration to never finish, but would expect that kind of problem to happen on any GPU.
Author

Rendering the scene lightning.blend in the link above (https://cloud.blender.org/p/agent-327/591ac3cabb3ea141675bbaf2), tested with latest master and 17.11.2 on a VEGA 64, OpenCL system memory usage skyrockets at 27.6:
image834.png
while CUDA and CPU stay both at around 16GB system memory usage
image823.png
Vega 64 has only 8GB and cycles reports about 10GB peak memory usage, so I could understand a difference around 2GB (the maximal size of buffers in latest OpenCL code) showing the driver allocating system memory. But why nearly 12GB? Of course the GPU will then idle most of the time, waiting for the system memory.
@brecht did it successfully render the scene lightning.blend in a normal time on the RX480?
Another point is, why is as much system memory kept used while doing GPU rendering? Couldn't the data be freed when everything has been written to the GPU?

Rendering the scene lightning.blend in the link above (https://cloud.blender.org/p/agent-327/591ac3cabb3ea141675bbaf2), tested with latest master and 17.11.2 on a VEGA 64, OpenCL system memory usage skyrockets at 27.6: ![image834.png](https://archive.blender.org/developer/F1424327/image834.png) while CUDA and CPU stay both at around 16GB system memory usage ![image823.png](https://archive.blender.org/developer/F1424328/image823.png) Vega 64 has only 8GB and cycles reports about 10GB peak memory usage, so I could understand a difference around 2GB (the maximal size of buffers in latest OpenCL code) showing the driver allocating system memory. But why nearly 12GB? Of course the GPU will then idle most of the time, waiting for the system memory. @brecht did it successfully render the scene lightning.blend in a normal time on the RX480? Another point is, why is as much system memory kept used while doing GPU rendering? Couldn't the data be freed when everything has been written to the GPU?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

As I'm unable to reproduce this bug in latest master, closing since I don't see much I can do here further.

As I'm unable to reproduce this bug in latest master, closing since I don't see much I can do here further.
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
2 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#52877
No description provided.