How can I control which part of the graphics card is used when starting a particular application? I want to see how much my application uses the GPU.
If you are developing versions of Visual Studio 2013 and 2015, you can use their GPU tool:
Screenshot from MSDN:
In addition, it seems that you can diagnose any application with it, and not just Visual Studio projects:
In addition to Visual Studio projects, you can also collect data on GPU usage in any free .exe applications that you are sitting on. Just open the executable as a solution in Visual Studio, and then run a diagnostic session, and you can configure it using the GPU. Thus, if you use some type of engine or alternative development environment, you can still collect data on it until you are done with the executable.
Source: http://blogs.msdn.com/b/ianhu/archive/2014/12/16/gpu-usage-for-directx-in-visual-studio.aspx
From Unix.SE : a simple command line utility called gpustat exists: https://github.com/wookayin/gpustat .
gpustat
This is free software (MIT license) and is packaged in pypi. This is the nvidia-smi .
nvidia-smi