oneapi-src / oneapi-src/level-zero

Wrong error code after zeKernelCreate

Open
#53 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
335
Forks
140
Avg merge
12h 32m
Merged PRs (30d)
5

Description

I am getting this error code 0x78000004, after trying to create a SPIRV kernel with the wrong name. The error is not listed here:

https://spec.oneapi.com/level-zero/latest/core/api.html?highlight=zecommandlistclose#zekernelcreate

This error code code corresponds to an invalid argument:

ZE_RESULT_ERROR_INVALID_ARGUMENT = 0x78000004

https://spec.oneapi.com/level-zero/latest/core/api.html?highlight=zecommandlistclose#_CPPv432ZE_RESULT_ERROR_INVALID_ARGUMENT

However, following the documentation, it should be

ZE_RESULT_ERROR_INVALID_KERNEL_NAME = 0x78000011

https://spec.oneapi.com/level-zero/latest/core/api.html?highlight=zecommandlistclose#ze__api_8h_1a3ea791bcf22ddfc1d413579b12c22767ad719a3474cbfc829c6edb4c622e568d5

I am getting this for SPIR-V modules with OpenCL compute.

Some details about the environment:

Level Zero version: 284ccb089184180e34864a9f1e23971d3d736bd8
Platform: Intel(R) HD Graphics 630 [0x591b]
OpenCL version: OpenCL C 3.0
Driver: 21.12.19358

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the zeKernelCreate behavior described in the issue and compare the returned code for a SPIR-V module with an invalid kernel name against the linked Level Zero API documentation. Reproduce the case using the stated driver and platform details; the issue is done when the implementation and documented result agree, with the relevant behavior clarified or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.