Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
227 Views

oneVPL - Device Discovery (Windows Os)

Hi,

The oneVPL library describe some functions used in Device Discovery, of which I can't find compare for Windows, for instance:

- int GetDeviceCount(VplDeviceType dtype)

- VplDeviceProperty *GetDeviceProperty(VplDeviceType dtype, uint32_t id)

Please someone may help me understand how to achieve this in windows OS.

Thanks

0 Kudos
3 Replies
Highlighted
Moderator
227 Views

Hi Gabriele,

Could you check the VPL spec 0.7 and see if it answers your question?

https://spec.oneapi.com/versions/latest/elements/oneVPL/source/index.html#device-discovery

But could you be more specific about your question? My understanding is, user uses this API to retrieve the device count from the current device, this API should be available on both Windows and Linux.

Mark

0 Kudos
Highlighted
227 Views

Hi Liu,

Thank you for reply.

I have read the spec VPL 0.7 and they are fine. But I can't find this kind of class (DeviceInfo) defined in any namespace none in a class.

So, the question is, where could be found these functions (or class DeviceInfo)?

In attach the only file of library (C:\Program Files (x86)\inteloneapi\vpl\2021.1-beta06\include\vpl\vpl.hpp) that contain the 'namespace vpl' where I supposed to find the vpl::DeviceInfo (but is not there)

In addiction a would like to point out that even the simple_encode, program sample used as reference from Visual
Studio 2017 to show the base-use-case, doesn't use the DeviceInfo class (why?)

Thanks

Gabriele

0 Kudos
Highlighted
Moderator
121 Views

Hi @Zanaboni__Gabriele 

I am not able to find these class references in the oneAPI spec for the API descriptions in latest spec https://spec.oneapi.com/versions/latest/elements/oneVPL/source/index.html 

I wonder if the documentation included these classes by mistake, as you observed in Beta 07 such documentation references weren't found in sample code. 

 

For the latest Beta 08 release, please check the landing page at: https://software.intel.com/content/www/us/en/develop/tools/oneapi/base-toolkit.html

The new source code is at: https://github.com/oneapi-src/oneVPL

 

Thank you again for your feedback.

 

Best Regards,

Luis

0 Kudos