how to solve "amdgpudeviceinitialize: amdgpuqueryinfo(ACCELWORKING) failed (-13) amdgpu:…
- User
how to solve "amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13) amdgpu: amdgpu_device_initialize failed." linux
- Assistant
how to solve "amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13) amdgpu: amdgpu_device_initialize failed." linux
The error message you are encountering, "amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13) amdgpu: amdgpu_device_initialize failed", indicates an issue with the AMD GPU driver on a Linux system. The -13 error code corresponds to a permission denied error, which most often suggests that the user does not have the necessary permissions to access the hardware.
Here are several steps you can take to troubleshoot and resolve the issue:
Make sure that you are running your application with sufficient privileges. If you are running a GUI application, try launching it with sudo to see if it resolves the issue.
sudo your_application
Ensure that your AMD GPU drivers are up to date. You can do this using your distribution's package manager. For example, on Ubuntu:
sudo apt update
sudo apt install --reinstall amdgpu-pro
Or, if you're using the open-source drivers, simply ensure that your system packages are updated:
sudo apt update
sudo apt upgrade
On Fedora:
sudo dnf update
Make sure your Linux kernel version supports your particular AMD GPU. If you’ve recently upgraded, a newer kernel might provide better support for your GPU. You can check your kernel version with:
uname -r
Check if the AMD GPU kernel module is loaded:
lsmod | grep amdgpu
If it is not loaded, you can try loading it manually:
sudo modprobe amdgpu
Make sure there are no conflicting drivers loaded that could interfere with the amdgpu driver. Look for modules like radeon that may conflict with amdgpu. Use:
lsmod | grep radeon
If you find the radeon module loaded and it conflicts, you may need to blacklist it by creating a configuration file in /etc/modprobe.d/:
echo "blacklist radeon" | sudo tee /etc/modprobe.d/blacklist-radeon.conf
After blacklisting it, regenerate the initramfs:
sudo update-initramfs -u
If you're using Xorg, inspect the X configuration file (/etc/X11/xorg.conf or files in /etc/X11/xorg.conf.d/). Make sure it points to the correct driver.
Inspect system logs for additional clues. You can use:
dmesg | grep amdgpu
or view the entire log:
journalctl -xe
Sometimes, certain BIOS/UEFI settings can affect how the GPU operates. Ensure any relevant settings are enabled:
After applying changes, a full system reboot is often required for them to take effect.
sudo reboot
If you've gone through these steps and the issue persists, you may want to check the AMD forums or GitHub repositories for any known issues with your specific hardware and driver version. Alternatively, consider reaching out to your distribution's support forums or communities for help tailored to your environment.
Not yet included in a published release.