Invalid value in hipDeviceGetAttribute(&pitch_alignment, hipDeviceAttributeTexturePitchAlignment, hipDevice) (intern/cycles/device/hip/device_impl.cpp:95) #99951

Closed
opened 2022-07-25 03:21:11 +02:00 by Gavin Parker · 9 comments

System Information
Operating system: Arch Linux 5.15
Graphics card: AMD Radeon RX 6600 XT

Blender Version
Broken: 3.3.0 Alpha

Short description of error
I have actually tried for months to get this graphics card to be recognized under Blender 3.3.0. I am ready to accept that I probably have to just switch to Ubuntu but I really don't like that distro so I'd be happy to get this working in general. It's worth noting at this point that I could not even get hip-amdgpu-pro on the AUR to compile and nobody on the dev team for that package knows why; the compiler simply does not see llvm-mc even though which llvm-mc confirms that it is installed.

I finally got Blender to at least recognize the card with the following installed:

llvm-amdgpu 4.5.0-1
mhwd-amdgpu 19.1.0-1
rocm-clang-ocl 4.5.0-1
rocm-cmake 5.1.1-1
rocm-core 5.1.1-1
rocm-dbgapi 4.5.0-1
rocm-dev 4.3.1-1
rocm-device-libs 4.5.0-1
rocm-dkms 3.10.0-1
rocm-gdb 4.5.0-1
rocm-language-runtime 5.1.1-1
rocm-opencl-runtime 4.5.0-1
rocm-smi-lib 5.1.1-1
rocm-utils 4.3.0-1
rocminfo 4.5.0-1

And now I can select the graphics card and even compile the render kernel. However, nothing renders, and the following error is shown:

Invalid value in hipDeviceGetAttribute(&pitch_alignment, hipDeviceAttributeTexturePitchAlignment, hipDevice) (intern/cycles/device/hip/device_impl.cpp:95)

I actually did a clone of Blender to add some debug prints and got the information it's trying to work with:

&pitch_alignment: 0x7ff9b174cf10
hipDeviceAttributeTexturePitchAlignment: 3
hipDevice: 0

I don't exactly know what I'm looking at here, but I'll happy to add more debug prints when suggested.

The output of clinfo can be shown here: https://pastebin.com/raw/jyDKeZp8

I shouldn't have expected progl to make a difference, and indeed launching Blender with it does not.

Exact steps for others to reproduce the error

  • Have an RX6600XT or above and be on Arch Linux (more specifically, Manjaro Linux XFCE).
  • Go through the laborious process of getting Blender to actually see the GPU (hint: you should be installing from the arch4edu repo, and you need a package that provides hipcc)
  • Open up Blender into the default cube render.
  • Goto Cycles and select GPU Compute and you'll immediately think it's working, but actually it's still rendering on the CPU.
  • Open up the Preferences window, make sure the RX6600XT is selected under the HIP panel, and then close it.
  • You should (and throughout this entire journey I have learned that am the only person on planet Earth having some of the issues so maybe you won't!) now see that the cube is invisible in Cycles, and you'll see an error at the top right of the render window telling you the error.
**System Information** Operating system: Arch Linux 5.15 Graphics card: AMD Radeon RX 6600 XT **Blender Version** Broken: 3.3.0 Alpha **Short description of error** I have actually tried for months to get this graphics card to be recognized under Blender 3.3.0. I am ready to accept that I probably have to just switch to Ubuntu but I really don't like that distro so I'd be happy to get this working in general. It's worth noting at this point that I could not even get `hip-amdgpu-pro` on the AUR to compile and nobody on the dev team for that package knows why; the compiler simply does not see `llvm-mc` *even though `which llvm-mc` confirms that it is installed.* I finally got Blender to at least recognize the card with the following installed: ``` llvm-amdgpu 4.5.0-1 mhwd-amdgpu 19.1.0-1 rocm-clang-ocl 4.5.0-1 rocm-cmake 5.1.1-1 rocm-core 5.1.1-1 rocm-dbgapi 4.5.0-1 rocm-dev 4.3.1-1 rocm-device-libs 4.5.0-1 rocm-dkms 3.10.0-1 rocm-gdb 4.5.0-1 rocm-language-runtime 5.1.1-1 rocm-opencl-runtime 4.5.0-1 rocm-smi-lib 5.1.1-1 rocm-utils 4.3.0-1 rocminfo 4.5.0-1 ``` And now I can select the graphics card and even compile the render kernel. However, nothing renders, and the following error is shown: `Invalid value in hipDeviceGetAttribute(&pitch_alignment, hipDeviceAttributeTexturePitchAlignment, hipDevice) (intern/cycles/device/hip/device_impl.cpp:95)` I actually did a clone of Blender to add some debug prints and got the information it's trying to work with: &pitch_alignment: 0x7ff9b174cf10 hipDeviceAttributeTexturePitchAlignment: 3 hipDevice: 0 I don't exactly know what I'm looking at here, but I'll happy to add more debug prints when suggested. The output of clinfo can be shown here: `https://pastebin.com/raw/jyDKeZp8` I shouldn't have expected `progl` to make a difference, and indeed launching Blender with it does not. **Exact steps for others to reproduce the error** - Have an RX6600XT or above and be on Arch Linux (more specifically, Manjaro Linux XFCE). - Go through the laborious process of getting Blender to actually see the GPU (hint: you should be installing from the arch4edu repo, and you need a package that provides hipcc) - Open up Blender into the default cube render. - Goto Cycles and select GPU Compute and you'll immediately think it's working, *but actually it's still rendering on the CPU.* - Open up the Preferences window, make sure the RX6600XT is selected under the HIP panel, and then close it. - You should (and throughout this entire journey I have learned that am the only person on planet Earth having some of the issues so maybe you won't!) now see that the cube is invisible in Cycles, and you'll see an error at the top right of the render window telling you the error.
Author

Added subscriber: @ioi_xd

Added subscriber: @ioi_xd
Gavin Parker changed title from Invalid value in hipDeviceGetAttribute(...) (intern/cycles/device/hip/device_impl.cpp:95) to Invalid value in hipDeviceGetAttribute(&pitch_alignment, hipDeviceAttributeTexturePitchAlignment, hipDevice) (intern/cycles/device/hip/device_impl.cpp:95) 2022-07-25 03:21:33 +02:00
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

Thanks for the report. Can you check again with latest driver releases?: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html
Issue could have been fixed in latest versions as said in the comment

In D14198#379502, @Sayak-Biswas wrote:

In D14198#379352, @brecht wrote:
Thanks for looking into this, though there are bugfixes to the driver coming.

So that might make these changes obsolete? @BrianSavery, @Sayak-Biswas would know more.

@Obsyden Thanks for these fixes. But yeah @brecht is correct, the hipDeviceGetAttribute functions will be fixed in the upcoming linux driver which will support blender.

Thanks for the report. Can you check again with latest driver releases?: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html Issue could have been fixed in latest versions as said in the comment > In [D14198](https://archive.blender.org/developer/D14198)#379502, `@Sayak-Biswas` wrote: >> In [D14198](https://archive.blender.org/developer/D14198)#379352, `@brecht` wrote: >> Thanks for looking into this, though there are bugfixes to the driver coming. >> >> So that might make these changes obsolete? `@BrianSavery`, `@Sayak-Biswas` would know more. > > `@Obsyden` Thanks for these fixes. But yeah `@brecht` is correct, the hipDeviceGetAttribute functions will be fixed in the upcoming linux driver which will support blender.
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.
Author

Hi, indeed I did forget to respond...but there's also not much else I can say.

The arch4edu repository contains outdated drivers, and thus I am back to square one to find out how to get the up-to-date drivers on Arch Linux.

Hi, indeed I did forget to respond...but there's also not much else I can say. The arch4edu repository contains outdated drivers, and thus I am back to square one to find out how to get the up-to-date drivers on Arch Linux.
Author

This comment was removed by @ioi_xd

*This comment was removed by @ioi_xd*
Author

As luck would have it, the arch4edu repo updated last week and I FINALLY have the ACTUAL dependencies I need to run blender under the GPU, under arch.

hip-runtime-amd 5.2.3-1
rocm-hip-runtime 5.2.1-1
rocm-clang-ocl 5.2.1-1
rocm-cmake 5.2.3-1
rocm-core 5.2.1-2
rocm-dbgapi 5.2.1-1
rocm-device-libs 5.2.3-1
rocm-gdb 5.2.1-1
rocm-hip-runtime 5.2.1-1
rocm-language-runtime 5.2.1-1
rocm-llvm 5.2.3-1
rocm-opencl-runtime 5.2.1-1
rocm-smi-lib 5.2.3-1
rocm-utils 4.3.0-1
rocminfo 5.2.3-1
amd-ucode 20220708.be7798e-1
amdgpu-pro-libgl-fix 22.20.1_1447095-1
amf-amdgpu-pro-fix 22.20.1_1447095-1
hip-runtime-amd 5.2.3-1
hsa-amd-aqlprofile-bin 5.2.3-1
lib32-amdgpu-pro-libgl-fix 22.20.1_1447095-1
lib32-vulkan-amdgpu-pro-fix 22.20.1_1447095-1
mhwd-amdgpu 19.1.0-1
vulkan-amdgpu-pro-fix 22.20.1_1447095-1
xf86-video-amdgpu 22.0.0-1
As luck would have it, the arch4edu repo updated last week and I FINALLY have the ACTUAL dependencies I need to run blender under the GPU, under arch. ``` hip-runtime-amd 5.2.3-1 rocm-hip-runtime 5.2.1-1 rocm-clang-ocl 5.2.1-1 rocm-cmake 5.2.3-1 rocm-core 5.2.1-2 rocm-dbgapi 5.2.1-1 rocm-device-libs 5.2.3-1 rocm-gdb 5.2.1-1 rocm-hip-runtime 5.2.1-1 rocm-language-runtime 5.2.1-1 rocm-llvm 5.2.3-1 rocm-opencl-runtime 5.2.1-1 rocm-smi-lib 5.2.3-1 rocm-utils 4.3.0-1 rocminfo 5.2.3-1 amd-ucode 20220708.be7798e-1 amdgpu-pro-libgl-fix 22.20.1_1447095-1 amf-amdgpu-pro-fix 22.20.1_1447095-1 hip-runtime-amd 5.2.3-1 hsa-amd-aqlprofile-bin 5.2.3-1 lib32-amdgpu-pro-libgl-fix 22.20.1_1447095-1 lib32-vulkan-amdgpu-pro-fix 22.20.1_1447095-1 mhwd-amdgpu 19.1.0-1 vulkan-amdgpu-pro-fix 22.20.1_1447095-1 xf86-video-amdgpu 22.0.0-1 ```
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#99951
No description provided.