File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1267,7 +1267,7 @@ static size_t getProgramCountLimit()
1267
1267
static size_t count = 0 ;
1268
1268
if (!initialized)
1269
1269
{
1270
- count = getConfigurationParameterForSize (" OPENCV_OPENCL_PROGRAM_CACHE" , 64 );
1270
+ count = getConfigurationParameterForSize (" OPENCV_OPENCL_PROGRAM_CACHE" , 0 );
1271
1271
initialized = true ;
1272
1272
}
1273
1273
return count;
@@ -1412,6 +1412,14 @@ struct Context::Impl
1412
1412
size_t sz = phash.size ();
1413
1413
if (limit > 0 && sz >= limit)
1414
1414
{
1415
+ static bool warningFlag = false ;
1416
+ if (!warningFlag)
1417
+ {
1418
+ printf (" \n WARNING: OpenCV-OpenCL:\n "
1419
+ " In-memory cache for OpenCL programs is full, older programs will be unloaded.\n "
1420
+ " You can change cache size via OPENCV_OPENCL_PROGRAM_CACHE environment variable\n\n " );
1421
+ warningFlag = true ;
1422
+ }
1415
1423
while (!cacheList.empty ())
1416
1424
{
1417
1425
size_t c = phash.erase (cacheList.back ());
You can’t perform that action at this time.
0 commit comments