I have an OpenCL kernel that runs well but I want to look at the intermediate code. I use clGetProgramInfo with CL_PROGRAM_BINARIES to pull out the binary and save it to a text file. I've tried this with nVidia, AMD, an i7 and a Xeon.

In all of these cases the binary is unreadable --

I understand that on OS X the chunk of data returned is actually a binary plist. I've found instructions for using plutil to convert it to xml, and the conversion works...

But, that result is still unreadable ... I should see the PTX code there when I compile for AMD (for example). There's the expected clBinaryData key but the data under that key is still one big chunk of stuff, not human-readable IL instructions in text form.

I'd really like to examine the intermediate representation to assess inefficiencies in my use of the gpu. Is this simply not possible under Xcode? Or, what am I doing wrong? [Same problem under 10.7.3 and 10.7.4]

Thanks for any information!...