Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
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
ngraph
Commits
1827cf83
Commit
1827cf83
authored
Nov 03, 2018
by
Sergey Shalnov
Committed by
Robert Kimball
Nov 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Function no cache usage control (#1959)
parent
516fbe13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+14
-0
intelgpu_backend.hpp
src/ngraph/runtime/intelgpu/intelgpu_backend.hpp
+1
-0
No files found.
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
1827cf83
...
...
@@ -349,6 +349,15 @@ runtime::intelgpu::IntelGPUBackend::IntelGPUBackend()
m_cldnn_dump_enable
=
true
;
}
// Delete compiled Function from the cache after execution.
// It helps in cases where a lot of small functions used
// in case of memory consumption. It slow overall execution
// because Function compilation required every time
if
(
getenv
(
"NGRAPH_INTELGPU_FUNCTION_CACHE_DISABLE"
)
!=
nullptr
)
{
m_function_cache_disabled
=
true
;
}
cldnn
::
engine_configuration
cldnn_configuration
(
profiling
);
ocl_engine
=
make_shared
<
cldnn
::
engine
>
(
cldnn_configuration
);
}
...
...
@@ -1614,6 +1623,11 @@ bool runtime::intelgpu::IntelGPUBackend::call(shared_ptr<Function> func,
mem_after_call
);
}
if
(
m_function_cache_disabled
)
{
remove_compiled_function
(
func
);
}
return
true
;
}
...
...
src/ngraph/runtime/intelgpu/intelgpu_backend.hpp
View file @
1827cf83
...
...
@@ -85,6 +85,7 @@ private:
bool
m_dump_graph_enable
=
false
;
bool
m_cldnn_graph_optimize
=
true
;
bool
m_cldnn_dump_enable
=
false
;
bool
m_function_cache_disabled
=
false
;
std
::
string
m_cldnn_dump_dir
=
std
::
string
(
"intelgpu_codegen"
);
std
::
string
delim
=
std
::
string
(
":"
);
};
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