Skip to content

Instantly share code, notes, and snippets.

@SimonDanisch
Last active May 22, 2025 09:41
Show Gist options
  • Save SimonDanisch/2b2ae2b3b7037e071e2c60a05f911745 to your computer and use it in GitHub Desktop.
Save SimonDanisch/2b2ae2b3b7037e071e2c60a05f911745 to your computer and use it in GitHub Desktop.

Always run wsl --update first. Also make sure to run Windows update + make sure all GPU drivers are up to date (google $(GPU_NAME) update treiber windows).

OpenSuse:

Install OpenSuse tumbleweed via appstore. Then:

sudo zypper refresh
sudo zypper update

Install vulkan drivers: https://en.opensuse.org/Vulkan Finally put into ~/.bashrc

export GALLIUM_DRIVER=d3d12
. ~/.bashrc
sudo zypper install Mesa-demo-x

Ubuntu

Follow: https://github.com/microsoft/wslg

wsl --install -d Ubuntu

in ubuntu:

sudo apt update 
sudo apt upgrade
sudo apt install mesa-utils

Make sure it works:

glxinfo | grep renderer

If the output is not llvmpipe, you have hardware accelerated OpenGL drivers on WSL :)

Verify with GLMakie

Install julia:

curl -fsSL https://install.julialang.org | sh

run Julia REPL and:

]add GLMakie
using GLMakie
using GLMakie.ModernGL
display(scatter(1:4))
# the below needs an open GLMakie window
renderer = unsafe_string(glGetString(GL_RENDERER))

The string should output your GPU name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment