vtkGPUInfoList does not work with OpenGL2

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

vtkGPUInfoList does not work with OpenGL2

Csaba Pinter

Hi all,

 

I’m trying to use the vtkGPUInfoList in VTK 9 built using OpenGL backend 2 to get the GPU memory. On both Windows 10 (with GeForce 1060) and MacOSX (10.13 Mid-2014), GetNumberOfGPUs returns 0 after Probe. Which is not surprising, because the instantiated info list object is of type vtkDummyGPUInfoList, which, according to the documentation, is “Useful when an OS specific implementation is not available”.

 

Is vtkGPUInfoList supposed to work with OpenGL2? Should I use another class?

 

Thanks,

csaba


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkGPUInfoList does not work with OpenGL2

Csaba Pinter

Hi again,

 

I’d appreciate any information about using GPU info list with the new OpenGL2 backend. Please see below.

 

Thanks,

csaba

 

From: vtkusers <[hidden email]> On Behalf Of Csaba Pinter
Sent: Thursday, June 7, 2018 15:57
To: [hidden email]
Subject: [vtkusers] vtkGPUInfoList does not work with OpenGL2

 

Hi all,

 

I’m trying to use the vtkGPUInfoList in VTK 9 built using OpenGL backend 2 to get the GPU memory. On both Windows 10 (with GeForce 1060) and MacOSX (10.13 Mid-2014), GetNumberOfGPUs returns 0 after Probe. Which is not surprising, because the instantiated info list object is of type vtkDummyGPUInfoList, which, according to the documentation, is “Useful when an OS specific implementation is not available”.

 

Is vtkGPUInfoList supposed to work with OpenGL2? Should I use another class?

 

Thanks,

csaba


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkGPUInfoList does not work with OpenGL2

Ken Martin
It has not been ported over to the new OpenGL2 backend. You could try taking the old version from the OpenGL1 backend and porting it over.

On Tue, Jun 12, 2018 at 11:56 AM, Csaba Pinter <[hidden email]> wrote:

Hi again,

 

I’d appreciate any information about using GPU info list with the new OpenGL2 backend. Please see below.

 

Thanks,

csaba

 

From: vtkusers <[hidden email]> On Behalf Of Csaba Pinter
Sent: Thursday, June 7, 2018 15:57
To: [hidden email]
Subject: [vtkusers] vtkGPUInfoList does not work with OpenGL2

 

Hi all,

 

I’m trying to use the vtkGPUInfoList in VTK 9 built using OpenGL backend 2 to get the GPU memory. On both Windows 10 (with GeForce 1060) and MacOSX (10.13 Mid-2014), GetNumberOfGPUs returns 0 after Probe. Which is not surprising, because the instantiated info list object is of type vtkDummyGPUInfoList, which, according to the documentation, is “Useful when an OS specific implementation is not available”.

 

Is vtkGPUInfoList supposed to work with OpenGL2? Should I use another class?

 

Thanks,

csaba


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers




--
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.  Thank you.

_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkGPUInfoList does not work with OpenGL2

Csaba Pinter

Thanks for the answer!

 

Noted. I’ll take a look if I get there before anybody else :)

 

Best,

csaba

 

From: Ken Martin <[hidden email]>
Sent: Tuesday, June 12, 2018 12:04
To: Csaba Pinter <[hidden email]>
Cc: [hidden email]
Subject: Re: [vtkusers] vtkGPUInfoList does not work with OpenGL2

 

It has not been ported over to the new OpenGL2 backend. You could try taking the old version from the OpenGL1 backend and porting it over.

 

On Tue, Jun 12, 2018 at 11:56 AM, Csaba Pinter <[hidden email]> wrote:

Hi again,

 

I’d appreciate any information about using GPU info list with the new OpenGL2 backend. Please see below.

 

Thanks,

csaba

 

From: vtkusers <[hidden email]> On Behalf Of Csaba Pinter
Sent: Thursday, June 7, 2018 15:57
To: [hidden email]
Subject: [vtkusers] vtkGPUInfoList does not work with OpenGL2

 

Hi all,

 

I’m trying to use the vtkGPUInfoList in VTK 9 built using OpenGL backend 2 to get the GPU memory. On both Windows 10 (with GeForce 1060) and MacOSX (10.13 Mid-2014), GetNumberOfGPUs returns 0 after Probe. Which is not surprising, because the instantiated info list object is of type vtkDummyGPUInfoList, which, according to the documentation, is “Useful when an OS specific implementation is not available”.

 

Is vtkGPUInfoList supposed to work with OpenGL2? Should I use another class?

 

Thanks,

csaba


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers



 

--

Ken Martin PhD

Distinguished Engineer
Kitware Inc.

101 East Weaver Street
Carrboro, North Carolina
27510 USA

This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.  Thank you.


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkGPUInfoList does not work with OpenGL2

ianl
We have had reasonable success with including the vtkDirectXGPUInfoList.cxx
and .h files from the OpenGL directory in our project, then instantiating
the class directly. You will need the DirectX SDK installed (as you would
have needed to with the original implementation).

Note that this also affects the resampling code that deals with textures
larger than the GPU can handle in
vtkSmartVolumeMapper/vtkGPUVolumeRayCastMapper::GetReductionRatio which we
have had to do our own implementation of as the OpenGL2 implementation is
currently a stub that returns a ratio of 1. Hopefully it will get
re-instated properly at some stage if enough people ask for it. Our current
solution is a bit too hacky to submit as a proper change.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkGPUInfoList does not work with OpenGL2

Csaba Pinter
We need a platform-independent solution, so I cannot use the DirectX one directly, but I'll give this some thought.

Thanks for the reply, I appreciate the information!

-----Original Message-----
From: vtkusers <[hidden email]> On Behalf Of ianl
Sent: Tuesday, June 19, 2018 06:33
To: [hidden email]
Subject: Re: [vtkusers] vtkGPUInfoList does not work with OpenGL2

We have had reasonable success with including the vtkDirectXGPUInfoList.cxx and .h files from the OpenGL directory in our project, then instantiating the class directly. You will need the DirectX SDK installed (as you would have needed to with the original implementation).

Note that this also affects the resampling code that deals with textures larger than the GPU can handle in vtkSmartVolumeMapper/vtkGPUVolumeRayCastMapper::GetReductionRatio which we have had to do our own implementation of as the OpenGL2 implementation is currently a stub that returns a ratio of 1. Hopefully it will get re-instated properly at some stage if enough people ask for it. Our current solution is a bit too hacky to submit as a proper change.



--
Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943203788&sdata=iRf4j0hNvMOVIMN0UTuJ62T2Qrlh3us%2FYogfl5O6Wb4%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943203788&sdata=4UxhT27YmZsPrzAXcBezaE%2FhXxNCyZjVwDGbGaCpTus%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943203788&sdata=hOth4DoHSm9ViDVWJI2AqM9xgdO7ZW3AQtDI%2FoAbX8Q%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943203788&sdata=F7KAQe3YgILs9jLFjUKGl%2Fw7Djyoc5a4IBwDVNLPooI%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943213797&sdata=NFNf52qIaDX0tEqfLSIdp8vEPna7WmRf0qvOTFO3Ebw%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C54e2b19ee1d549caac9208d5d5d00ef8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636650011943213797&sdata=3JBvSKIjyIoUrMTTGmpxyhI7kotZmSrZGWpn3XS7c10%3D&reserved=0
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers