oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
218 stars 96 forks source link

Add a name field for the driver properties ? #4

Open fwyzard opened 4 years ago

fwyzard commented 4 years ago

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".

oscarbg commented 4 years ago

+1

kevin-harms commented 3 years ago

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?

fwyzard commented 3 years ago

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

kevin-harms commented 3 years ago

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

fwyzard commented 3 years ago

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.