primusrun
client-side GPU offloading for NVIDIA Optimus
Install
- All systems
-
curl cmd.cat/primusrun.sh
- Debian
-
apt-get install primus
- Ubuntu
-
apt-get install primus
- Arch Linux
-
pacman -S primus
- Kali Linux
-
apt-get install primus
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install primus
- Dockerfile
- dockerfile.run/primusrun
primus
client-side GPU offloading for NVIDIA Optimus
Primus is a shared library that provides OpenGL and GLX APIs and implements low-overhead local-only client-side OpenGL offloading via GLX forking, similar to VirtualGL. It intercepts GLX calls and redirects GL rendering to a secondary X display, presumably driven by a faster GPU. On swapping buffers, rendered contents are read back using a PBO and copied onto the drawable it was supposed to be rendered on in the first place. Primus is currently intended to be used alongside Bumblebee and provides a drop-in replacement for optirun (i.e. "primusrun").