Skip to content

Instantly share code, notes, and snippets.

@danielrosehill
Created December 4, 2025 14:50
Show Gist options
  • Select an option

  • Save danielrosehill/edf5847719de63ab6ab4305737355d48 to your computer and use it in GitHub Desktop.

Select an option

Save danielrosehill/edf5847719de63ab6ab4305737355d48 to your computer and use it in GitHub Desktop.
Fix OpenCL/GPU acceleration for AMD Radeon on Ubuntu (ROCm)

Fixing OpenCL/GPU Acceleration for AMD Radeon on Ubuntu

Problem

Video editors (Kdenlive, DaVinci Resolve, etc.) had broken GPU acceleration on Ubuntu 25.04 with AMD Radeon RX 7700 XT.

Running clinfo showed:

Number of platforms: 0

Despite having ROCm 6.3 installed, OpenCL wasn't working.

Diagnosis

ROCm was installed but the OpenCL ICD (Installable Client Driver) was missing:

ls /etc/OpenCL/vendors/
# Empty directory

Solution

Install the ROCm OpenCL ICD package:

sudo apt install rocm-opencl-icd

This creates /etc/OpenCL/vendors/amdocl64.icd which registers the AMD OpenCL implementation with the system.

Verification

After installation, clinfo should show your GPU:

clinfo | grep -E "Platform Name|Device Name|Device Board"

Expected output:

Platform Name                                   AMD Accelerated Parallel Processing
Device Name                                     gfx1101
Device Board Name (AMD)                         AMD Radeon RX 7700 XT

Result

  • DaVinci Resolve now detects GPU for color grading acceleration
  • Kdenlive GPU rendering works
  • Any OpenCL-based video processing is now hardware accelerated

Environment

  • Ubuntu 25.04
  • AMD Radeon RX 7700 XT (gfx1101 / Navi 32)
  • ROCm 6.3.0
  • KDE Plasma (Wayland)

This gist was generated by Claude Code. Please verify the information applies to your specific system configuration.


This gist was generated by Claude Code. Please verify any information before relying on it.

Comments are disabled for this gist.