From f2a2467de36f081bc88228bb38e581b76283b7a2 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 10 Jul 2014 18:13:01 +0400 Subject: [PATCH] enabled BufferPool --- modules/core/src/ocl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index ed72ffc7f..3c148741a 100644 --- 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() {