summaryrefslogtreecommitdiff
path: root/libavutil/opencl.c
Commit message (Collapse)AuthorAge
* OpenCL: Fix ABI incompatibility issuesManeesh Gupta2015-04-28
| | | | | | | | | AVOpenCLDeviceNode and AVOpenCLPlatformNode used fixed static buffer for holding the device and platform name. This patch modifies these structures to use pointers instead. The memory required to hold the names is now dynamically allocated, the size for which is determined by querying appropriate OpenCL runtime APIs. Signed-off-by: Maneesh Gupta <maneesh.gupta@amd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* OpenCL uninit bug fix - clear is_compiled flagsrikanth2015-03-16
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Revert "avutil/opencl: is_compiled flag not being cleared in av_opencl_uninit"Michael Niedermayer2015-03-07
| | | | | | | Fixed build with opencl enabled Found-by: WJ Liu This reverts commit 0f2359b86926ed33da4bd64ca76d84d03d5ad380.
* avutil/opencl: is_compiled flag not being cleared in av_opencl_uninitSrikanth G2015-03-06
| | | | | | | | | | | | 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 Reviewed-by; Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil: remove obsolete FF_API_OLD_OPENCL cruftJames Almer2014-09-15
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opencl: use av_malloc(z)_array()Michael Niedermayer2014-08-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* opencl: Make init_mtx static with volatile lockMatt Oliver2014-05-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* opencl: add support for non-pthread lockingMatt Oliver2014-05-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: fix a segmentfault in libavutil/opencl.cY.C. Liu2014-04-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cmdutils & opencl: add -opencl_bench option to test and show available ↵Lenny Wang2013-12-09
| | | | | | | | OpenCL devices Reviewed-by: Wei Gao <highgod0401@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil & opencl: remove opencl default device typeLenny Wang2013-12-02
| | | | | | | | | CL_DEVICE_TYPE_DEFAULT makes duplicated device entries for each platform using av_opencl_get_device_list() Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Reviewed-by: highgod0401 <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: compile kernels separatelyLenny Wang2013-11-05
| | | | | Reviewed-by: Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* OpenCL: convert meaningless "device id" output to "device name"Lenny Wang2013-09-17
| | | | | Approved-by: Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opencl: remove semi-colon from macro.Clément Bœsch2013-05-24
| | | | | | | | Fixes compilation when the macros are empty and the label above ends up containing no statement. Also makes usage of these macro consistent (some already have a semi colon, some others don't). Fixes Ticket #2603
* lavu/opencl: add opencl public error APIhighgod04012013-05-05
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opencl: fix bug of opencl optionshighgod04012013-05-02
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opencl:optimize compile kernel operationhighgod04012013-04-22
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: merge opencl env to opencl contexthighgod04012013-04-12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* opencl: add spec opencl device APIs 20130411highgod04012013-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: add opencl device list APIs 20130411highgod04012013-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix bug of finding CPU devicehighgod04012013-04-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: replace assert by check and error message in av_opencl_init()highgod04012013-04-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: check strtol for failurehighgod04012013-04-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opencl: add check for the program number to create kernelhighgod04012013-04-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opencl: apply misc cosmetics fixesStefano Sabatini2013-04-01
| | | | | | Split long lines, reindent code, add missing spaces between operators, remove possibly confusing comment from av_opencl_buffer_read_image() doxy, and use designated initializers for openclutils_class.
* opencl: fix double ;Michael Niedermayer2013-04-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* opencl wrapper based on comments on 20130401highgod04012013-04-01
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>