Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-16 Thread Michael Niedermayer
On Mon, Mar 16, 2015 at 01:20:25PM -0500, Srikanth G wrote: > Attaching the patch file per Wei's request applied thanks [..,] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are best at talking, realize last or never when they are wrong. signature.asc De

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-16 Thread Srikanth G
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 > 1 file changed, 4 insertions(+) > > di

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-09 Thread Srikanth G
Hi Michael, I did the fix and verified compilation and run. Confirmed it works. Here is the patch --- libavutil/opencl.c | 4 1 file changed, 4 insertions(+) diff --git a/libavutil/opencl.c b/libavutil/opencl.c index 36cb6fe..2df5653 100644 --- a/libavutil/opencl.c +++ b/libavutil/opencl

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-07 Thread Michael Niedermayer
On Sat, Mar 07, 2015 at 10: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" is not declared in that function

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-07 Thread Srikanth G
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. -Srikanth On Sat, Mar 7, 2015 at 3:24 AM, Michael Niedermayer wrote: > On Fri, Mar 06, 2015 at 03:30:00PM +0100, Michael Niedermayer wrote: > > On Fri, Mar 06

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-07 Thread Michael Niedermayer
On Fri, Mar 06, 2015 at 03:30:00PM +0100, Michael Niedermayer wrote: > On 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 fl

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-06 Thread Michael Niedermayer
On 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 cleared. > > This causes an error when an OpenCL kernel is trie

Re: [FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-06 Thread Wei Gao
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 cleared. > This causes an error when an OpenCL kernel is tried on different OpenCL > devices on same platform. > > Here is the p

[FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-05 Thread 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 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

[FFmpeg-devel] [PATCH] is_compiled flag not being cleared in av_opencl_uninit

2015-03-04 Thread 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 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