prime-run
Run commands on dedicated Nvidia GPU
TLDR
Run command on dedicated Nvidia GPU
SYNOPSIS
prime-run command [arguments...]
DESCRIPTION
prime-run executes programs using a dedicated Nvidia GPU on hybrid graphics systems (Optimus). It sets environment variables to route OpenGL and Vulkan rendering to the discrete GPU instead of integrated graphics.
The tool is part of PRIME render offload, allowing selective use of the powerful GPU for specific applications while conserving power with integrated graphics for general use.
CAVEATS
Requires nvidia-prime package and proper driver setup. Only works with Nvidia proprietary drivers. Some applications may not respect the environment variables. Wayland support varies by compositor.
HISTORY
prime-run was introduced with NVIDIA's PRIME render offload support in driver version 435. It provides a simpler alternative to Bumblebee for hybrid graphics on Linux laptops.
SEE ALSO
nvidia-smi(1), optirun(1), switcheroo-control(1)
