microsoft / microsoft/WSL

No OpenCL platforms reported

Open
#6,951 62 comments 41 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GPU
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Windows Build Number

21382.1

WSL Version
  • WSL 2
  • WSL 1
Kernel Version

5.10.16.3

Distro Version

Ubuntu 20.04

Other Software

Inside WSL:
clinfo (for checking OpenCL platforms)
CUDA 11.3 (docker container runs with NVIDIA_DISABLE_REQUIRE=1, as it otherwise thinks it's running 11.0)
Docker 20.10.6, build 370c289 (with custom container)
nvidia-docker2 2.5.0-1

On Windows:
NVIDIA Graphics Driver for CUDA on WSL 470.14

Repro Steps

I installed the Nvidia drivers and docker as according to Nvidia's user guide
I am however running an older version of nvidia-docker2 (and dependencies) as according to a forum post here

Additionally, I have also installed the CUDA on WSL driver here

Steps:
Run clinfo (both in and outside of the Docker container)

Expected Behavior

clinfo should return the graphics card (in my case, GTX 970) as an OpenCL platform

Actual Behavior

clinfo reports 0 platforms available, both inside the container and just on WSL

Diagnostic Logs

cuda
nvidia-container-cli
glxinfo (from inside of container)
glxinfo (from WSL, outside of container)
wsl.etl

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with clinfo in WSL and inside the Docker container, then compare the attached CUDA, nvidia-container-cli, glxinfo, and WSL ETL diagnostics. Done means the GTX 970 is reported as an OpenCL platform both in WSL and in the container, or the issue is narrowed to a documented driver or runtime limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.