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
75bf66e4
Commit
75bf66e4
authored
Dec 13, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address review issues
parent
0014de5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
compiler.cpp
src/ngraph/codegen/compiler.cpp
+0
-6
execution_engine.cpp
src/ngraph/codegen/execution_engine.cpp
+0
-2
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+5
-4
cpu_external_function.hpp
src/ngraph/runtime/cpu/cpu_external_function.hpp
+1
-1
No files found.
src/ngraph/codegen/compiler.cpp
View file @
75bf66e4
...
...
@@ -65,12 +65,6 @@ static HeaderCache s_header_cache;
static
StaticCompiler
s_static_compiler
;
static
std
::
mutex
m_mutex
;
shared_ptr
<
SectionMemoryManager
>
get_mm
()
{
NGRAPH_INFO
;
return
std
::
make_shared
<
SectionMemoryManager
>
();
}
Compiler
::
Compiler
()
{
}
...
...
src/ngraph/codegen/execution_engine.cpp
View file @
75bf66e4
...
...
@@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <iostream>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
75bf66e4
...
...
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include <cstdlib>
#include <fstream>
#include <memory>
#include <string>
...
...
@@ -170,7 +171,7 @@ runtime::cpu::CPU_ExternalFunction::CPU_ExternalFunction(
const
shared_ptr
<
ngraph
::
Function
>&
function
,
bool
release_function
)
:
ngraph
::
runtime
::
ExternalFunction
(
function
,
release_function
)
,
m_compiled_function
(
nullptr
)
,
m_emit_
debug
(
true
)
,
m_emit_
timing
(
std
::
getenv
(
"NGRAPH_CPU_EMIT_TIMING"
)
!=
nullptr
)
{
}
...
...
@@ -227,7 +228,7 @@ using namespace ngraph::runtime;
writer
<<
"void *__dso_handle = 0;
\n\n
"
;
if
(
m_emit_
debu
g
)
if
(
m_emit_
timin
g
)
{
writer
<<
"// Declare debug timers
\n
"
;
vector
<
string
>
names
;
...
...
@@ -410,12 +411,12 @@ using namespace ngraph::runtime;
auto
tv
=
output
.
get_tensor_view
();
out
.
push_back
(
TensorViewWrapper
(
tv
));
}
if
(
m_emit_
debu
g
)
if
(
m_emit_
timin
g
)
{
emit_debug_function_entry
(
writer
,
node
.
get
(),
in
,
out
);
}
handler
->
second
(
&
emitter
,
node
.
get
(),
in
,
out
);
if
(
m_emit_
debu
g
)
if
(
m_emit_
timin
g
)
{
emit_debug_function_exit
(
writer
,
node
.
get
(),
in
,
out
);
}
...
...
src/ngraph/runtime/cpu/cpu_external_function.hpp
View file @
75bf66e4
...
...
@@ -72,7 +72,7 @@ namespace ngraph
std
::
unique_ptr
<
codegen
::
Compiler
>
m_compiler
;
std
::
unique_ptr
<
codegen
::
ExecutionEngine
>
m_execution_engine
;
bool
m_emit_
debu
g
;
bool
m_emit_
timin
g
;
};
}
}
...
...
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