projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f1a0a9
)
enabled BufferPool
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Thu, 10 Jul 2014 14:13:01 +0000
(18:13 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Fri, 11 Jul 2014 08:21:10 +0000
(12:21 +0400)
modules/core/src/ocl.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/ocl.cpp
b/modules/core/src/ocl.cpp
index
ed72ffc
..
3c14874
100644
(file)
--- a/
modules/core/src/ocl.cpp
+++ b/
modules/core/src/ocl.cpp
@@
-3494,9
+3494,8
@@
public:
OpenCLBufferPoolImpl()
: currentReservedSize(0), maxReservedSize(0)
{
- // Note: Buffer pool is disabled by default,
- // because we didn't receive significant performance improvement
- maxReservedSize = getConfigurationParameterForSize("OPENCV_OPENCL_BUFFERPOOL_LIMIT", 0);
+ int poolSize = ocl::Device::getDefault().isIntel() ? 1 << 27 : 0;
+ maxReservedSize = getConfigurationParameterForSize("OPENCV_OPENCL_BUFFERPOOL_LIMIT", poolSize);
}
virtual ~OpenCLBufferPoolImpl()
{