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).
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
Follow: https://github.com/microsoft/wslg
wsl --install -d Ubuntu
in ubuntu:
sudo apt update
sudo apt upgrade
sudo apt install mesa-utils
glxinfo | grep renderer
If the output is not llvmpipe, you have hardware accelerated OpenGL drivers on WSL :)
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.