
Don't worry about Ubuntu release version even you're at 19.10 like my case, the important thing might be to stay at kernel 5.3.x for safety that will suit both ROCm and AMD driver. As of my writing it is version 19.50, the exact link is amdgpu-pro-19.50-967956-ubuntu-18.04.tar.xz. The point is after completing installation of ROCm. OpenCL: 2.1 via ROCm 3.1 or whatever version it might give you from.Graphics API: Mesa (latest versions are fine).Kernel Preferred work group size multiple: 64Įxtensions: 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_khr_gl_depth_images 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_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_copy_buffer_p2p Max global variable preferred total size: 7301444400 Single precision floating point capability Minimum alignment (bytes) for any datatype: 128 Platform Version: OpenCL 2.1 AMD-APP (3004.6) See my answer of this question below.Īt last, I make it works and here is the result from clinfo (binary bundled from ROCm). Problem solved although performance is not good. Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devicesĪsides testing with Blender still doesn't detect GPU, that's right as now I'm having a problem with device not found. Platform Vendor: Advanced Micro Devices, Inc. Platform Name: AMD Accelerated Parallel Processing Platform Version: OpenCL 2.1 AMD-APP (3084.0) Result from /opt/rocm-3.1.0/opencl/bin/x86_64/clinfo Number of platforms: 1 ) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platformĬlCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform ) AMD Accelerated Parallel ProcessingĬlGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL. Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devicesĬlGetPlatformInfo(NULL, CL_PLATFORM_NAME. Platform Version OpenCL 2.1 AMD-APP (3084.0) Platform Vendor Advanced Micro Devices, Inc. Platform Name AMD Accelerated Parallel Processing I can validate via clinfo or its /opt/rocm-3.1.0/opencl/bin/x86_64/clinfo both give meaningful result that I now have OpenCL 2.1 but with NO device found!!!. Although I'm on eoan and the package is from xenial, I do take the risk for now.
Uninstall amd opencl driver install#
Note that I minimally install packages as stated in 2nd report link as ROCm packages are huge then follow the less of installation instruction from README.md of its github page. Thus I reverted my kernel version back to 5.3.x (specifically use 5.3.18 generic as 5.3 is stated as a supported version for ROCm, and from the report). With good reports from here, and here, it becomes clear Ubuntu release version of 19.10 should not be a problem, only just need a proper kernel version. But Blender still didn't detect any GPU as OpenCL device. It shows meaningful information via clinfo. In the mean time, I did what I can to test things out by installing OpenCL 1.1 via libclang-common-10-dev libclc-amdgcn libclc-dev libclc-r600 libllvm10 mesa-opencl-icd packages.
Uninstall amd opencl driver driver#
So what would be my options if going back to 18.04 would be a last resort in installing OpenCL driver for my GPU (APU from Ryzen 3 2200g to be exact, I have no discrete GPU) alongside already installed open-source OpenGL/Vulkan driver from Mesa ? With no pre-built package available for my distro, I guess it will fail the same. I would like to try again with ROCm but its package seems to be large. It is clear as stated, not support shown up in error message. I did try install AMDGPU-PRO's OpenCL via its installation script targeting only OpenCL component (via -headless), and even manually install one by one package all with no success. The problem seems to be my Ubuntu distribution version is too high as I have 19.10 (with kernel 5.5.11-050511-lowlatency) + AMDGPU-PRO's OpenCL component can only officially support up to Ubuntu 18.04, same goes to ROCm. My main goal is to make Blender 2.82a able to detect my system's GPU then use as OpenCL compute to fasten the time in rendering.
