Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c3e409f9
Commit
c3e409f9
authored
Dec 22, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocl: update program cache defaults
parent
7a95e654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ocl.cpp
modules/core/src/ocl.cpp
+9
-1
No files found.
modules/core/src/ocl.cpp
View file @
c3e409f9
...
...
@@ -1267,7 +1267,7 @@ static size_t getProgramCountLimit()
static
size_t
count
=
0
;
if
(
!
initialized
)
{
count
=
getConfigurationParameterForSize
(
"OPENCV_OPENCL_PROGRAM_CACHE"
,
64
);
count
=
getConfigurationParameterForSize
(
"OPENCV_OPENCL_PROGRAM_CACHE"
,
0
);
initialized
=
true
;
}
return
count
;
...
...
@@ -1412,6 +1412,14 @@ struct Context::Impl
size_t
sz
=
phash
.
size
();
if
(
limit
>
0
&&
sz
>=
limit
)
{
static
bool
warningFlag
=
false
;
if
(
!
warningFlag
)
{
printf
(
"
\n
WARNING: OpenCV-OpenCL:
\n
"
" In-memory cache for OpenCL programs is full, older programs will be unloaded.
\n
"
" You can change cache size via OPENCV_OPENCL_PROGRAM_CACHE environment variable
\n\n
"
);
warningFlag
=
true
;
}
while
(
!
cacheList
.
empty
())
{
size_t
c
=
phash
.
erase
(
cacheList
.
back
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment