mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 05:40:56 +00:00
opencl: Print error string when compilation fails
This commit is contained in:
parent
590008e696
commit
d2a1029724
@ -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);
|
status = clBuildProgram(program, 1, &(opencl_ctx.device_id), build_opts, NULL, NULL);
|
||||||
if (status != CL_SUCCESS) {
|
if (status != CL_SUCCESS) {
|
||||||
av_log(&opencl_ctx, AV_LOG_ERROR,
|
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;
|
program = NULL;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user