You are not logged in.
Hi,
When I try to put Cycles on GPU rendering mode in Blender, the render stays greyish and I got this error message in the top-left corner of the editor:
I'm on Arch Linux 6.0.12, I installed the ROCm developers tools from the rocm-arch package in the arch4edu repo, and my GPU (Radeon RX 5700 XT) and my CPU (Ryzen 5 3600) are fully detected by Blender. I'd like to get better rendering so I'd be thankful to anyone who helps me to solve this problem.
Last edited by byjove01 (2023-03-15 09:47:12)
Offline
ROCm has rather limited hardware support .
Your best chance is to install hip-runtime-amd from arch4edu repo AND add /opt/rocm/bin/ at the end of your $PATH .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
The ROCm folder is in the correct location and I just did put the path into the $PATH env variable, but the error message stays. Seems like it remains undetected.
Offline
Then I suggest removing repo blender & rocm pacakges, then trying https://aur.archlinux.org/packages/blender-rocm .
Last edited by Lone_Wolf (2022-12-19 12:10:17)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
When compiling this package, I got a prepare() error and warnings about non allowed 'file' transport and non-ability to clone source files into cache folders... What can I do?
Also, I noticed there's an "out-of-date" mark on the blender-rocm AUR package since the 2022-12-08.
Offline
It works for me with opencl-amd from AUR. It didn't work for me with Blender-rocm and as long as I had rocm installed. I had to clean up everything and put only the opencl-amd driver.
Offline
The file errors are due to changes in git and discussed in a comment by jmagder on the aur page.
Apaz : which videocard, what blender & opencl-amd versions ?
Last edited by Lone_Wolf (2022-12-21 17:02:41)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Sorry, I have the same configuration as the OP: AMD RX5700XT and Ryzen 3700X. There were many problems until a few months ago but now the card works fine (in a manner of speaking, cycles was better with the old OpenCL than with HIP!). I use
Blender 3.4 (but worked from 3.3) and opencl-amd(-dev) 5.4 (but worked from a couple of releases 22.40 and earlier). In using Blender and DaVinci, I find no difference between the -dev and regular versions).
I recommend following the opencl-amd package on AUR which has good maintainers and users.
Offline
The opencl-amd package didn't work with me, I got both my GPU and CPU recognized by Blender but it wouldn't detect the hipcc compiler. Kinda forced to try with blender-rocm.
Do anyone know how to revert the
git config --global protocol.file.allow alwaysline ? I'll need it to put the git config to normal after the installation finishes.
Offline
[846/4794] Generating kernel_gfx90c.fatbin
Warning: The --amdgpu-target option has been deprecated and will be removed in the future. Use --offload-arch instead.
Warning: The --hipcc-func-supp option has been deprecated and will be removed in the future.
[849/4794] Building CXX object intern/cycles/scene/CMakeFiles/cycles_scene.dir/volume.cpp.o
ninja: build stopped: subcommand failed.Yeaaaaah, I just did it for nothing...
Offline
Hmm, someone? I still don't know what to do, blender-rocm definitely don't want to compile.
Offline
The log snippet doesn't show why the build stopped, but I'm guessing you built against opencl-amd ?
That build fails with "sh: line 1: /opt/rocm-5.4.1/llvm/bin/clang: No such file or directory" .
I noticed there are now rocm packages in community-testing repos, so it seems someone is trying to migrate rocm from aur to repos.
Maybe it's smartest to wait a bit until that migration has finished,
Last edited by Lone_Wolf (2022-12-23 17:44:33)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
The opencl-amd package didn't work with me, I got both my GPU and CPU recognized by Blender but it wouldn't detect the hipcc compiler.
Did you restart or relog after you installed it? It needs to update the PATH variable and I think it's the only way to do that. `hipconfig` should show you the detected locations of the compilers.
Offline
HIP version : 5.4.22802-aaa1e3d8
== hipconfig
HIP_PATH : /opt/rocm-5.4.1
ROCM_PATH : /opt/rocm-5.4.1
HIP_COMPILER : clang
HIP_PLATFORM : amd
HIP_RUNTIME : rocclr
CPP_CONFIG : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm-5.4.1/include -I/opt/rocm-5.4.1/llvm/bin/../lib/clang/ -I/opt/rocm-5.4.1/hsa/include
== hip-clang
HSA_PATH : /opt/rocm-5.4.1/hsa
HIP_CLANG_PATH : /opt/rocm-5.4.1/llvm/bin
Can't exec "/opt/rocm-5.4.1/llvm/bin/clang++": Aucun fichier ou dossier de ce type at /opt/rocm/bin//hipconfig.pl line 179.
Can't exec "/opt/rocm-5.4.1/llvm/bin/llc": Aucun fichier ou dossier de ce type at /opt/rocm/bin//hipconfig.pl line 180.
hip-clang-cxxflags : Can't exec "/opt/rocm-5.4.1/llvm/bin/clang": Aucun fichier ou dossier de ce type at /opt/rocm-5.4.1/bin//hipcc.pl line 179.
Use of uninitialized value $HIP_CLANG_VERSION in pattern match (m//) at /opt/rocm-5.4.1/bin//hipcc.pl line 180.
Can't exec "/opt/rocm-5.4.1/llvm/bin/clang": Aucun fichier ou dossier de ce type at /opt/rocm-5.4.1/bin//hipcc.pl line 184.
Use of uninitialized value $HIP_CLANG_TARGET in scalar chomp at /opt/rocm-5.4.1/bin//hipcc.pl line 185.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 188.
Use of uninitialized value $HIP_CLANG_INCLUDE_PATH in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 209.
Use of uninitialized value $HIP_CLANG_INCLUDE_PATH in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 210.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 732.
Use of uninitialized value $HIP_CLANG_TARGET in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 732.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 736.
-isystem "/.." -isystem /opt/rocm-5.4.1/hsa/include -isystem "/opt/rocm-5.4.1/include" -O3
hip-clang-ldflags : Can't exec "/opt/rocm-5.4.1/llvm/bin/clang": Aucun fichier ou dossier de ce type at /opt/rocm-5.4.1/bin//hipcc.pl line 179.
Use of uninitialized value $HIP_CLANG_VERSION in pattern match (m//) at /opt/rocm-5.4.1/bin//hipcc.pl line 180.
Can't exec "/opt/rocm-5.4.1/llvm/bin/clang": Aucun fichier ou dossier de ce type at /opt/rocm-5.4.1/bin//hipcc.pl line 184.
Use of uninitialized value $HIP_CLANG_TARGET in scalar chomp at /opt/rocm-5.4.1/bin//hipcc.pl line 185.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 188.
Use of uninitialized value $HIP_CLANG_INCLUDE_PATH in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 209.
Use of uninitialized value $HIP_CLANG_INCLUDE_PATH in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 210.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 732.
Use of uninitialized value $HIP_CLANG_TARGET in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 732.
Use of uninitialized value $HIP_CLANG_VERSION in concatenation (.) or string at /opt/rocm-5.4.1/bin//hipcc.pl line 736.
--driver-mode=g++ -L"/opt/rocm-5.4.1/lib" -O3 -lgcc_s -lgcc -lpthread -lm -lrt
=== Environment Variables
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin/
egrep: warning: egrep is obsolescent; using grep -E
CUDA_PATH=/opt/cuda
== Linux Kernel
Hostname : pchost-1
Linux pchost-1 6.0.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:38 +0000 x86_64 GNU/Linux
LSB Version: n/a
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/aHere we go again. Some values are probably wrong since I uninstalled any open-cl or hip-related packages to install blender-rocm.
Did you restart or relog after you installed it? It needs to update the PATH variable and I think it's the only way to do that. `hipconfig` should show you the detected locations of the compilers.
I checked Blender several times in a week with the blind hope to get it working with magic, so yes, I would say for sure I restarted my computer. I even remember "updating" the PATH variable by myself.
Last edited by byjove01 (2022-12-24 23:06:28)
Offline
`hipconfig` shows your files are missing. If you have installed `opencl-amd` and `opencl-amd-dev` it should work properly and the files should be there. I'm not sure about the other solutions.
Offline
i am having the same issue. so are a lot of blender user on arch, apparently.
i updated amdgpu-pro-libgl recently and didn't rebuild blender. i need blender to run with GPU support, so i can edit .obj files produced from a ML pose-recognition network. i was planning on using these to make some gifts for family using a CNC (windows only of course).
i was originally encountering issues with the USD patch looking for hardcoded boost version 1.48, where I have 1.80. I changed that, but eventually encountered the `--offload-arch` issues.
I tried installing amdgpu-pro-oglp, but that openmp-extras wouldn't install (this may contain the offload-arch command)
what's very frustrating: the amdgpu-pro-libgl package is missing. version 3.5 doesn't build for the reasons stated above and apparently introduces an openmp dependency -- and if you don't know, that means to expect quite a bit of disruption in builds. think pipewire, but more short-lived because it only affects users who care about CUDA and run AMD GPU's with pro drivers. i would expect quite a few builds to be breaking over the holidays while people are using spare time to work on projects in arch (which is NOT in any way supported by AMD afaik).
all in all, the OpenMP stuff is a huge move forward -- if you have a datacenter or a $50,000 homelab. it will also help quite a bit when combining GPU's from multiple vendors on a single machine. but why can't i still install amdgpu-pro-libgl?
at this point, i've restored a BTRFS snapshot with amdgpu-pro-libgl and now i'm back to trying to build 3.4.1 by editing the pkgbuild, which doesn't validate the source hashes.
TLDR: blender-git is just not going to worth trying to fix at 3.5 for awhile. i'm hoping that i'll even get 3.4.1 running again.
Last edited by dcunit3d (2022-12-25 11:36:05)
Offline
Rendering on rx6500xt does not work for me either. I installed the blender-rocm package as recommended by the archwiki. While rendering via hip on integrated intel GPU works flawlessly, on discrete GPU I get the same error. I thought that support for hip and rocm is already built into blender from the standard repository, but nowhere is it mentioned exactly which packages need to be built to support rocm on free amd drivers. I mean which are sufficient for his work. If you share information on this issue, I will be grateful, since English is not my native language and it is problematic for me to deal with the stack of these technologies.
Offline
I was able to run rocm calculations on my RX6500XT for blender without a proprietary driver. I installed two packages from the repositories: hip-runtime-amd (comunity-testing) and rocm-hip-runtime (aur). After that, I launched the blender through the env
PATH="${PATH}:/opt/rocm/bin/" blender command (without this command, the blender gave the error “HiP hipcc compiler not found. Install HiP toolkit in default location.” ) after that, when the first run of cicles, as I understand it, the rocm layer libraries were compiled for my hardware (it took 5 minutes), and everything worked. Hope this helps someone.
And a few sources I used:
https://bbs.archlinux.org/viewtopic.php?pid=2064002
https://wiki.archlinux.org/title/GPGPU#HIP
https://wiki.archlinux.org/title/Blende … ce_drivers
https://discussion.fedoraproject.org/t/ … cl/40199/9
Offline
I didn't even need to use this command to get Blender to manage my $PATH variable correctly, but now it just brings me this error:
Failed to execute compilation command, see console for details.instead of the classical one. Seems like it now detects hipcc, but can't work with it.
Offline