title: Code to limit GPU usage
body: <p>Is there a command/function/variable that can be set in CUDA code that limits the GPU usage percent?  I'd like to modify an open-source project called Flam4CUDA so that that option exists.  They way it is now, it uses as much of all GPUs present as possible, with the effect being that the temperatures skyrocket (obviously).  In an effort to keep temps down over long periods of computing, I'd like to be able to tell the program to use, say, 50% of each GPU (or even have different percentages for different GPUs, or maybe also be able to select which GPU(s) to use).  Any ideas?</p>
  
  <p>If you want to see the code, it's available with "svn co <a href="https://flam4.svn.sourceforge.net/svnroot/flam4" rel="nofollow">https://flam4.svn.sourceforge.net/svnroot/flam4</a> flam4".</p>