Matt Oliver
c6bf660bef
opencl: Make init_mtx static with volatile lock
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Matt Oliver
5b9bb4d9ec
opencl: add support for non-pthread locking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Y.C. Liu
cebe06a0bf
avutil/opencl: fix a segmentfault in libavutil/opencl.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lenny Wang
64f73acd1d
cmdutils & opencl: add -opencl_bench option to test and show available OpenCL devices
...
Reviewed-by: Wei Gao <highgod0401@gmail.com>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lenny Wang
7b2534b0ea
libavutil & opencl: remove opencl default device type
...
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>
11 years ago
Lenny Wang
6682554790
avutil/opencl: compile kernels separately
...
Reviewed-by: Wei Gao <highgod0401@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lenny Wang
29664fab0c
OpenCL: convert meaningless "device id" output to "device name"
...
Approved-by: Wei Gao <highgod0401@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Clément Bœsch
cf6ed1f129
lavu/opencl: remove semi-colon from macro.
...
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
12 years ago
highgod0401
548101b553
lavu/opencl: add opencl public error API
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
6354a6ce52
lavu/opencl: fix bug of opencl options
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
6d7ec4fc2e
lavu/opencl:optimize compile kernel operation
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
8f99494c1c
avutil/opencl: merge opencl env to opencl context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
9d442b9cc0
opencl: add spec opencl device APIs 20130411
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
db2de94e95
avutil/opencl: add opencl device list APIs 20130411
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
99186f1fd2
fix bug of finding CPU device
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
cfaffb1ab7
avutil/opencl: replace assert by check and error message in av_opencl_init()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
322428c851
avutil/opencl: check strtol for failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
39406ea321
avutil/opencl: add check for the program number to create kernel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
57d77b3963
lavu/opencl: apply misc cosmetics fixes
...
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.
12 years ago
Michael Niedermayer
76071322a3
opencl: fix double ;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
highgod0401
189cbc1a03
opencl wrapper based on comments on 20130401
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago