[FFmpeg-devel] [PATCH 1/2] libavutil/libavfilter: opencl wrapper based on comments on 20130401

Stefano Sabatini stefasab at gmail.com
Mon Apr 1 14:00:59 CEST 2013


On date Monday 2013-04-01 13:37:23 +0200, Michael Niedermayer encoded:
> On Mon, Apr 01, 2013 at 12:23:51PM +0200, Stefano Sabatini wrote:
> > On date Monday 2013-04-01 17:52:13 +0800, Wei Gao encoded:
> > > 
> > 
> > > From 8d7554e834fbb36bdfaaf384905320bce5bc29f0 Mon Sep 17 00:00:00 2001
> > > From: highgod0401 <highgod0401 at gmail.com>
> > > Date: Mon, 1 Apr 2013 17:46:11 +0800
> > > Subject: [PATCH 1/2] opencl wrapper based on comments on 20130401
> > > 
> > > ---
> > >  configure          |   4 +
> > >  libavutil/Makefile |   3 +
> > >  libavutil/opencl.c | 719 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> > >  libavutil/opencl.h | 201 +++++++++++++++
> > >  4 files changed, 927 insertions(+)
> > >  create mode 100644 libavutil/opencl.c
> > >  create mode 100644 libavutil/opencl.h
> > 
> > Missing APIchanges entry and libavutil minor bump, but these can be
> > added by the committer.
> 
> I didnt bump libavutil as i think the API/ABI is not stable yet
> 
> [...]
> > No more comments from me, we can fix it later in case of need as the
> > API is marked as experimental, and other minor formatting nits can be
> > fixed when it's already in.
> 
> patch applied

CC	libavutil/opencl.o
libavutil/opencl.c:113:6: error: ‘CL_COMPILE_PROGRAM_FAILURE’ undeclared here (not in a function)
libavutil/opencl.c:114:6: error: ‘CL_LINKER_NOT_AVAILABLE’ undeclared here (not in a function)
libavutil/opencl.c:115:6: error: ‘CL_LINK_PROGRAM_FAILURE’ undeclared here (not in a function)
libavutil/opencl.c:116:6: error: ‘CL_DEVICE_PARTITION_FAILED’ undeclared here (not in a function)
libavutil/opencl.c:117:6: error: ‘CL_KERNEL_ARG_INFO_NOT_AVAILABLE’ undeclared here (not in a function)
libavutil/opencl.c:153:6: error: ‘CL_INVALID_IMAGE_DESCRIPTOR’ undeclared here (not in a function)
libavutil/opencl.c:154:6: error: ‘CL_INVALID_COMPILER_OPTIONS’ undeclared here (not in a function)
libavutil/opencl.c:155:6: error: ‘CL_INVALID_LINKER_OPTIONS’ undeclared here (not in a function)
libavutil/opencl.c:156:6: error: ‘CL_INVALID_DEVICE_PARTITION_COUNT’ undeclared here (not in a function)

This with the ancient OpenCL 1.0 version shipped with my Debian/Ubuntu.

How can we check for the 1.2 version?
-- 
FFmpeg = Furious & Fabulous Monstrous Prodigious Enhancing Gorilla


More information about the ffmpeg-devel mailing list