Request to mention the existence of prime-run
, which is a script that comes with nvidia-prime
.
Currently, the documentation says this:
Vulkan applications must be launched with __NV_PRIME_RENDER_OFFLOAD=1
to render on the dGPU. GLX applications must be launched with __NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia
to render on the dGPU.
While true, this is highly unwieldly for commandline users. Adding the following line to the above would help usability significantly:
The prime-run
script included with nvidia-prime
sets these variables for you; meaning you can simply run prime-run $APP
to start an application with the dGPU.