Closed fwinter closed 2 years ago
@fwinter please open the issue in https://github.com/intel/compute-runtime, as your error seems to be related with implementation.
In particular, your error is: ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED
So it seems that your kernel is not correctly linked, or you are missing some files/symbols.
Okay, thanks! Will do.
Creating a kernel (
zeKernelCreate
) failed on a kernel that I built with IRBuilder and then translated by LLVMSPIRLib (see below). The call failed returning number 2013265944 which does not match any of these: ZE_RESULT_ERROR_UNINITIALIZED, ZE_RESULT_ERROR_DEVICE_LOST, ZE_RESULT_ERROR_INVALID_ARGUMENT. I have no idea what went wrong. Best guess: I didn't provide the required attributes/metadata?!Here's the source IR (self built):
If I look at a simple kernel generated by clang from an OpenCL source I see a lot of decorations at the kernel:
Which of these attributes and metadata are needed so that a Spirv kernel can be created with
zeKernelCreate
? There is no documentation on this, or is there?