enabled BufferPool

This commit is contained in:
Ilya Lavrenov 2014-07-10 18:13:01 +04:00
parent 0f1a0a9818
commit f2a2467de3

View File

@ -3494,9 +3494,8 @@ public:
OpenCLBufferPoolImpl() OpenCLBufferPoolImpl()
: currentReservedSize(0), maxReservedSize(0) : currentReservedSize(0), maxReservedSize(0)
{ {
// Note: Buffer pool is disabled by default, int poolSize = ocl::Device::getDefault().isIntel() ? 1 << 27 : 0;
// because we didn't receive significant performance improvement maxReservedSize = getConfigurationParameterForSize("OPENCV_OPENCL_BUFFERPOOL_LIMIT", poolSize);
maxReservedSize = getConfigurationParameterForSize("OPENCV_OPENCL_BUFFERPOOL_LIMIT", 0);
} }
virtual ~OpenCLBufferPoolImpl() virtual ~OpenCLBufferPoolImpl()
{ {