ZE_RESULT_ERROR_UNSUPPORTED_FEATURE when running zeDeviceGetStatus
Running the function zeDeviceGetStatus produces the error code 78000003, which is ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
result = zeDeviceGetStatus(device);
if (result != ZE_RESULT_SUCCESS) {
std::cout << "[JNI] Error in zeDeviceGetStatus with code: " << std::hex << result << std::dec << std::endl;
if (result == ZE_RESULT_ERROR_UNSUPPORTED_FEATURE) {
std::cout << "[JNI] Error ZE_RESULT_ERROR_UNSUPPORTED_FEATURE " << std::endl;
}
}
Output of this snippet:
[JNI] Error in zeDeviceGetStatus with code: 78000003
[JNI] Error ZE_RESULT_ERROR_UNSUPPORTED_FEATURE
However, following the Level Zero SPEC, https://spec.oneapi.io/level-zero/latest/core/api.html?highlight=zedevicegetstatus#zedevicegetstatus, this function does not return such as error code.
Does this function need hardware support? Is this an error in the implementation?
Some context:
- OS: OpenSUSE 15.4
- Compute-Runtime: 22.23.23405
- Level Zero Loader: https://github.com/oneapi-src/level-zero/commit/32c4431d731bc2ba7b5b88b32335063efa65e076
- Intel HD Graphics: UHD Graphics 770
hi @jjfumero . UNSUPPORTED_FEATURE is a generic error code we return to indicate feature has not been implemented by the L0 driver, because of either SW or HW support, or something else. In this case, L0 GPU driver is returning that, indicating it hasn't been implemented.
We can update the spec with that error code to make it clearer.
Spec could have some common "Return error values" section which would list error values that could be returned from functions. Documentation for individual functions could then just link the common error section, and document exceptions to that.
We can update the spec with that error code to make it clearer.
Spec could have some common "Return error values" section which would list error values that could be returned from functions. Documentation for individual functions could then just link the common error section, and document exceptions to that.
@jandres742 Was either of those done?
Or should @jjfumero file such bug against the spec project (before closing this): https://github.com/oneapi-src/level-zero-spec/issues