I am using ATI RV770 graphics card, OpenCl 1.0 and ati-stream-sdk-v2.3-lnx64 on linux to write OpenCL programs.
everything went fine, but at the line "clBuildProgram(program, num_devices, devices_id, options, NULL, NULL);". I am getting error "program failed to Build". To check errors of kernel code I used following function ....
if(clBuildProgram(program, num_devices, devices_id, options, NULL, NULL) != CL_SUCCESS)
printf("Error building program\n");
size_t length = 0;
err = clGetProgramBuildInfo(
if(err == CL_INVALID_DEVICE)
if(err == CL_INVALID_VALUE)
if(err == CL_INVALID_PROGRAM)
printf("BLANK???%s : %lu \n", buffer,length);
But Buffer string not printing anything why?
I also used malloc() to firstly get log_size as given below But it still not displaying anything....
printf("log_size = %lu\n", (unsigned long)log_size); ////It is displaying the size 207326632960...
build_log = (char* )malloc((log_size+1));