Closed rexy712 closed 4 years ago
Yes I have this problem too. I have to run "OLC_ICD_VENDORS=amdocl64.icd clinfo", or uninstall mesa. Seems to be this problem: https://github.com/justxi/rocm/issues/8#issuecomment-551017447
Due to the fact this is related to ebuilds that are in Gentoo portage now, please submit a bugreport at https://bugs.gentoo.org.
Alright I'll go report it there and close this issue
Funnily enough, using amd-rocm-meta-bin instead of source compiling it prevents blender from crashing on the System preferences (though it eventually crashes on rendering). Maybe when I built ROCm manually it used different LLVM versions?
If you use the ebuilds, I will use llvm-rocm. This is intended because not all sources from AMD are up streamed yet.
Have you tried to render a picture using ROCM-OpenCL-Runtiime?
Yup, but in my case what happens is (Blender 2.82): 1) Using rocm-opencl-runtime (or even amd-rocm-meta), Blender would crash on opening the System section of its preferences, with the stacktrace showing a SEGV at getting OpenCL info (but clinfo works), so I can't render an image 2) Using amd-rocm-meta-bin, Blender gets all the way to compiling the render kernels and then crashes with a SEGV on one of them. I believe this is also an upstream bug, but either way it doesn't allow me to render an image :sweat_smile:
I'm assuming I made some error in building ROCm, but for now I'll use the prebuilts :)
So with the prebuilt packages all works fine?
I do have to add, for things like LuxRender (from what I remember doing a while back), that worked with my compiled version of ROCm, even rendering. But yes the prebuilts got me farther than my compiled version on Blender :)
(Of course, Blender doesn't work with ROCm very consistently atm, but the prebuilt got me a little further than when I compiled myself)
The prebuilt EBuild required some changes though, the python patch wasn't needed because that program didn't exist, and ROCm's RPM prebuilt uses versioned folders so the ICD file would need the versioned path or a symlink at /opt/rocm
If you made changes to the ebuilds, feel free to create a PR.
Surely! :)
Thanks.
I've made the PR: #149 :)
I'm not even trying to render with GPU yet. When I try to render with the cpu while having amd-rocm-meta installed, blender closes with this message:
Seems like llvm-roc and my system llvm-9.0.1_rc3 are having conflicts? Tested with 2.7.0, 2.9.0, 2.10.0, and 3.0.0. Have not tried installing directly from rocm git yet. Uninstalling rocm fixes the issue. clinfo doesn't work without performing
mv /etc/OpenCL/vendors/mesa.icd{,.bak}
. After this workaround, I get this output: