Skip to content

Show PTX and ISA from OpenCL kernel

magnum edited this page Oct 6, 2015 · 5 revisions
  1. Have JtR save a "binary" (actually PTX) of the kernel. This can be achieved by setting DUMP_BINARY environment variable. File name will be kernel's name plus a ".bin" extension, in current directory.
  2. ptxas --gpu-name sm_52 foo_kernel.cl.bin
  3. nvdisasm elf.o > kernel.isa

Note: ptxas complained about PTX file having "Unsupported .version 4.3; current version is '4.2'" but that was as easy as just editing it 😎