Linux command
prime-run 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
prime-run [command]
Example
prime-run steam
Verify
prime-run glxinfo | grep "OpenGL renderer"
Example
prime-run vulkaninfo | grep "deviceName"
说明
prime-run executes programs using a dedicated Nvidia GPU on hybrid graphics systems (Optimus). It is a thin wrapper that sets the environment variables __NV_PRIME_RENDER_OFFLOAD=1, __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0, __GLX_VENDOR_LIBRARY_NAME=nvidia, and __VK_LAYER_NV_optimus=NVIDIA_only before executing the given command. 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.
FAQ
What is the prime-run command used for?
prime-run executes programs using a dedicated Nvidia GPU on hybrid graphics systems (Optimus). It is a thin wrapper that sets the environment variables __NV_PRIME_RENDER_OFFLOAD=1, __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0, __GLX_VENDOR_LIBRARY_NAME=nvidia, and __VK_LAYER_NV_optimus=NVIDIA_only before executing the given command. 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.
How do I run a basic prime-run example?
Run `prime-run [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more prime-run examples?
This page includes 4 examples for prime-run, plus related commands for nearby Linux tasks.