Multi-GPU rendering crashing #101758

Closed
opened 2022-10-12 00:11:21 +02:00 by Nathan Huntoon · 6 comments

System Information
Operating system: Ubuntu 22.04
Graphics card: nVidia A10 x 4

Blender Version
Broken: 3.1.1
Worked: N/A

Short description of error
Doing command line rendering with --cycles-device CUDA on a multi-GPU machine results in a core dump and blender crash. Running the same command with a single GPU machine results in successful renders.

Exact steps for others to reproduce the error
I have developed a remote rendering system to perform rendering on cloud infrastructure. The heart of the system is Blender, taking advantage of the command line rendering capability.
I have a multi-GPU system with 4 nVdidia A10 graphics cards, CUDA 11.7 fully setup and the latest drivers. I perform the rendering in a docker image where Blender 3.3.1 is installed at /usr/local/blender. The script that’s running inside calls the command line:

/usr/local/blender/blender -b blendFile.blend -o imgFilename# -f frame -- --cycles-device=CUDA 

If I run this docker passing only a single GPU into the image, it runs perfectly and outputs a rendered image. If I pass it multiple GPUs though, the rendering appears to run, but when Blender goes to save the output file I get an error:

pure virtual method called
terminate called without an active exception
Aborted (core dumped)

I’ve verified that other CUDA workloads work with multiple GPUs both on the base machine and inside the docker image. This is the only things that’s breaking.

I ran the command with --debug-cycles enabled and the full output is attached as log.txt
log.txt

**System Information** Operating system: Ubuntu 22.04 Graphics card: nVidia A10 x 4 **Blender Version** Broken: 3.1.1 Worked: N/A **Short description of error** Doing command line rendering with --cycles-device CUDA on a multi-GPU machine results in a core dump and blender crash. Running the same command with a single GPU machine results in successful renders. **Exact steps for others to reproduce the error** I have developed a remote rendering system to perform rendering on cloud infrastructure. The heart of the system is Blender, taking advantage of the command line rendering capability. I have a multi-GPU system with 4 nVdidia A10 graphics cards, CUDA 11.7 fully setup and the latest drivers. I perform the rendering in a docker image where Blender 3.3.1 is installed at /usr/local/blender. The script that’s running inside calls the command line: ``` /usr/local/blender/blender -b blendFile.blend -o imgFilename# -f frame -- --cycles-device=CUDA ``` If I run this docker passing only a single GPU into the image, it runs perfectly and outputs a rendered image. If I pass it multiple GPUs though, the rendering appears to run, but when Blender goes to save the output file I get an error: ``` pure virtual method called terminate called without an active exception Aborted (core dumped) ``` I’ve verified that other CUDA workloads work with multiple GPUs both on the base machine and inside the docker image. This is the only things that’s breaking. I ran the command with --debug-cycles enabled and the full output is attached as log.txt [log.txt](https://archive.blender.org/developer/F13662121/log.txt)
Author

Added subscriber: @Nathan-Huntoon

Added subscriber: @Nathan-Huntoon
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report. Uploaded Log file doesn't contain any relevant information of the crash.
I'm not sure if this is an issue in Blender or the docker container you're running on remote machine. But rendering in multi-GPU device has some work scheduling issues I guess. see: #89833 (Cycles: multi-device rendering performance) and #95687 (Cycle CPU + GPU hybrid path tracer)
Does this happen with "any" blend file and when Optix is used for GPU acceleration.

Hi, thanks for the report. Uploaded Log file doesn't contain any relevant information of the crash. I'm not sure if this is an issue in Blender or the docker container you're running on remote machine. But rendering in multi-GPU device has some work scheduling issues I guess. see: #89833 (Cycles: multi-device rendering performance) and #95687 (Cycle CPU + GPU hybrid path tracer) Does this happen with "any" blend file and when Optix is used for GPU acceleration.
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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#101758
No description provided.