Some tools produce unsigned values that use only one or two bites but L0 specification does not have that resolution on the union for results. Therefore, the proposal is to extend zet_value_t to support them. Note that zet_value_type_t already supports ZET_VALUE_TYPE_UINT8 and ZET_VALUE_TYPE_UINT16
Summary
Some tools produce unsigned values that use only one or two bites but L0 specification does not have that resolution on the union for results. Therefore, the proposal is to extend zet_value_t to support them. Note that zet_value_type_t already supports ZET_VALUE_TYPE_UINT8 and ZET_VALUE_TYPE_UINT16
https://spec.oneapi.io/level-zero/latest/tools/api.html#_CPPv411zet_value_t https://spec.oneapi.io/level-zero/latest/tools/api.html#_CPPv416zet_value_type_t
Details
Motivation
Support tools that returns one and/or two bites results without casting to bigger result type.
Interoperability with Other APIs
N/A
Proposed APIs
N/A
New Enumerations
Extend zet_value_t
Usage example
extend https://spec.oneapi.io/level-zero/latest/tools/PROG.html#calculation to support uint8_t and uint16_t