# How do I get Blender working with AMD OpenCL on Linux?

I am using Arch Linux and am trying to use GPU Rendering in Blender. In the Arch Linux Wiki from Blender I read that I need either the AMDGPU-PRO or the opencl-amd package. So I installed the opencl-amd package and clinfo shows one platform with OpenCL 1.2.

But when I start Blender and change the Renderer to Cycles Render, it crashes. Showing the error amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-9) Segmentation fault (core dumped)

It is also crashing when I go to Settings > System with the same error message.

Blender Crash Log: https://pastebin.com/uaGcZAZ2

I have a RX 580 and using open-source amdgpu drivers on Arch linux.

• I've encountered the same problem since an update at the beginning of the week. I'm unsure if the amdgpu_query_info() function is part of the blender source or if it's in the AMD opencl libraries that get ripped out of the proprietary driver and re-packaged as opencl-amd. AMD Radeon Pro WX-5100 was working a treat until a few days ago :( Mowley :) – Mowley Chris Sep 13 '18 at 20:35
• I've been (unsuccessfully) trying to find where this is being tracked, assuming its not purely a problem with the opencl-amd package. I haven't tried installing the *-pro drivers, but if it's reproducible there I imagine it's time for a report to amd – gandalf3 Sep 13 '18 at 23:25

I've also had this error since opencl-amd 18.30.641594 and libdrm 2.4.94. Rolling back to opencl-amd 18.30.633530 and libdrm 2.4.93 — as suggested in the comments on the opencl‑amd package — seems to work for the time being.