feature: Add experimental API for retrieval of kernel binary program data

Related-To: NEO-11651

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2024-09-23 23:17:03 +00:00
committed by Compute-Runtime-Automation
parent d4b9b8f99f
commit 24682e702b
10 changed files with 196 additions and 2 deletions

View File

@@ -18,6 +18,12 @@ zexKernelGetBaseAddress(
return L0::Kernel::fromHandle(toInternalType(hKernel))->getBaseAddress(baseAddress);
}
ze_result_t ZE_APICALL
zeIntelKernelGetBinaryExp(
ze_kernel_handle_t hKernel, size_t *pSize, char *pKernelBinary) {
return L0::Kernel::fromHandle(toInternalType(hKernel))->getKernelProgramBinary(pSize, pKernelBinary);
}
} // namespace L0
extern "C" {
@@ -28,4 +34,10 @@ zexKernelGetBaseAddress(
uint64_t *baseAddress) {
return L0::zexKernelGetBaseAddress(hKernel, baseAddress);
}
ZE_APIEXPORT ze_result_t ZE_APICALL
zeIntelKernelGetBinaryExp(
ze_kernel_handle_t hKernel, size_t *pSize, char *pKernelBinary) {
return L0::zeIntelKernelGetBinaryExp(hKernel, pSize, pKernelBinary);
}
}