Making use of ROCM - on Blender

Alright so… I am a newbie after all this time xD long story short, I bought an RX580 and I need Cycles to use it. I’ve come to know that rocm can make both work with each other and so my quest began, and if anyone could give me a hand I would pretty much appreciate it!

First thing I tried was putting my users in the video and render groups and then installing all the packages listed on
https://wiki.archlinux.org/title/GPGPU#ROCm
under 4 and 4.1, but nothing from 4.2-3-4
should I install those? Maybe give another try?

Well after that didn’t work: I looked up some tutorials and found this one
https://phazertech.com/tutorials/rocm.html

Which seemed pretty reliable, but I had to uninstall all of the packages from the wiki and install

  • rocm-hip-sdk
  • opencl-amd
    And so I did. Noticed just now I forgot to install amdgpu-dkms, I’m gonna try it right after posting and if the post is not deleted, regard it as not the solution please.
    I also made the following changes
bash
sudo tee --append /etc/ld.so.conf.d/rocm.conf <<EOF
/opt/rocm/lib
/opt/rocm/lib64
EOF

sudo ldconfig

export PATH=$PATH:/opt/rocm-5.7/bin:/opt/rocm-5.7/opencl/bin

I also edited my ~/.profile and added the following line:
export HSA_OVERRIDE_GFX_VERSION=10.3.0

But yet Cycles refuses to work with me. I am clearly doing something wrong, or maybe idk whats happening. When I put rocminfo, the terminal outputs this:

Accessible by all:       TRUE                               
    Pool 2                   
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    16315000(0xf8f278) KB              
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Accessible by all:       TRUE                               
    Pool 3                   
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
      Size:                    16315000(0xf8f278) KB              
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Accessible by all:       TRUE                               
  ISA Info:                
*******                  
Agent 2                  
*******                  
  Name:                    gfx803                             
  Uuid:                    GPU-XX                             
  Marketing Name:          AMD Radeon RX 580 2048SP           
  Vendor Name:             AMD                                
  Feature:                 KERNEL_DISPATCH                    
  Profile:                 BASE_PROFILE                       
  Float Round Mode:        NEAR                               
  Max Queue Number:        128(0x80)                          
  Queue Min Size:          64(0x40)                           
  Queue Max Size:          131072(0x20000)                    
  Queue Type:              MULTI                              
  Node:                    1                                  
  Device Type:             GPU                                
  Cache Info:              
    L1:                      16(0x10) KB                        
  Chip ID:                 28639(0x6fdf)                      
  ASIC Revision:           1(0x1)                             
  Cacheline Size:          64(0x40)                           
  Max Clock Freq. (MHz):   1284                               
  BDFID:                   256                                
  Internal Node ID:        1                                  
  Compute Unit:            32                                 
  SIMDs per CU:            4                                  
  Shader Engines:          4                                  
  Shader Arrs. per Eng.:   1                                  
  WatchPts on Addr. Ranges:4                                  
  Coherent Host Access:    FALSE                              
  Features:                KERNEL_DISPATCH 
  Fast F16 Operation:      TRUE                               
  Wavefront Size:          64(0x40)                           
  Workgroup Max Size:      1024(0x400)                        
  Workgroup Max Size per Dimension:
    x                        1024(0x400)                        
    y                        1024(0x400)                        
    z                        1024(0x400)                        
  Max Waves Per CU:        40(0x28)                           
  Max Work-item Per CU:    2560(0xa00)                        
  Grid Max Size:           4294967295(0xffffffff)             
  Grid Max Size per Dimension:
    x                        4294967295(0xffffffff)             
    y                        4294967295(0xffffffff)             
    z                        4294967295(0xffffffff)             
  Max fbarriers/Workgrp:   32                                 
  Packet Processor uCode:: 730                                
  SDMA engine uCode::      58                                 
  IOMMU Support::          None                               
  Pool Info:               
    Pool 1                   
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
      Size:                    8388608(0x800000) KB               
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Accessible by all:       FALSE                              
    Pool 2                   
      Segment:                 GLOBAL; FLAGS: EXTENDED FINE GRAINED
      Size:                    8388608(0x800000) KB               
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Accessible by all:       FALSE                              
    Pool 3                   
      Segment:                 GROUP                              
      Size:                    64(0x40) KB                        
      Allocatable:             FALSE                              
      Alloc Granule:           0KB                                
      Alloc Alignment:         0KB                                
      Accessible by all:       FALSE                              
  ISA Info:                
    ISA 1                    
      Name:                    amdgcn-amd-amdhsa--gfx803          
      Machine Models:          HSA_MACHINE_MODEL_LARGE            
      Profiles:                HSA_PROFILE_BASE                   
      Default Rounding Mode:   NEAR                               
      Default Rounding Mode:   NEAR                               
      Fast f16:                TRUE                               
      Workgroup Max Size:      1024(0x400)                        
      Workgroup Max Size per Dimension:
        x                        1024(0x400)                        
        y                        1024(0x400)                        
        z                        1024(0x400)                        
      Grid Max Size:           4294967295(0xffffffff)             
      Grid Max Size per Dimension:
        x                        4294967295(0xffffffff)             
        y                        4294967295(0xffffffff)             
        z                        4294967295(0xffffffff)             
      FBarrier Max Size:       32                                 
*** Done *** 

And that is all I have tried for now. A bit messy, right? Yeah, I’m totally lost on this one. Please send help xD

Edit:

garuda-update amdgpu-dkms
[sudo] password for aori:
:: Synchronizing package databases...
 garuda is up to date
 core is up to date
 extra is up to date
 multilib                                           139.2 KiB   557 KiB/s 00:00 [----------------------------------------------] 100%
 chaotic-aur                                          2.6 MiB  3.19 MiB/s 00:01 [----------------------------------------------] 100%
 DEB_Arch_Extra                                       7.3 KiB  10.5 KiB/s 00:01 [----------------------------------------------] 100%

--> Refreshing mirrorlists using rate-mirrors, please be patient..

:: Synchronizing package databases...
 garuda downloading...
 core downloading...
 extra downloading...
 multilib downloading...
 chaotic-aur downloading...
 DEB_Arch_Extra downloading...

--> Applying keyring updates before starting full system update..
warning: archlinux-keyring-20231222-1 is up to date -- skipping
error: could not parse package description file 'haskell-hie-bios-0.11.0-70/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 1024 bytes, only 0 available))
warning: chaotic-keyring-20230616-1 is up to date -- skipping
warning: garuda-hotfixes-1.1.2-1 is up to date -- skipping
 there is nothing to do
error: could not parse package description file 'haskell-hie-bios-0.11.0-70/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 1024 bytes, only 0 available))
error: could not parse package description file 'haskell-hie-bios-0.11.0-70/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 1024 bytes, only 0 available))
error: could not parse package description file 'haskell-hie-bios-0.11.0-70/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 1024 bytes, only 0 available))
error: target not found: amdgpu-dkms

Oops, almost forgot:

garuda-inxi
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_ADDRESS = "pt_BR.UTF-8",
        LC_NAME = "pt_BR.UTF-8",
        LC_MONETARY = "pt_BR.UTF-8",
        LC_PAPER = "pt_BR.UTF-8",
        LC_IDENTIFICATION = "pt_BR.UTF-8",
        LC_TELEPHONE = "pt_BR.UTF-8",
        LC_MEASUREMENT = "pt_BR.UTF-8",
        LC_TIME = "pt_BR.UTF-8",
        LC_NUMERIC = "pt_BR.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
System:
  Kernel: 6.6.14-1-lts arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=33da784c-6400-4145-99e3-93bc3c7463b2 rw rootflags=subvol=@
    quiet
    cryptdevice=UUID=5b16040e-5d39-4cd0-80b7-423ffe50eaff:luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
    root=/dev/mapper/luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
  Desktop: LXQt v: 1.4.0 tk: Qt v: 5.15.12 info: cairo-dock, lxqt-panel
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME H310M-E R2.0/BR v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 1605
    date: 07/14/2020
CPU:
  Info: model: Intel Core i3-8100 bits: 64 type: MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xB (11) microcode: 0xF4
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 1500 high: 3600 min/max: 800/3600 scaling:
    driver: intel_pstate governor: performance cores: 1: 3600 2: 800 3: 800
    4: 800 bogomips: 28808
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Polaris 20 XL [Radeon RX 580 2048SP] driver: amdgpu v: kernel
    arch: GCN-4 code: Arctic Islands process: GF 14nm built: 2016-20 pcie:
    gen: 3 speed: 8 GT/s lanes: 16 ports: active: HDMI-A-1 empty: DP-1, DP-2,
    DP-3, DVI-D-1 bus-ID: 01:00.0 chip-ID: 1002:6fdf class-ID: 0300
    temp: 38.0 C
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,vesa
    alternate: fbdev dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.13x7.99")
    s-diag: 412mm (16.24")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: TV PHILCO serial: <filter>
    built: 2015 res: 1360x768 hz: 60 dpi: 49 gamma: 1.06
    size: 708x398mm (27.87x15.67") diag: 484mm (19.1") ratio: 5:4, 4:3 modes:
    max: 1360x768 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.3.4-arch1.2
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 580 2048SP (radeonsi
    polaris10 LLVM 16.0.6 DRM 3.54 6.6.14-1-lts) device-ID: 1002:6fdf
    memory: 7.81 GiB unified: no
  API: Vulkan v: 1.3.276 layers: 7 device: 0 type: discrete-gpu name: AMD
    Radeon RX 580 2048SP (RADV POLARIS10) driver: mesa radv v: 23.3.4-arch1.2
    device-ID: 1002:6fdf surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.4-arch1.2 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a2f0 class-ID: 0403
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  API: ALSA v: k6.6.14-1-lts status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.78 TiB used: 348.51 GiB (12.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 model: SATA SSD size: 55.9 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: Sb10 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3000NM0053
    size: 2.73 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: G00A scheme: GPT
Partition:
  ID-1: / raw-size: 558.79 GiB size: 558.79 GiB (100.00%)
    used: 348.28 GiB (62.3%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
  ID-2: /boot/efi raw-size: 5.59 GiB size: 5.58 GiB (99.80%)
    used: 242.2 MiB (4.2%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 558.79 GiB size: 558.79 GiB (100.00%)
    used: 348.28 GiB (62.3%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
  ID-4: /var/log raw-size: 558.79 GiB size: 558.79 GiB (100.00%)
    used: 348.28 GiB (62.3%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
  ID-5: /var/tmp raw-size: 558.79 GiB size: 558.79 GiB (100.00%)
    used: 348.28 GiB (62.3%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5b16040e-5d39-4cd0-80b7-423ffe50eaff
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.56 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A gpu: amdgpu temp: 38.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 1716
Info:
  Processes: 252 Uptime: 23m wakeups: 0 Memory: total: 16 GiB
  available: 15.56 GiB used: 4.1 GiB (26.3%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 1822 pm: pacman pkgs: 1765 libs: 507 tools: pamac,paru pm: flatpak
  pkgs: 57 Shell: Bash v: 5.2.26 running-in: qterminal inxi: 3.3.31
Garuda (2.6.22-1):
  System install date:     2024-01-28
  Last full system update: 2024-01-28
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       No/Undetected
  Failed units:       

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.