Got this issue when trying clinfo on an R9 390x. But with RX 560 it's fine. amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
Not sure how to up that DRM, anybody?
Git Clone URL: | https://aur.archlinux.org/opencl-amd.git (read-only, click to copy) |
---|---|
Package Base: | opencl-amd |
Description: | ROCm components repackaged from AMD's Ubuntu releases (ROCr runtime, ROCm runtime, HIP runtime) - This package is intended to work along with the free amdgpu stack. |
Upstream URL: | http://www.amd.com |
Keywords: | amd amdgpu computing gpgpu opencl radeon |
Licenses: | custom:AMD |
Conflicts: | amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev |
Provides: | amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, opencl-driver, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev |
Submitter: | grmat |
Maintainer: | sperg512 (luciddream) |
Last Packager: | luciddream |
Votes: | 133 |
Popularity: | 0.43 |
First Submitted: | 2016-12-01 03:45 (UTC) |
Last Updated: | 2025-04-11 22:54 (UTC) |
« First ‹ Previous 1 .. 69 70 71 72 73 74 75 76 77 78 79 .. 81 Next › Last »
Got this issue when trying clinfo on an R9 390x. But with RX 560 it's fine. amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
Not sure how to up that DRM, anybody?
PAL-based driver also works fine here with RX 560, great work as always. :)
Thanks for your test and comment. Vega users will be glad to hear that. I've just updated the package here as well to include the PAL-based driver.
I tested your PAL+ORCA branch, and it works well with my Vega 64!
I did some experimenting on kernel 4.16 and found out that the PAL OpenCL drivers work fine without the extra step of installing libdrm.
I made a fork of your GitHub project and created a minimal PAL-only branch in it as a proof of concept.
@eggz: thanks for your comment. Every recent Linux graphics driver uses DRM, that also includes the upstream amdgpu driver.
I have pushed two newer versions to GitHub. One is the updated 18.20 PKGBUILD (in branch 18.20) and the other includes the newer PAL-based OpenCL driver (in branch PAL+ORCA), which I have never tested because I don't have recent hardware. Are you willing to try this one out?
I installed V18.10 on 2 systems so far and they both end up with following error: error: OpenCL version 1.1 does not support the 'static' storage class specifier
Both systems use the opensource in-kernel amd module, not the DRM garbage. Installed systems had a VEGA (this is probably normal that its not working there without DRM) but also a polaris RX580 GPU.
In my eyes, this driver isn't working. reverting to V17 on the polaris GPU solves the problem.
Cool! Thank you for the explanation! I will use the GitHub one!
Thank you, again!
For workstation requirements, I'd recommend to use the actual amdgpu-pro driver stack on a supported distribution.
However, if you like to do this, it should work with amdgpu-enabled FirePro/Radeon Pro cards. You are free to use the 552542 PKGBUILD from github (download the PKGBUILD file and run makepkg -si
where it's located).
No, not xf86-video-amdgpu. The actual GPU driver is inside the kernel, hence already installed if you use Linux. The stack would look as follows:
mesa|xf86-video-amdgpu|opencl-amd
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libdrm
^^^^^^
DRM
where the drm driver (amdgpu in this case) is, as already mentioned, inside the kernel. libdrm will be installed as a dependency if you install this package. mesa would provide OpenGL, Vulkan, video acceleration and is not required to run OpenCL. Neither is xf86-video-amdgpu.
Ahh... was this intended for Radeon™ R7 300, R9 295X2, R9 280X, R9 280, R9 270X, R9 270, R7 265,HD 8700 - HD 8900, and HD 7900 Series? Then 511655 is the lastest version.
Is it possible for me to use this for FirePro products (FirePro's latest driver is 552542) as well?
Regarding the driver, I am just trying to install GPU Opencl runtime and only use OpenCL with thte GPU -> would this work? What do you mean by 'I already have the GPU driver installed'? Do you mean xf86-video-amdgpu?
I have the PKGBUILD updated and ready on my github (https://github.com/grmat/opencl-amd/) but still haven't seen the updated version on the AMD page, they still offer me the 511655. Can you point me to which link or form input you're using? In the meantime you can use the PKGBUILD from github, but I'll keep the assumption it has been withdrawn for now.
The direct download works if (and only if) you set a valid HTTP referer, it has already been discussed below.
I'm using the Ubuntu variant to create this package.
You already have the GPU driver installed. It's in the kernel. What you don't need is a graphics-related driver or runtime, as for OpenGL (provided by radeonsi in mesa) or DDX (xf86-video-amdgpu).
Pinned Comments
nho1ix commented on 2023-12-29 08:43 (UTC) (edited on 2024-02-10 07:13 (UTC) by nho1ix)
Note for anyone who has a Polaris GPU (Radeon RX 5xx) debugging issues with this package; Packages that use OpenCL like clinfo or davinci-resolve-studio will need you to downgrade opencl-amd to 1:5.7.1-1 as well as amdgpu-pro-oglp to 23.10_1620044-1 to avoid coredumps & segfaults.
DVR would not open unless these 2 packages were downgraded (along with their dependencies). Had to figure it out the hard way after hours using valgrind and rebooting over and over. Hopefully someone else will not have to pull their hair out trying to resolve their issue.