microsoft / microsoft/WSL

[Bug] AMD Radeon RX 9070 XT (RDNA 4) not detected in WSL 2 (OpenCL/D3D12)

Open
#14,144 11 comments 0 reactions 0 assignees View on GitHub
GPU
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.26200.7623]

### WSL Version

2.6.3.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.6.87.2-1

### Distro Version

Ubuntu 24.04 LTS

### Other Software

Software: GROMACS 2024
Drivers: mesa-opencl-icd, ocl-icd-libopencl1, clinfo
Host GPU Driver: AMD Adrenalin Edition (Latest 2026 version for RX 9070 XT)

### Repro Steps

1. Setup a PC with AMD Ryzen 5 9600X (Zen 5) and AMD Radeon RX 9070 XT (RDNA 4).
2. Install Windows 11 and WSL 2 (Ubuntu 24.04).
3. Install standard OpenCL packages: `sudo apt install mesa-opencl-icd clinfo`.
4. Export library paths: `export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH`.
5. Verify `/usr/lib/wsl/lib` contains `libd3d12.so`.
6. Run `clinfo`.

Note: I also tried using the official AMDGPU-install script with `--no-dkms` --usecase=opencl, but it failed with "undefined symbol: amdgpu_va_get_start_addr".

### Expected Behavior

The output of `clinfo` should list the AMD Radeon RX 9070 XT device under the "Microsoft Direct3D12" platform or "AMD Accelerated Parallel Processing" platform, allowing OpenCL applications (like GROMACS) to utilize the GPU.

### Actual Behavior

`clinfo` shows 0 devices found.

Output from clinfo:
Number of platforms: 1
Platform Name: Clover (or AMD Accelerated Parallel Processing)
Number of devices: 0

When checking logs/errors with AMD proprietary drivers, it suggests missing kernel symbols for RDNA 4 addressing in the WSL kernel: "dlerror: /lib/x86_64-linux-gnu/libRusticlOpenCL.so.1: undefined symbol: amdgpu_va_get_start_addr"

### Diagnostic Logs

dlerror: libpocl.so.2.8.0: cannot open shared object file: No such file or directory
dlerror: /lib/x86_64-linux-gnu/libRusticlOpenCL.so.1: undefined symbol: amdgpu_va_get_start_addr
dlerror: libMesaOpenCL.so.1: cannot open shared object file: No such file or directory
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3602.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns

Platform Name AMD Accelerated Parallel Processing
Number of devices 0

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report in WSL 2 on Ubuntu 24.04 with clinfo and the listed OpenCL packages, then inspect /usr/lib/wsl/lib and the reported libRusticlOpenCL.so.1 symbol error. No source file or test is named; done means the RX 9070 XT appears as an available OpenCL device and GROMACS can use it.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.