[PR #10597] [MERGED] hwaccel: rewrite of GPU hardware acceleration support #8859

Closed
opened 2026-02-26 16:34:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/10597
Author: @MickLesk
Created: 1/6/2026
Status: Merged
Merged: 1/6/2026
Merged by: @tremor021

Base: mainHead: extend_nvidia_support


📝 Commits (1)

  • 2547969 feat(hwaccel): Complete rewrite of GPU hardware acceleration support

📊 Changes

1 file changed (+582 additions, -273 deletions)

View changed files

📝 misc/tools.func (+582 -273)

📄 Description

✍️ Description

Remark: Currently only tested on my Intel iGPU and Intel ARC Without Nvidia / AMD i cant test - so need user feedback

  • Multi-GPU detection and user selection (60s timeout, auto-select)
  • Intel Arc/DG1/DG2 dedicated driver installation
  • Intel Gen 9+ (UHD/Iris/HD 5xx-6xx) with compute-runtime from GitHub
  • Intel Legacy (Gen 6-8, HD 2xxx-5xxx) with stable repo drivers
  • AMD discrete GPU support with Mesa + firmware
  • AMD APU integrated graphics support
  • NVIDIA version-matched driver installation from CUDA repository

Distro Support:

  • Debian 11 (Bullseye), 12 (Bookworm), 13 (Trixie/Sid)
  • Ubuntu 22.04, 24.04

New Features:

  • GPU selection dialog for multi-GPU systems
  • Host NVIDIA driver version detection from /proc/driver/nvidia/version
  • APT pinning (Priority 1001) for NVIDIA version matching
  • Device permissions for /dev/dri, /dev/nvidia*, /dev/kfd
  • Modular helper functions for maintainability

Fixes #10579

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/10597 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 1/6/2026 **Status:** ✅ Merged **Merged:** 1/6/2026 **Merged by:** [@tremor021](https://github.com/tremor021) **Base:** `main` ← **Head:** `extend_nvidia_support` --- ### 📝 Commits (1) - [`2547969`](https://github.com/community-scripts/ProxmoxVE/commit/2547969a0906a5ae6b88ee1bf03f555b3b417dd6) feat(hwaccel): Complete rewrite of GPU hardware acceleration support ### 📊 Changes **1 file changed** (+582 additions, -273 deletions) <details> <summary>View changed files</summary> 📝 `misc/tools.func` (+582 -273) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description _Remark: Currently only tested on my Intel iGPU and Intel ARC_ Without Nvidia / AMD i cant test - so need user feedback - Multi-GPU detection and user selection (60s timeout, auto-select) - Intel Arc/DG1/DG2 dedicated driver installation - Intel Gen 9+ (UHD/Iris/HD 5xx-6xx) with compute-runtime from GitHub - Intel Legacy (Gen 6-8, HD 2xxx-5xxx) with stable repo drivers - AMD discrete GPU support with Mesa + firmware - AMD APU integrated graphics support - NVIDIA version-matched driver installation from CUDA repository Distro Support: - Debian 11 (Bullseye), 12 (Bookworm), 13 (Trixie/Sid) - Ubuntu 22.04, 24.04 New Features: - GPU selection dialog for multi-GPU systems - Host NVIDIA driver version detection from /proc/driver/nvidia/version - APT pinning (Priority 1001) for NVIDIA version matching - Device permissions for /dev/dri, /dev/nvidia*, /dev/kfd - Modular helper functions for maintainability ## 🔗 Related Issue Fixes #10579 ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [ ] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:34:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#8859
No description provided.