Kernel build failure

Hey,

I’m a beginner with OpenCL. My kernel is failing to build, although no compile-errors are displayed. When I print the build info with clGetProgramBuildInfo, all I get as output is “Error returned by cvms_element_build_from_source”. I’ve tried googling this error, to no avail. Does anyone know how I can collect more information about why my kernel isn’t compiling? My code for getting the build info is


//build program
clStatus = clBuildProgram(program, 1, device_list, NULL, NULL, NULL);
if (clStatus != CL_SUCCESS) {
	//get build log
	size_t len;
	char *buffer;
	int ec = clStatus; //save
	clStatus = clGetProgramBuildInfo(program, device_list[0], CL_PROGRAM_BUILD_LOG, 0, NULL, &len);
	buffer = (char *)malloc(len);
	clStatus = clGetProgramBuildInfo(program, device_list[0], CL_PROGRAM_BUILD_LOG, len, buffer, NULL);
	fprintf(stdout, "Kernel build failed with status %d, build-log: %s
", ec, buffer);
	free(buffer);
} else {
	fprintf(stdout, "Program build successful
");	
}

Fafner