1 Reply Latest reply on Nov 21, 2011 10:52 AM by evk8888

    clBuildProgram

    evk8888
      how to use parameter -- void (*pfn_notify)

      Hi,

       

      I would like to have an example of how to use clbuildprogram() with pfn_notify functionality (notification routine) so that the clbuildprogram can return immediately. any help??

       

      Thanks!!

        • clBuildProgram
          evk8888

          Hi guys I have found a example for notification routine... so its returns immediately..

           

          void pfn_notify(const char *errinfo, const void *private_info, size_t cb, void *user_data)

          {

          fprintf(stderr, "OpenCL Error (via pfn_notify): %s\n", errinfo);

          }



          clCreateContext(NULL, 1, devices, &pfn_notify, NULL, &_err);