WSL How to guide - Use ROCm on Ryzen#
New in Adrenalin 26.2.2 + ROCm 7.2.1#
AMD is introducing production support for the open-source ROCDXG (librocdxg) WSL solution with Adrenalin 26.2.2 + ROCm 7.2.1. ROCDXG is a user-mode library that enables ROCm functionality inside WSL for GPU-accelerated workloads, including AI and HPC use cases. It leverages a ROCm runtime feature introduced in ROCm 7.1 and is designed to remain loosely coupled from both ROCm releases and Windows display drivers—allowing the solution to evolve independently. This release also marks the first time AMD is supporting Ryzen Strix and Strix Halo SKUs versus the legacy WSL solution.
AMD ROCDXG library#
Production support is now available for the open-source ROCDXG (librocdxg) solution on WSL—enabling GPU-accelerated Linux workloads under WSL with a decoupled design that can evolve independently.
What is ROCDXG?#
ROCDXG (librocdxg) is an open-source, user-mode library that enables ROCm GPU-compute functionality for Windows Subsystem for Linux (WSL). It serves as the translation layer between the Linux ROCm runtime and the Windows GPU driver stack, allowing developers to run GPU-accelerated workloads—including AI inference, machine learning training, and HPC applications—directly within WSL on a Windows host machine.
ROCDXG is designed as a modular, loosely coupled, community-friendly solution. It evolves independently from both AMD ROCm releases and Windows display driver versions, meaning updates to either do not break the WSL compute path. It is hosted publicly on the [ROCm GitHub organization] (ROCm/librocdxg) and welcomes community contributions.
This release also marks the first time AMD officially supports Ryzen Strix and Strix Halo SKUs on WSL, in addition to the existing discrete Radeon GPU lineup.
Why ROCDXG?#
Modernized WSL Integration Model
ROCDXG communicates with the Windows GPU driver through Microsoft’s DXCore interface (/dev/dxg), which enables GPU acceleration inside WSL. This architecture replaces the legacy roc4wsl packaging model and aligns ROCm on WSL with Microsoft’s supported GPU virtualization framework. Hardware support remains defined by the official ROCm compatibility matrix and validated platform SKUs.
No Display Driver Installation Required
ROCDXG functions as the user-mode bridge between the ROCm runtime and the Windows DXCore interface provided by the installed display driver. Unlike the legacy roc4wsl approach, ROCDXG does not require installation of Radeon Software for Linux (RSL) packages to enable WSL compute. The Windows display driver remains the authoritative GPU driver, while ROCDXG enables the compute interface inside WSL.
Loosely Coupled, Independent Release Lifecycle
For users and enterprises, this translates directly into a more stable, predictable, and lower-maintenance WSL GPU compute environment. There are no version-pair constraints to track, no risk of a driver update silently breaking the compute path, and no dependency on AMD’s internal release schedule to receive improvements.
Simplified Setup — No Version Specification Required
ROCDXG does not require users to specify or match a ROCm driver version during integration. The library is designed for compatibility across multiple ROCm releases simultaneously, eliminating an entire category of setup complexity.
Legacy vs. ROCDXG Comparison
Problem (Legacy roc4wsl) |
Solution (ROCDXG) |
|---|---|
Required full RSL package installation to enable WSL compute |
Standalone user-mode library integrated with standard Windows Adrenalin driver |
Required tight coupling to Linux driver packaging model |
Uses DXCore interface for WSL GPU enablement (supported hardware defined by compatibility matrix) |
Tightly coupled to RSL and Windows driver release cycles |
Loosely coupled — evolves independently from ROCm and Windows driver versions |
Closed, monolithic distribution |
Open-source, community-driven, hosted on GitHub |
Required matching specific RSL + ROCm version pairs |
No manual driver version pairing required |
No path for native Windows ROCm support |
Architected as a downstream integration path toward native Windows ROCm |
Key Features & Improvements#
Open-Source & Community-Driven
ROCDXG is fully open-source and hosted on (ROCm/librocdxg). This is a deliberate architectural decision that aligns with AMD’s commitment to open-source GPU compute. Developers can inspect, contribute to, and extend the library, fostering innovation across AI, HPC, and experimental computing scenarios.
Loosely Coupled Architecture
ROCDXG is intentionally designed to remain loosely coupled from both AMD ROCm releases and Windows display driver versions. This means:
ROCDXG can be updated independently without requiring a new ROCm release.
Windows driver updates do not force a corresponding ROCDXG update.
Users and enterprises can adopt new ROCDXG versions at their own pace.
Simplified Integration
Unlike the legacy roc4wsl approach, ROCDXG does not require specifying a ROCm driver version during integration. This significantly reduces complexity and maintenance overhead for both end users and downstream integrators.
Note
Non-WSL framework guides can be used to install the frameworks.
Install WSL with ROCDXG#
Install Adrenalin driver. To install the compatible driver, refer to AMD Software: Adrenalin Edition™ 26.2.2 for WSL2.
Install WSL. To install WSL, refer to Windows Subsystem for Linux Documentation.
Ubuntu 24.04 and 22.04 are the supported distros on WSL.
Open the librocdxg github link and follow the Quickstart installation.
To install PyTorch on WSL, refer to Install PyTorch via PIP Installation.
When installing PyTorch for WSL, bypass Preparing Your System, and proceed to directly to Install PyTorch via PIP Installation.
Note
The ROCm-supported version of JAX is not currently enabled or validated under WSL. As a result, JAX workloads on WSL may fail to install, initialize, or execute correctly.