Here is the /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log which provides more info on the error.
DKMS make.log for amdgpu-5.6.20.906300-1164792 for kernel 5.8.0-7630-generic (amd64) Mon Nov 30 08:06:07 PM MST 2020 make: Entering directory '/usr/src/linux-headers-5.8.0-7630-generic' /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:20: "Local GCC version 100202 does not match kernel compiler GCC version 100200" /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:21: "This may cause unexpected and hard-to-isolate compiler-related issues" AR /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/built-in.a CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_main.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_fence.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_entity.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_util.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_memory.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_device.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_ioctl.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.o /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.c: In function ‘ttm_bo_vm_fault_idle’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.c:76:24: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 76 | up_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.c: In function ‘amdttm_bo_vm_reserve’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.c:155:26: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 155 | up_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_atombios.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_crtc.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_device_cgroup.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_cache.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence_array.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.o LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/amd-sched.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atom.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_io.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_kthread.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mm.o make[1]: *** [scripts/Makefile.build:519: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_perf_event.o /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.c: In function ‘amdgpu_driver_load_kms’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.c:202:38: error: ‘DPM_FLAG_NEVER_SKIP’ undeclared (first use in this function) 202 | dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP); | ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.c:202:38: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.c:30:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function] 30 | dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_reservation.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_suspend.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_workqueue.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_seq_file.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_connector.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_backlight.o /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 103 | _kcl_pcie_link_speed = (const unsigned char *) amdkcl_fp_setup("pcie_link_speed", _kcl_pcie_link_speed_stub); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:4: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup) | ~~~~~~^~~~~~~ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_update_scratch_regs’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:235:6: warning: unused variable ‘i’ [-Wunused-variable] 235 | int i; | ^ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_find_encoder’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:258:6: warning: unused variable ‘i’ [-Wunused-variable] 258 | int i; | ^ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_best_single_encoder’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:373:6: warning: unused variable ‘i’ [-Wunused-variable] 373 | int i; | ^ CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_atomic_helper.o /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_dvi_detect’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:1121:7: warning: unused variable ‘i’ [-Wunused-variable] 1121 | int i; | ^ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_dvi_encoder’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:1177:6: warning: unused variable ‘i’ [-Wunused-variable] 1177 | int i; | ^ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_encoder_get_dp_bridge_encoder_id’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:1341:6: warning: unused variable ‘i’ [-Wunused-variable] 1341 | int i; | ^ /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c: In function ‘amdgpu_connector_encoder_is_hbr2’: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.c:1366:6: warning: unused variable ‘i’ [-Wunused-variable] 1366 | int i; | ^ CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_crtc.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_fb.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modeset_lock.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modes.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mn.o CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/dma-buf/dma-resv.o LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/amdkcl.o make[1]: *** [scripts/Makefile.build:519: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu] Error 2 make: *** [Makefile:1780: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.8.0-7630-generic'
Yes, I have been following step 4 this whole time. I’ve been only operating from a terminal pointing to that directory.
"For now: it’s also a possibility to avoid the problematic package like: sudo apt install libdrm-amdgpu-amdgpu1"
How? That is the solution you provided for uninstalling the drivers. Without that I was not able to correctly uninstall it. As of this moment I’m not even sure I actually uninstalled it since the new error is confusing to me.
From what it looks like, if your kernel is too new, you won’t be able to build DKMS. I’ve been trying to figure out how but had no luck so far. I’m on Kubuntu 20.10 with kernel 5.8.0-29.
When I try to build I get errors mentioning “mmap_sem”. According to this post, anything newer than 5.7 (or maybe that has some patches from 5.7 applied to older kernels) there were changes that won’t allow building DKMS to complete. https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/issues/104
Tried the “renamed mmap_sem to mmap_lock” option on the source files and was able to get past the “mmap_sem” errors… and introduced a bunch of new errors. No idea how to fix them.
So until AMD releases a new amdgpu-pro build that works with newer kernels, no OpenCL for me. Or I can reinstall using Kubuntu 20.04 LTS.
You got the --no-dkms option to work? Every time I try, it still tries to build the dkms.
I just ran “./amdgpu-install --opencl=legacy,rocr --no-dkms --headless” and after some other stuff gets done I get this:
Setting up dkms (2.8.3-4) …
Setting up amdgpu-dkms (1:5.6.20.906300-1164792) …
Loading new amdgpu-5.6.20.906300-1164792 DKMS files…
Building for 5.8.0-29-generic 5.8.0-31-generic
Building for architecture x86_64
Building initial module for 5.8.0-29-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-29-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (–configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
This is going to sound silly, and I’m amazed that it worked myself, but I was running into the same issue and got around it by simply removing the check for --no-dkms in the installer script.
Open up your ./amdgpu-pro-install script and look for the check_options function. Change it to something like this:
function check_options() {
# if [[ "${OPTIONS[*]}" =~ "no-dkms" ]] && \
# [[ "${OPTIONS[*]}" =~ "pro" ]]; then
# echo -e "ERROR: using --no-dkms with a pro install is "`
# `"invalid.\nDid you want to run the following`
# ` instead?\namdgpu-install --no-dkms" | stderr
# exit 1
# fi
echo 'Skipping'
}
You can’t just remove it because it’s being called elsewhere, but apparently it’s just rejecting you based on the fact you’re running the pro installer. I don’t know DKMS well enough to say if this will cause problems down the line, so run at your own risk. But once I made that modification these instructions worked like a charm - I confirmed with both clinfo and in Blender.
I used the 20.40 driver on PopOS 20.04, not sure how it might behave in other environments.
Hi,
I know that this thread is not strictly for the case im going to lay out, but I’m writing about it here, in hope there is a possibility that this is GPU driver issue and maybe someone here can help me. This problem is really difficult to diagnose.
For some time I’m struggling with Blender randomly hanging out on me. It’s happenig during multithreaded workloads and the Blender process cannot be killed.
I’ve been seeing similar behavior recently but no idea what the issue is. I wonder if maybe uninstalling and then reinstalling a different version would help?
EDIT: I started looking into this a bit more and I had the AMD PPA (oibaf-graphics) still enabled from a previous installation attempt. Purging it and keeping my driver version at 20.40 seems to be helping. Here are some instructions on how to remove the PPA if you’re using that and want to see if disabling it helps: https://linuxconfig.org/amd-radeon-ubuntu-20-04-driver-installation
Hello @pzona!
I’m also using 20.40. I’ve reinstalled the drivers with the hack you posted above and everything so far it seems to be OK. Tested Blender versions 2.90, 2.91 and 2.92.
I don’t have PPA’s in sources.
Hmm not sure what the issue was then but glad it’s working!
It looks like my issue was related to the Mesa and Vulkan libraries being upgraded past the AMDGPU driver. If you’re not using the PPA (and are careful when upgrading) you should be okay
I am on Lubuntu 20.04.2 (5.4.0-67-generic) using driver amdgpu-pro-20.45-1188099-ubuntu-20.04 for a RX 580 GPU:
sudo clinfo
[sudo] password for administrador:
dlerror: libamdocl-orca32.so: cannot open shared object file: No such file or directory
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3188.4)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name Ellesmere
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (3188.4)
Driver Version 3188.4
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Board Name (AMD) Radeon RX 580 Series
Device Topology (AMD) PCI-E, 07:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 36
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 1366MHz
Graphics IP (AMD) 8.0
Device Partition (core)
Max number of sub-devices 36
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 256
Preferred work group size (AMD) 256
Max work group size (AMD) 1024
Preferred work group size multiple 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs No
Round to nearest No
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 8407891968 (7.83GiB)
Global free memory (AMD) 8191748 (7.812GiB)
Global memory channels (AMD) 8
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 6946812108 (6.47GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory syze per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 6946812108 (6.47GiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1614249385312070405ns (Thu Feb 25 04:36:25 2021)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) Yes
Number of async queues (AMD) 2
Max real-time compute queues (AMD) 0
Max real-time compute units (AMD) 0
SPIR versions 1.2
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
Yes, the driver amdgpu-pro-20.40-1147287-ubuntu-18.04 worked for my operating system, although I could not install the pro variant of the driver even with the advice of pzona the standard version works fine with eevee and Luxcore, although I get a message in terminal:
/Blender/2.83.13$ ./blender
Read prefs: /home/administrador/.config/blender/2.83/config/userpref.blend
found bundled python: /media/administrador/WD-Black/Blender/2.83.13/2.83/python
BlendLuxCore 2.5beta1 registered (with pyluxcore 2.5beta1)
Updating device list
LLVM triggered Diagnostic Handler: Illegal instruction detected: VOP* instruction violates constant bus restriction
renamable $vgpr2 = V_CNDMASK_B32_e32 32768, killed $vgpr2, implicit killed $vcc, implicit $exec
LLVM failed to compile shader
radeonsi: can't compile a main shader part
Read blend: /media/administrador/WD-Black/Blender/Blends/wanderer.blend
Updating device list
TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.
But it seems to have no negative effects on rendering at a glance.
Thanks for the advice.
Hi, I’m not sure if this is mentioned in the guide. I have seen that some Ubuntu users needed to add the Linux “user” to video and render group when installing pro driver with legacy OpenCL (./amdgpu-pro-install --opencl=legacy --headless).
$LOGNAME is your Linux User name.
So for those who can’t get OpenCL working, just in case follow those steps to add the user to those groups.
No problem. I just wanted to mention this in this thread where different tips related to ATI in Ubuntu and derived Linux distributions are being collected.
On Pop 20.10 trying to run ./amdgpu-install, I’m getting the following
PACKAGES: clinfo-amdgpu-pro opencl-orca-amdgpu-pro-icd clinfo-amdgpu-pro opencl-amdgpu-pro-icd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait
E: Unable to locate package Name
Any idea why that would be? It’s happening with both Rev 20.20 and 20.40.
Thanks, @Tpal. My Radeons are no-pro, but I’m running them with -pro drivers anyway. After reinstall the issue is gone. I think it was related to some Mesa package.
Shame that Blender does not work with either 20.45, or recent 21.10 AMD drivers.
I tried the version 20.50 and that messed up my system pretty badly due to the kernel 5.11 and me experimenting with the amdgpu installer with DKMS - not fully surprised by the result.
I managed to install v21.10 by using ./amdgpu-install --no-dkms --opencl=legacy,pal
When I messed my install with 20.50, I rebooted and amdgpu was gone with other video driver resulting to the system falling back to a 1024x768 resolution.
After checking /etc/modprobe.d folder. After boot, I just loaded the module using sudo modprobe amdgpu and it worked. I also disabled the blacklist that I guess, came from my destructive testing with v20.50.
With regards to Blender v2.92, I tried the flatpak version but there is no amdgpu version integrated into flatpak so the available v2.92 on flatpak does not have amdgpu support.
From the packages, only v2.83.5 is available. I decided to compile blender which worked successfully for me by following this guide: https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu
Make sure to pull the right branch as blender 3.0 is now (as the time of this post) the master branch and very much in alpha version.
I just followed the documentation and can summarize it here: sudo apt-get update sudo apt-get install build-essential git subversion cmake libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libglew-dev
Then for version 2.92:
mkdir ~/blender-git
cd ~/blender-git
git clone -b v2.92.0 https://git.blender.org/blender.git
Download libraries - a must (I have tried building them but it is a waste of time): mkdir ~/blender-git/lib cd ~/blender-git/lib svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64
And finally: cd ~/blender-git/blender make update make
I have now the ability to also test future builds which I had not really considered before.
I can launch v2.92 with OpenCL support on my RX580
It was really a shame.
But the good news: AMD has released a new driver.
That seems to work on 20.10 and newer GPUs.
The instructions are updated too (Scenario#1 step 1.1). Thanks to Blenderis, for bringing this version to my attention.
the only thing left to watch out for:
This combination only seems to work correctly with Blender versions ≥= 2.92.
Thanks @Tpal.
I gave new drivers a try and I cannot get it working unfortunately. This time I followed the advice and installed non-PRO version.
I’m on Debian Bullseye (testing) fork, kernel 5.10.0-6, Blender 3.0 master.
./amdgpu-install --no-dkms --opencl=legacy,pal installs the drivers without an error, but Blender don’t see any OpenCL compute devices.
After this I did sudo apt install opencl-headers ocl-icd-libopencl1 and it also installed correctly, and again, without result.
Also when I try with -PRO variant like: ./amdgpu-pro-install --no-dkms --opencl=pal,legacy --headless I get ERROR: using --no-dkms with a pro install is invalid.
the last Pro driver versions, kinda force a full installation: Vulcan, dkms rebuilds etc.
(Pzona has provided instructions on how to work around this behavior here .)
Maybe R VII needs the pro stack?! AMD does not provide any information about this.
Unfortunately, I don’t have this GPU for further testing.
But thanks for trying!
I will continue to monitor, what the problem might be.
But at some point, Google search is also limited.
Edit: What steps were taken to get the old drivers working?