You are not logged in.

#1 2025-05-10 21:31:31

acheong08
Member
Registered: 2025-05-10
Posts: 1

python-pytorch-rocm unable to detect AMD RX570

I'm trying to get my AMD GPU to work with Pytorch but it can't seem to detect it.

My environment:

```fish
acheong@fishy ~> sudo lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01) (prog-if 00 [VGA controller])
    Subsystem: Framework Computer Inc. Device 0001
    Flags: bus master, fast devsel, latency 0, IRQ 156, IOMMU group 4
    Memory at 605c000000 (64-bit, non-prefetchable) [size=16M]
    Memory at 4000000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 3000 [size=64]
    Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915, xe

04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev ef) (prog-if 00 [VGA controller])
    Subsystem: Sapphire Technology Limited Nitro+ Radeon RX 570/580/590
    Flags: bus master, fast devsel, latency 0, IRQ 207, IOMMU group 19
    Memory at 4200000000 (64-bit, prefetchable) [size=8G]
    Memory at 4100000000 (64-bit, prefetchable) [size=2M]
    I/O ports at 4000 [size=256]
    Memory at 7c000000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at 7c040000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu

acheong@fishy ~> ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root  8 May 10 15:23 pci-0000:00:02.0-card -> ../card1
lrwxrwxrwx 1 root root 13 May 10 15:23 pci-0000:00:02.0-render -> ../renderD128
lrwxrwxrwx 1 root root  8 May 10 15:23 pci-0000:04:00.0-card -> ../card0
lrwxrwxrwx 1 root root 13 May 10 15:23 pci-0000:04:00.0-render -> ../renderD129

acheong@fishy ~> echo $AQ_DRM_DEVICES
/dev/dri/card0:/dev/dri/card1
```
I'm using Hyprland and have the AMD card set as the default GPU. It works fine in games and such.

I am aware of the need for `HSA_OVERRIDE_GFX_VERSION=10.3.0` in older AMD cards but it's not working either.

```
acheong@fishy ~> HSA_OVERRIDE_GFX_VERSION=10.3.0 python3 -c "import torch;print(torch.cuda.device_count())"
0
```

Offline

#2 2025-05-11 19:04:52

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,213

Re: python-pytorch-rocm unable to detect AMD RX570


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB