[BUG] Claude Science Unable to Access GPU on WSL2

Open 💬 0 comments Opened Jul 14, 2026 by nffaruk

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Since there isn't dedicated public Claude Science repo, I'm posting the issue here: GPU is inaccessible on WSL2, even though Settings -> Capabilities -> Compute -> Host GPU was toggled on and WSL2 was rebooted. It seems that this (solved) codex issue of /dev/dxg not exposed by bubblewrap is likely the same problem here.

What Should Happen?

nvidia-smi and code that relies on CUDA should run successfully

Error Messages/Logs

nvidia-smi
exited with code 255
stdout
Failed to initialize NVML: GPU access blocked by the operating system
Failed to properly shut down NVML: GPU access blocked by the operating system

Steps to Reproduce

  1. Enable the Host GPU toggle in settings
  2. Start a new session and ask Claude to run nvidia-smi

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

claude-science 0.1.18-dev.20260709.t211149.shab3f5130 (release, public)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗