Ilya Lavrenov
f2a2467de3
enabled BufferPool
11 years ago
Zhigang Gong
2e49ca4903
Avoid unmap an umat(ocl) which hasn't been mapped at all.
...
According to opencl 1.2 spec 5.4.2:
enqueues a command to unmap a previously mapped region of a memory object.
...
CL_INVALID_VALUE if mapped_ptr is not a valid pointer returned by
clEnqueueMapBuffer, or clEnqueueMapImage for memobj.
So if the u->data is not from a clEnqueueMapBuffer call, we should not
call clEnqueueUnmapMemObject() unmap it. With this patch, the cases
./opencv_test_video --gtest_filter=OCL_Video/FarnebackOpticalFlow.Mat/*
could work well with beignet 0.9.1, Otherwise, it will get a
CL_INVALID_VALUE at the clEnqueueUnmapMemObject().
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
11 years ago
Ilya Lavrenov
2fe07abf83
use vectors for devices of all vendors
11 years ago
Alexander Alekhin
c5d3c08256
ocl: add try-catch for OpenCL device getter
11 years ago
Alexander Alekhin
157257b072
ocl: don't use OpenCL CPU device in default setup
11 years ago
Ilya Lavrenov
0528d2e2b3
added 32s to 32u conversion
11 years ago
Hans Johnson
4c7ed03b5f
COMP: Fix problem with narrowing in c++11
...
modules/core/src/arithm.cpp:345:51:
error: constant expression evaluates to 4294967295 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
static int CV_DECL_ALIGNED(16) v64f_absmask[] = { 0xffffffff, 0x7fffffff, 0xffffffff, 0x7fffffff };
^~~~~~~~~~
Converted to unsigned int. This variable is only used to initialize a bit pattern anywhy for a 128bit type.
11 years ago
Ilya Lavrenov
33173d900a
optimized cv::meanStdDev
11 years ago
Ilya Lavrenov
c83455d8a4
optimized cv::repeat
11 years ago
Ilya Lavrenov
1e5694e082
heuristic for Intel
11 years ago
GregoryMorse
b1443bc1bc
WinRT core compatibility fixes
...
Update system.cpp
Update system.cpp
Update ocl.cpp
Update matching.cpp
Update ocl.cpp
Update matching.cpp
11 years ago
Aaron Kunze
1f8b41f390
Optimizes filter2D for Intel GPUs
11 years ago
Aaron Kunze
ebbac3c66d
Optimizes OpenCL resize and optical flow to use image extension.
11 years ago
Ilya Lavrenov
19d470749b
added macro for denoting region for suppression of "Wdeprecated-declarations"
11 years ago
Alexander Alekhin
3578f0afe9
ocl: workaround for synchronization issue in ::map()
11 years ago
Alexander Alekhin
06738468af
TAPI: stiching: add custom OpenCL kernels for MultiBandBlender
11 years ago
Aaron Kunze
629ddf0bf8
Resolves bug #3450 (Improperly cleaning up resources in DllMain)
11 years ago
Konstantin Matskevich
c2355d3a12
case-insensitivity
11 years ago
Konstantin Matskevich
79fc3a6203
added gpu type selection in OPENCV_OPENCL_DEVICE parser
11 years ago
Ilya Lavrenov
eb8b4c58c7
fixed bug in cv::ocl::predictOptimalVectorWidth
11 years ago
Ilya Lavrenov
291458a859
generalized OpenCL version of cv::sepFilter2D; removed some restrictions and added 3-channels support
11 years ago
Konstantin Matskevich
f9f730c426
update error message
11 years ago
Konstantin Matskevich
eebf92ba58
fix for incorrect opencl device selection
11 years ago
Ilya Lavrenov
82e6edfba2
optimized sep filter
11 years ago
Ilya Lavrenov
6be7869ae8
fix for unsupported doubles
11 years ago
Alexander Alekhin
48196ad10b
ocl: cleanup workarounds
11 years ago
Ilya Lavrenov
2755ae5df9
experiments
11 years ago
Alexander Karsakov
8660588fe9
Pass vendor macro to opencl kernel
11 years ago
mlyashko
eb2e8a11fa
changed kernel.set to support unsuccssful set
11 years ago
Alexander Karsakov
c1dad2178c
Added Device:: isAMD,isIntel,isNvidia methods.
11 years ago
Alexander Alekhin
b9d68ef061
core/ocl: OpenCL build log improvements
11 years ago
Ilya Lavrenov
32eb38ec98
fixed defects from coverity.com
11 years ago
Ilya Lavrenov
0406898b9a
int2 -> ulong; to work properly with 3 channels
11 years ago
Alexander Alekhin
95e38e457f
core/umat: usage flags (with proposals from PR #2195 )
11 years ago
Alexander Alekhin
e371901dd9
ocl: workaround for failures with misaligned host buffers
11 years ago
Andrey Pavlenko
38f46eb3b4
fixing issues from coverity scan 1167937, 1167938, 1167939, 1127248 ( http://scan.coverity.com/projects/169?tab=Overview )
11 years ago
Ilya Lavrenov
563dc5aa38
implemented umat expressions
11 years ago
Ilya Lavrenov
2e8579fe9b
cleaned up super_resolution sample from old OCL
11 years ago
Ilya Lavrenov
c7fe162829
renamed **2 -> **
11 years ago
Ilya Lavrenov
d957e8e40d
attempt to fix pure virtual call in Mat::deallocate
11 years ago
Alexander Alekhin
485635310c
core/ocl: OpenCLBufferPool
11 years ago
Ilya Lavrenov
da5b316b4e
minor ocl.cpp refactoring
...
fix for cv::LUT and cv::transpose
11 years ago
Vadim Pisarevsky
30593ee55e
3rd attempt to prepare patch with improved OpenCL kernels of CascadeClassifier.
11 years ago
Ilya Lavrenov
d15bf6261a
redundant clFinish in upload since clEnqueueWriteBuffer above is already blocked
11 years ago
Ilya Lavrenov
50cf152977
cached commonly used device properties
11 years ago
Ilya Lavrenov
1ab1594d00
workaround
11 years ago
Ilya Lavrenov
372cdac07c
moved kernelToStr to ocl.hpp
11 years ago
Ilya Lavrenov
86353eb541
fix for PR 2196
11 years ago
Ilya Lavrenov
6d64907f18
async
11 years ago
Alexander Alekhin
f91f55927e
fix memory management problem
11 years ago