Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface to retrieve kernel binary #247

Closed
echeresh opened this issue Nov 27, 2023 · 2 comments
Closed

Add interface to retrieve kernel binary #247

echeresh opened this issue Nov 27, 2023 · 2 comments
Labels
API: Core enhancement New feature or request

Comments

@echeresh
Copy link

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 jandres742 added enhancement New feature or request API: Core labels Nov 27, 2023
@jandres742
Copy link

jandres742 commented Nov 27, 2023

related UR: oneapi-src/unified-runtime#1130

@rwmcguir
Copy link
Contributor

Implemented by Commit 7ef52fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API: Core enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants