[FFmpeg-cvslog] opencl: Print error string when compilation fails
Timothy Gu
git at videolan.org
Sat Oct 17 10:16:56 CEST 2015
ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Mon Oct 12 02:38:49 2015 -0700| [d2a1029724f525fec2510b24a095b36f93194abc] | committer: Timothy Gu
opencl: Print error string when compilation fails
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2a1029724f525fec2510b24a095b36f93194abc
---
libavutil/opencl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 8686493..c2956fd 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -484,7 +484,8 @@ cl_program av_opencl_compile(const char *program_name, const char *build_opts)
status = clBuildProgram(program, 1, &(opencl_ctx.device_id), build_opts, NULL, NULL);
if (status != CL_SUCCESS) {
av_log(&opencl_ctx, AV_LOG_ERROR,
- "Compilation failed with OpenCL program: %s\n", program_name);
+ "Compilation failed with OpenCL program '%s': %s\n",
+ program_name, av_opencl_errstr(status));
program = NULL;
goto end;
}
More information about the ffmpeg-cvslog
mailing list