NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.02k stars 13.37k forks source link

Package request: amdgpu-proprietary #296585

Open JohnRTitor opened 5 months ago

JohnRTitor commented 5 months ago

Project description

AMD provides their own compiled binaries of their Radeon and Radeon pro GPU drivers.

https://www.amd.com/en/support/linux-drivers

Their official website only links executables compiled for Ubuntu (deb), RHEL (rpm) and SLED distros.

Although the kernel AMDGPU drivers are stable and very usable, it would be nice to install the proprietary drivers to gain the full performance out of the hardware.

rocm, amdgpu packages are already available in nixpkgs. This proposed package amdgpu-proprietary will serve as a metapackage to install all the required drivers such as Vulkan, OpenCL, ROCM stack.

Metadata


Add a :+1: reaction to issues you find important.

CutestNekoAqua commented 5 months ago

so this is only a metapackage or do things need to be newly packaged? I cant really decypher it

JohnRTitor commented 5 months ago

This request is to add a metapackage called amdgpu-proprietary, which should install all drivers, libraries related to AMDGPU, assuming they are already available in nixpkgs. If the packages required, are unavailable, should be added to nixpkgs.

amdgpu-install package linked earlier is just a packaged bash script.

In Ubuntu's repo's not all requested packages are available, so the script installs the rest from AMD official repo. https://repo.radeon.com/

Obviously I am not asking for a third party repo or a flake. The missing packages should be added to nixpkgs.

JohnRTitor commented 1 month ago

Ok I found the pro drivers packaged in a NUR. https://github.com/materusPL/Nixerus/tree/master/pkgs/libs/amdgpu-pro-libs

@materusPL perhaps these can be ported to Nixpkgs?

materusPL commented 1 month ago

Those packages (outdated) were with amdgpu kernel driver but it seems it's gone now from nixpkgs. I had previous pull request with this https://github.com/NixOS/nixpkgs/pull/229886

Since OBS AMF patch stopped working I'm not really interested in porting it myself, but if anyone wants to feel free to use my code.