Ubuntu - GPU - DRI_PRIME

DRI_PRIME is used to specify which GPU driver should be used when the system has multiple GPUs.

See: Specify which GPU should take priority


Example Usage

DRI_PRIME=0 glxinfo | grep "OpenGL renderer"

or

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"