I recently bought a GPGPU (a Nvidia GEFORCE GTX 950 card) so I could use CUDA wrappers in my C code. After installing CUDA 8.0 and plugging in my monitors into my onboard graphics card (not the GPGPU), I run "nvidia-smi" and I see the following:
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1054 G /usr/lib/xorg/Xorg 305MiB |
| 0 1805 G compiz 84MiB |
| 0 4179 G ...MainFrame --force-fieldtrials=*AppBannerT 80MiB |
| 0 5224 G unity-control-center 1MiB |
| 0 6925 C python3 52MiB |
+-----------------------------------------------------------------------------+
Python3 is the only thing I actually want using this device. How can I ensure that my GPGPU is not being used by Xorg or any process that is for graphics? I know my onboard graphics card can use two monitors no problem, so I would really like it if these processes were instead ran on that.
In case it matters, I am running Ubuntu 16.04 on an ASUS machine.