enabled BufferPool
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 10 Jul 2014 14:13:01 +0000 (18:13 +0400)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Fri, 11 Jul 2014 08:21:10 +0000 (12:21 +0400)
modules/core/src/ocl.cpp

index ed72ffc..3c14874 100644 (file)
@@ -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()
     {