level-zero icon indicating copy to clipboard operation
level-zero copied to clipboard

Add a name field for the driver properties ?

Open fwyzard opened this issue 5 years ago • 5 comments

The ze_device_properties_t struct has a name field to describe the device.

Would it make sense to add a name field to the ze_driver_properties_t as well, to describe the driver ? E.g. something like "Intel(R) LevelZero HD Graphics" or "Intel(R) LevelZero NEO driver".

fwyzard avatar Mar 21 '20 13:03 fwyzard

+1

oscarbg avatar Mar 28 '20 09:03 oscarbg

The current specification support several "name" fields. (brandName, modelName, vendorName) https://spec.oneapi.com/level-zero/latest/sysman/api.html#zes-device-properties-t

Can this issue be closed?

kevin-harms avatar Jun 15 '21 20:06 kevin-harms

The idea was to be able to query the properties of the driver, independently from any of the devices.

fwyzard avatar Jun 15 '21 21:06 fwyzard

Sorry, I missed that detail. There is a ze_driver_extension_properties_t with a name field. Not specific of what name is for or should be, at least spec allows for providing a name.

https://spec.oneapi.com/level-zero/latest/core/api.html#_CPPv432ze_driver_extension_properties_t https://spec.oneapi.com/level-zero/latest/core/api.html#_CPPv430zeDriverGetExtensionProperties18ze_driver_handle_tP8uint32_tP32ze_driver_extension_properties_t

kevin-harms avatar Jun 15 '21 21:06 kevin-harms

Mhm, from a quick look that seems to be a way to query the available extensions and their names - that is, the names of the extensions, not of the driver.

fwyzard avatar Jun 15 '21 21:06 fwyzard