Monday, June 20, 2011

Printing OpenCL binary...

I found this snippet (originally in C++) somewhere that I can't remember. Some changes to standard C and voilà how to write out your OpenCL program binary:

Just replace the cpProgram variable by yours. See below an example of result (NVidia PTX code):

No comments: