mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d4b9b8f99f
commit
24682e702b
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user