[vtkusers] vtkOpenGLGPUVolumeRayCastMapper on a specific GPU

Aashish Chaudhary aashish.chaudhary at kitware.com
Tue May 31 12:39:17 EDT 2011


For nvidia cards you can use gpu affinity

http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt

Hope it helps.

Thanks


On Tue, May 31, 2011 at 12:36 PM, chasank <chasank at gmail.com> wrote:
> Create an OpenGL context on your code, then,
>
> gl_vendor = (const char *) (glGetString(GL_VENDOR));
> gl_model = (const char *) (glGetString(GL_RENDERER));
> if ( strstr(gl_vendor, "ATI" ) != 0 )
> {
>    // make your arrangement
> }
> else if ( strstr(gl_vendor, "NVIDIA") != 0)
> {
>    // make your arrangement
> }
>
> GL_VENDOR just returns the name of the GPU vendor while GL_RENDERER returns
> the name of the GPU card.
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/vtkOpenGLGPUVolumeRayCastMapper-on-a-specific-GPU-tp4437454p4442569.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com



More information about the vtkusers mailing list