Attaching the patch file per Wei's request
-Srikanth
On Mon, Mar 9, 2015 at 5:45 PM, Srikanth G wrote:
> Hi Michael,
>
> I did the fix and verified compilation and run.
> Confirmed it works.
>
> Here is the patch
>
>
> ---
> libavutil/opencl.c | 4 +
53:05AM -0600, Srikanth G wrote:
> > Hi Michael,
> >
> > Can you let me know the compilation errors?
> > I tried with this fix and things were working for me.
> >
> > I will try again though.
>
> you can checkout a fresh ffmpeg and apply the patch
> "i&q
Fri, Mar 06, 2015 at 07:34:06PM +0800, Wei Gao wrote:
> > > 2015-03-05 8:48 GMT+08:00 Srikanth G :
> > >
> > > > When OpenCL kernels are compiled, is_compiled flag is being set for
> each
> > > > kernel. But, in opencl uninit, this flag is not being clear
When OpenCL kernels are compiled, is_compiled flag is being set for each
kernel. But, in opencl uninit, this flag is not being cleared.
This causes an error when an OpenCL kernel is tried on different OpenCL
devices on same platform.
Here is the patch with a fix
>From df43e0aaad951c43fa7f4c9d9e07
When OpenCL kernels are compiled, is_compiled flag is being set for each
kernel. But, in opencl uninit, this flag is not being cleared.
This causes an error when an OpenCL kernel is tried on different OpenCL
devices on same platform.
Here is the patch with a fix
---
libavutil/opencl.c | 3 +++
1