OneDNN teams suggests to use SDE to dump the JITTed code like the following:
You can dump the JITTed kernel via the following c++ code:
void dump(const void *code, size_t code_size)
{
FILE *file = fopen("dump.bin", "wb+");
if (file) {
size_t unused = fwrite(code, code_size, 1, file);
fclose(file);