HIP compile error running Blender 3.2 Alpha on Linux with Vega 64 and ROCm 5.1 #96950
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#96950
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.13.0-39-generic-x86_64-with-glibc2.34 64 Bits
Graphics card: Radeon RX Vega (vega10, LLVM 13.0.1, DRM 3.41, 5.13.0-39-generic) AMD 4.6 (Core Profile) Mesa 22.0.0-devel
Blender Version
Broken: version: 3.2.0 Alpha, branch: master (modified), commit date: 2022-04-01 09:05, hash:
d34c4089f1
Worked: N/A
Short description of error
hipcc compile error running on Linux with Vega 64 and ROCm 5.1.
Exact steps for others to reproduce the error
I've installed ROCm 5.1 successfully.
Then I've updated Blender to the current build 62867.
After that I switched support for Linux HIP ON in CMakeLists.txt, and compiled the modified source successfully.
I started Blender from the shell.
The Vega 64 was detected as a HIP device.
I switched to Cycles, with GPU compute.
Render started compiling the kernels.
It failed with message 'Failed to execute compilation command, see console for details.'
The console displayed the following:
Read prefs: /home/ableeker/.config/blender/3.2/config/userpref.blend
Compiling HIP kernel ...
hipcc -Wno-parentheses-equality -Wno-unused-value --hipcc-func-supp -O3 -ffast-math --amdgpu-target=gfx900 -I /home/ableeker/blender-git/build_linux/bin/3.2/scripts/addons/cycles/source --genco /home/ableeker/blender-git/build_linux/bin/3.2/scripts/addons/cycles/source/kernel/device/hip/kernel.cpp -o "/home/ableeker/.cache/cycles/kernels/cycles_kernel_gfx900_17AB9D06D9B6B9CE25E4218B7AC3ED24"
error: unhandled SGPR spill to memory
error: unhandled SGPR spill to memory
2 errors generated when compiling for gfx900.
Failed to execute compilation command, see console for details.
Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html
Saved session recovery to '/tmp/quit.blend'
Blender quit
Added subscriber: @Aldo-Bleeker
Added subscriber: @LloydAlmeida
See https://developer.blender.org/D14360
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Archived'
These GPUs are only supported on Windows so far:
c46e58817c
Added subscriber: @MilanJaros
I figured out which kernel is causing this error. It is the "integrator_intersect_closest" kernel. One possible solution would be to split the module with all the kernels into multiple modules. I have tried this with HIPCC 5.2.3 (gfx900) and the build passes without a problem.
Added subscriber: @brecht
gfx900
is already enabled and compiling successfully on the buildbot, without splitting modules. We use hipcc version 5.1.20531, so maybe we'll run into this when we upgrade, though this bug report is about 5.1 as well so I'm not sure that's what makes the difference.I used Blender version 3.2.1 with hipcc v5.1 and v5.2 and got the error "unhandled SGPR spill to memory". Thanks for the tip - I see a commit in the Blender 3.3-release branch to support Vega and buildbot with hipcc 5.2.x. I'll give it a try. Thanks.