Created
May 31, 2013 22:14
-
-
Save dylanvee/5688326 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (status == CL_BUILD_PROGRAM_FAILURE) { | |
// Determine the size of the log | |
size_t log_size; | |
clGetProgramBuildInfo(program, devices[0], CL_PROGRAM_BUILD_LOG, 0, NULL, &log_size); | |
// Allocate memory for the log | |
char *log = (char *) malloc(log_size); | |
// Get the log | |
clGetProgramBuildInfo(program, devices[0], CL_PROGRAM_BUILD_LOG, log_size, log, NULL); | |
// Print the log | |
printf("%s\n", log); | |
exit(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment