cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

evk8888
Journeyman III

clBuildProgram

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!!

0 Likes
1 Reply
evk8888
Journeyman III

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);

0 Likes