4 Replies Latest reply on Mar 2, 2011 5:25 AM by himanshu.gautam

    Viewing x86/x64 assembly

    omion
      Is there any easy way to view the x86 (or preferably x64) assembly of an OpenCL kernel? Stream KernelAnalyzer does not want to output an x86 assembly listing for some reason.

      What I do now is write to a null pointer in the kernel, then run a MSVS debug with a temp host program, then disassemble the code where it throws an exception. This takes a long time and I need to actually put together a program to run the kernel, so it's not very easy to optimize a kernel for it.

      Is there any way to just dump the assembly to a file somewhere without having to run a program to get it?

      Also, when will Stream KernelAnalyzer support this? The x86 format has been there a while, but it never does anything.