Enable HIP on older devices #96740
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
25 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#96740
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?
Status: In Development
Description
Big picture: Enabling HIP on more devices than just RDNA / RDNA2
Many users are on older GPUs (such as Vega based cards). To be transparent, on Windows the HIP driver side has only commited to support RDNA2 on windows. However, we enabled RDNA cards well and users are using them.
This task is to explore enabling more cards.
Relevant links:
Added subscribers: @BrianSavery, @george-4, @Yuro, @BlenderUser700, @mkaito, @Takuro-Shoji, @Obsyden, @CadenMitchell-3, @ThomasDinges, @Maxzor-1, @Garek, @dvi, @Baardaap, @Jonas-Hagberth, @Maxzor, @not_a_boring_name, @Hannah-Umit, @iain.hogg, @Luciddream, @Caden-Mitchell, @hahnzhu, @LouisLithium, @Th3ho0d, @itf, @Alirion-2, @dmlr7, @Zeenus, @ephraimpauli, @brunnerh, @SomeAB, @Prodeous, @Pliou, @MikePan, @FogLizard, @leesonw, @Low_Polygon42, @s12a, @Diogo_Valadares, @Chou-Vieux, @pikhosh, @FreeCX, @AndreaMonzini, @LahceneB, @2905710881, @Sayak-Biswas, @pauanyu_blender, @easythrees, @2046411367, @julian8bruns, @AndyCuccaro, @Stat_Headcrabed, @Alaska, @GeorgiaPacific, @SteffenD, @Raimund58, @brecht
I have an RX480 8G. Is there a specific driver version that would be preferred for debugging with polaris hardware? Maybe that could help speeding that side of things up in terms of development.
I uploaded a patch here: https://developer.blender.org/D14432
If you take a look here: https://llvm.org/docs/AMDGPUUsage.html you'd set your device type to 'polaris10'. However the HIP compiler will return "unknown architecture" for that so it looks like that can't be supported unfortunately. Sorry :(
Removed subscriber: @Hannah-Umit
Changed status from 'Needs Triage' to: 'Confirmed'
Out of curiosity, are the driver requirements for Vega different from RDNA2?
For example, RDNA2 GPUs supports HIP in Cycles if running driver version
AMD Radeon Software 21.12.1
orAMD Radeon PRO Software 21.Q4
and newer on Windows. Does Vega have the same requirements? Or does it require a more recent GPU driver?This issue was referenced by
c46e58817c
Just tested it with 24th March Build, with an Asus RX Vega64, with driver version 22.3.1 (17th March) on Windows 10 20H2 build . At the very least it detects the card itself. So first step seems okay.
After that I tested eevee, the basic cube on a plane with a single point light scene works fine there.
But as soon as I switch to cycles, things get broken, blender itself doesn't crash, but the whole PC freezes up. CPU/RAM usage in Windows Task Manager is not that high, but GPU usage might be touching 100% if I checked with a proper GPU profiler like MSI Afterburner or Asus GPUtweaktown. At last, doing a 'End Task' to close blender forcefully, restored the PC to its normal state. Here is a screenshot of the broken scene:
Edit 1: I forgot to mention, that I did get a error message when I tested it first time (above), but couldn't save/collect a screenshot of the exact error message.
Now I just tested it again, with same scene, and it works fine the second time.
Will test a bit more, and report back later.
@SomeAB , if you experience bugs while using Blender, please make a bug report for it. This can be done by selecting from the top of Blender {nav Help > Report a bug}
In the screenshot you provided, the the GPU doesn't appear to be in use. As such you might not be experiencing this same issue. Please try re-enabling your GPU and see if that helps you reproduce the error for when you make your bug report.
Added subscriber: @nyanmisaka
I've just tried to render the 3.0 demo using
blender-3.2.0-alpha+master.98d4872d7f42-windows.amd64-release
with RX Vega 64 on Windows 10 21H2.Every time after I click Render -> Render(Image|Animation) it triggers a TDR and reset the Radeon software 22.3.1 WHQL (even though OC is not enabled).
The EXCEPTION_ACCESS_VIOLATION(amdhip64.dll) error can be observed in the debug log.
blender_debug_output.txt
blender_system_info.txt
This is the last screenshot I can find before system freezing. Hope it helps.
Edit: retried with iGPU disabled in BIOS but the issue still exists.
How can you tell this. Does the GPU Compute selection get greyed out if there is some issue?
Added subscriber: @idkartist3d
The
GPU Compute
section in the UI is greyed out if a GPU hasn't been selected in Cycles preferences. As such, I said "the the GPU doesn't appear to be in use" as it is greyed out. And I suggested "Please try re-enabling your GPU and see if that helps you reproduce the error"I'm having similar issues, so I created the bug report here - @SomeAB , feel free to toss in your screenshot/debug log/etc there as well.
Extremely excited that progress is being made with this, I hope my report helps even if a little!
Removed subscriber: @MikePan
@Alaska I was able to reproduce the error, and I made sure that GPU was enabled properly this time, here is the screenshot.
Edit 1: Adding the gpu_debug file
blender_system_info.txt
blender_debug_output.txt
Sometimes I get 2 errors, sometimes 1 error message on lower bar/scriptingconsole, and once it didn't give me any error, but rendering is similarly broken, in all 3-4 attempts.
Added subscriber: @Top_Sun
can the Polaris rx 560 be supported? if you need any help testing the gpu, i can help because i own one.
Added subscriber: @Aldo-Bleeker
System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: Radeon RX Vega ATI Technologies Inc. 4.5.14800 Core Profile Context 22.3.2 30.0.15019.1005
Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-03-27 11:25, hash:
e2e4c1daaa
Worked: N/A
Short description of error
Enabling HIP running on a Vega 64 Blender crashes, and the display goes black.
Exact steps for others to reproduce the error
Looks like the same issue.
Starting rendering with HIP enabled on a Vega 64, running AMD Adrenalin 22.3.2 crashes Blender, and then the display goes black for a second or two. It looks like the graphics driver has crashed, because the display discovers, and an AMD window pops up offering to report the issue. I have enclosed the crash log.
crash.txt
Added subscriber: @Ben-Ehrengruber
Added subscriber: @Noah-Prezant
Added subscriber: @kayfee
So, NO support for polaris cards ,
after so many days of expectation ! :(
Removed subscriber: @FreeCX
Added subscriber: @dntn3d
Wait, so does that mean there will be NO support for polaris cards? Were we just left behind with Blender version 2.93 forever?
Removed subscriber: @Ben-Ehrengruber
Added subscriber: @Neil-McNair
This issue was referenced by
abfa09752f
Added subscriber: @Svyatko
It is possible to enable HIP support for Polaris (GCN4) for Linux (and for Windows, too).
IMHO it is possible to use HIP with GCN2 - GCN4. IDK about GCN1.
Needed patches:
For Blender - change https:*developer.blender.org/D15242 and https:*developer.blender.org/rBabfa09752f5c4d1fa2ae9df5e4ee0c9d77b50f3e to enable older GPUs (and older HIP?).
For HIP: HIP is not supporting pre-GCN5 GPUs by default since ROCm 4.5 (phased out by AMD, code is still in place).
We can get working ROCm for pre-GCN5 GPUs (and HIP as a part of it) with changing compile flags.
https://github.com/RadeonOpenCompute/ROCm/issues/1608
https://github.com/RadeonOpenCompute/ROCm/issues/1659
https://github.com/rocm-arch/rocm-arch/issues/741
ILL Arch Linux already provides ROCm with needed patches.
Maybe with AMD OpenCL drivers and installed unpatched HIP from AMD user will get working Blender - this case needs tests.
Or, maybe, we can use HIP (ROCm) older than 4.5 (4.3 and older).
AFAIU HIP translates CUDA code to feed AMD GPUs. Do user needs HIP being installed to run Blender? Is it possible to include translated CUDA code into Blender code?
I could test it, but I have neither GCN2 - GCN4 hardware, nor finances for this.
Added subscriber: @wongdi
Hi
I have compiled this function locally,can pass the test on my WX8200.
Is it possible to add High Bandwidth Cache (HBC) Controller support for Vega10 and Vega20 HBM2 memory.
Maybe this can be solved😁
Removed subscriber: @Baardaap
This comment was removed by @kayfee
Please keep this task clean and for developers working on HIP.
Every further off-topic comment in here will be removed.
Added subscribers: @Hannah-Umit, @CosmoHQ
{F13401521}>>! In #96740#1328856, @Hannah-Umit wrote:
I'm on Nobara linux , i tried to compile blender with gfx803 (RX 470/480/570/580/590) enablement patches , and it kinda worked
see this and the comment for more info :
https://www.reddit.com/r/blender/comments/wrrq6l/so_close_yet_so_far/
Added subscriber: @finalflasher
Added subscriber: @RafaelRistovski
I've created instructions for installing OpenCL drivers for AMD hardware: https://en.opensuse.org/AMD_OpenCL
Added subscriber: @Cosmocrat
Vega support was added in Blender 3.3. We don't expect support for older generations than that to be added currently, so closing this issue.