oneapi-src / level-zero-spec

MIT License
18 stars 27 forks source link

Add interface to retrieve kernel binary #247

Open echeresh opened 11 months ago

echeresh commented 11 months ago

With OpenCL we can use clGetKernelInfo() to access the kernel binary:

clGetKernelInfo(kernel, CL_KERNEL_BINARY_PROGRAM_INTEL);
// Dump binary to a file ...
// Use iga64 to disassemble:
// iga64 -d ...

Level Zero is missing a similar API. There is zeModuleGetNativeBinary() but it returns a *module* binary which can't be used with iga64.

jandres742 commented 11 months ago

related UR: https://github.com/oneapi-src/unified-runtime/issues/1130