diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-10-12 02:38:49 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-10-17 01:16:50 -0700 |
commit | d2a1029724f525fec2510b24a095b36f93194abc (patch) | |
tree | 482b72b257b1d6acf641481fc242dc885b401d1b | |
parent | 590008e6961906ab0f191924910b9b0a7fd9c750 (diff) | |
download | ffmpeg-d2a1029724f525fec2510b24a095b36f93194abc.tar.gz |
opencl: Print error string when compilation fails
-rw-r--r-- | libavutil/opencl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/opencl.c b/libavutil/opencl.c index 868649321f..c2956fda9b 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; } |