Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZE_RESULT_ERROR_UNSUPPORTED_FEATURE when running zeDeviceGetStatus #102

Open
jjfumero opened this issue Oct 28, 2022 · 3 comments
Open

ZE_RESULT_ERROR_UNSUPPORTED_FEATURE when running zeDeviceGetStatus #102

jjfumero opened this issue Oct 28, 2022 · 3 comments

Comments

@jjfumero
Copy link

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: 32c4431
  • Intel HD Graphics: UHD Graphics 770
@jandres742
Copy link

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.

@eero-t
Copy link

eero-t commented Nov 17, 2022

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.

@eero-t
Copy link

eero-t commented Nov 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants