title: OpenCL online compilation: get assembly from cl::program or cl::kernel
body: <p>I'm running kernel benchmarks with OpenCL. I know that I can compile kernels offline with various tools from OpenCL vendors (i.e. <code>ioc64</code> or <code>poclcc</code>). The problem is that I get performance results that I cannot explain with the assembly from these tools, the OpenCL runtime overhead or similar.</p>
  
  <p>I would like to see the assembly of online compiled kernels that are compiled and executed by my benchmark program. <strong>Any ways to do that?</strong></p>
  
  <p>My approach is to get this assembly somewhere from the <code>cl::program</code> or <code>cl::kernel</code> objects but I haven't found any way to do that. I appreciate your advice or solutions.</p>