title: Running CUDA GUI samples from a passive (inactive) GPU
body: <p>I managed to successfully run CUDA programs on a <code>GeForce GTX 750 Ti</code> while using a <code>AMD Radeon HD 7900</code> as the rendering device (actually connected to the display) using <a href="http://streamcomputing.eu/blog/2011-10-12/both-nvidia-gtx-and-amd-radeon-on-linux/" rel="nofollow">this guide</a>; for instance, the <em>Vector Addition</em> sample runs nicely. However, I can only run applications that do not produce visual output. For example, the <em>Mandelbrot</em> CUDA sample does not run and fails with an error:</p>
  
  <pre><code>Error: failed to get minimal extensions for demo:
    Missing support for:  GL_ARB_pixel_buffer_object
  This sample requires:
    OpenGL version 1.5
    GL_ARB_vertex_buffer_object
    GL_ARB_pixel_buffer_object
  </code></pre>
  
  <p>The error originates from asking <code>glewIsSupported()</code> for these extensions. Is there any way to run an application, like these CUDA samples, so that the CUDA operations are run on the GTX as usual but the Window is drawn on the Radeon card? I tried to convince <em>Nsight Eclipse</em> to run a remote debugging session, with my own PC as the remote host, but something else failed right away. Is this supposed to actually work? Could it be possible to use <a href="http://www.virtualgl.org/" rel="nofollow">VirtualGL</a>?</p>