New 19.50 version is available i AMD website. This version is for all cards. Last version (19.30) in portage is only for Radeon 5700. https://www.amd.com/en/support/kb/release-notes/rn-rad-lin-19-50-unified
Created attachment 630618 [details] Ebuild Here's an ebuild for the 19.50 release I keep for my local repo, I'm not sure if I could be timely enough to be a maintainer but I could try
(In reply to Technohacker from comment #1) May be we should drop amdgpu-pro-opencl in favor of better Radeon Open Compute support?
I can be proxy maintainer but I don't see enought reasons to deal with this proprietary.
(In reply to Reva Denis from comment #2) > (In reply to Technohacker from comment #1) > > May be we should drop amdgpu-pro-opencl in favor of better Radeon Open > Compute support? I would gladly, but rendering engines like Blender's Cycles (any version) and some others still have issues with ROCm. Sometimes it tends to be the other way around, but until that's fixed, I'm stuck with the proprietary OpenCL runtime :/
(In reply to Reva Denis from comment #2) > (In reply to Technohacker from comment #1) > > May be we should drop amdgpu-pro-opencl in favor of better Radeon Open > Compute support? GFX8 GPUs needs a PCIe 3.0 capable motherboard and processor with ROCm.
(In reply to Reva Denis from comment #2) > (In reply to Technohacker from comment #1) > > May be we should drop amdgpu-pro-opencl in favor of better Radeon Open > Compute support? sys-devel/llvm-roc can't be mixed with system-llvm, so any program that uses hardware acceleration from mesa won't run with OpenCL from ROCm, it simply crash. So amdgpu-pro-opencl is the only option for getting OpenCL together with mesa. Btw, Radeon Software for Linux 20.30 was released with support for Vega cards and newer: https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-20
Created attachment 654114 [details] ebuild for Radeon™ Software for Linux® 20.30.1109583
I meant to add with the latest ebuild that I am using this with a Radeon RX460 to do OpenCL crunching with BOINC.
Nicholas: Thanks for the ebuild. But it says: # ebuild amdgpu-pro-opencl-20.30.1109583.ebuild digest !!! dev-libs/amdgpu-pro-opencl-20.30.1109583 has fetch restriction turned on. !!! This probably means that this ebuild's files must be downloaded !!! manually. See the comments in the ebuild for more information. * Please download Radeon Software for Linux version 20.30 for Ubuntu 18.04 from * https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-navi-linux * The archive should then be placed into your distfiles directory. !!! Fetch failed for amdgpu-pro-20.30-1109583-ubuntu-18.04.tar.xz, can't update Manifest The URL displayed is for 19.30 version. The new 20.30 version is found here: https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-30
Created attachment 654386 [details] ebuild for Radeon™ Software for Linux® 20.30.1109583 Updated ebuild to reflect the correct link for Radeon Software for Linux version 20.30.
Doesn't work for me. The ebuild installs without error, but clinfo says: Number of platforms 1 Platform Name AMD Accelerated Parallel Processing Platform Vendor Advanced Micro Devices, Inc. Platform Version OpenCL 2.1 AMD-APP (3143.9) 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 0 NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) c�] clCreateContext(NULL, ...) [default] No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform 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) No devices found in platform ICD loader properties ICD loader Name OpenCL ICD Loader ICD loader Vendor OCL Icd free software ICD loader Version 2.2.12 ICD loader Profile OpenCL 2.2
Johannes Hirte: Do you have amdgpu support compiled i kernel? In my system it works OK: $ clinfo Number of platforms 1 Platform Name AMD Accelerated Parallel Processing Platform Vendor Advanced Micro Devices, Inc. Platform Version OpenCL 2.1 AMD-APP (3143.9) 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 (3143.9) Driver Version 3143.9 Device OpenCL C Version OpenCL C 1.2 Device Type GPU Device Board Name (AMD) Radeon RX 580 Series Device Topology (AMD) PCI-E, 01: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 1365MHz 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 4274225152 (3.981GiB) Global free memory (AMD) 4166292 (3.973GiB) 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 3423540838 (3.188GiB) 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 3423540838 (3.188GiB) 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) 1598162720738619082ns (Sun Aug 23 08:05:20 2020) 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_amd_bus_addressable_memory cl_khr_spir cl_khr_gl_event NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [AMD] clCreateContext(NULL, ...) [default] 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 ICD loader properties ICD loader Name OpenCL ICD Loader ICD loader Vendor OCL Icd free software ICD loader Version 2.2.12 ICD loader Profile OpenCL 2.2
(In reply to Francisco Lloret from comment #12) > Johannes Hirte: Do you have amdgpu support compiled i kernel? > > Yes, without I wouldn't have graphical output. # CONFIG_DRM_RADEON is not set CONFIG_DRM_AMDGPU=y # CONFIG_DRM_AMDGPU_SI is not set # CONFIG_DRM_AMDGPU_CIK is not set CONFIG_DRM_AMDGPU_USERPTR=y # CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set # # ACP (Audio CoProcessor) Configuration # CONFIG_DRM_AMD_ACP=y # end of ACP (Audio CoProcessor) Configuration # # Display Engine Configuration # CONFIG_DRM_AMD_DC=y CONFIG_DRM_AMD_DC_DCN=y # CONFIG_DRM_AMD_DC_HDCP is not set # CONFIG_DEBUG_KERNEL_DC is not set # end of Display Engine Configuration CONFIG_HSA_AMD=y # CONFIG_DRM_NOUVEAU is not set lspci: 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge 00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] 00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] 00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A 00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7 01:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32) 02:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5762 Gigabit Ethernet PCIe (rev 10) 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01) 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev d1) 04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller 04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor 04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller 04:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver 05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)
Works after minimal modification with latest driver 20.40.1147287. Thanks for sharing.
Vega, or at least Navi seems to require some different files to work. I shared my findings over at the forums [1], with 20.40.1147286, but I'm not attaching the ebuild at this time as it's very quick and dirty. :] While I got it to work at least to some extent with Blender, it will hang the whole machine in certain situations, which may be happening in the Windows world even [2]. So, at this time, it seems to me that there is no way to use an AMD RX 5700 XT for Blender OpenCL work with the Cycles renderer, at least not without the full PRO driver which I have not tried yet (though the Blender issue report does not seem to be giving much hope for that either). 1. https://forums.gentoo.org/viewtopic-t-1121939.html 2. https://developer.blender.org/T75319
Created attachment 670010 [details] ebuild for Radeon™ Software for Linux® 20.40.1147286 I have updated the ebuild with the latest driver for Ubuntu 20.04.1. I strictly use this ebuild to perform OpenCL number crunching with BOINC so I cannot confirm any ill effects with Blender. I ran the Phoronix Test Suite OpenCL benchmarks (shoc, cl-mem) without issue. Other than the low performance of my graphics card (RX460), there were no problems. When I have more time, I will look into the graphical benchmarks to see if I encounter any issues.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af043dae2368ee929b787fa011e43fc7dc56af4a commit af043dae2368ee929b787fa011e43fc7dc56af4a Author: Max Audron <audron@cocaine.farm> AuthorDate: 2020-11-04 17:13:18 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-11-11 11:25:12 +0000 dev-libs/amdgpu-pro-opencl: bump to 20.40.1147286 Bug: https://bugs.gentoo.org/706406 Signed-off-by: Max Audron <audron@cocaine.farm> Closes: https://github.com/gentoo/gentoo/pull/18131 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/amdgpu-pro-opencl/Manifest | 1 + .../amdgpu-pro-opencl-20.40.1147286.ebuild | 99 ++++++++++++++++++++++ 2 files changed, 100 insertions(+)