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
815d84a4
Commit
815d84a4
authored
Mar 11, 2018
by
Jayaram Bobba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mkldnn preamble from generated code. No longer needed with mkldnnn emitter
parent
cf770aa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
cpu_emitter.cpp
src/ngraph/runtime/cpu/cpu_emitter.cpp
+0
-10
cpu_emitter.hpp
src/ngraph/runtime/cpu/cpu_emitter.hpp
+0
-2
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+0
-17
No files found.
src/ngraph/runtime/cpu/cpu_emitter.cpp
View file @
815d84a4
...
...
@@ -121,13 +121,6 @@ static string eigen_matrix_format(const ngraph::Shape& shape, const ngraph::Stri
return
ss
.
str
();
}
void
runtime
::
cpu
::
CPU_Emitter
::
emit_mkldnn_preamble
(
codegen
::
CodeWriter
&
writer
)
{
writer
<<
"// MKLDNN Preamble
\n
"
;
writer
<<
"#include <mkldnn.hpp>
\n
"
;
writer
<<
"using namespace mkldnn;
\n\n
"
;
}
namespace
ngraph
{
namespace
runtime
...
...
@@ -3194,9 +3187,6 @@ namespace ngraph
template
<>
void
CPU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
ReluBackprop
)
{
const
auto
&
arg_shape
=
args
[
0
].
get_shape
();
const
auto
&
result_shape
=
out
[
0
].
get_shape
();
if
(
runtime
::
cpu
::
mkldnn_utils
::
use_mkldnn_kernel
(
node
))
{
auto
&
mkldnn_emitter
=
external_function
->
get_mkldnn_emitter
();
...
...
src/ngraph/runtime/cpu/cpu_emitter.hpp
View file @
815d84a4
...
...
@@ -58,8 +58,6 @@ namespace ngraph
{
}
static
void
emit_mkldnn_preamble
(
codegen
::
CodeWriter
&
writer
);
private
:
static
std
::
string
emit_vector
(
const
TensorViewWrapper
&
,
const
std
::
string
&
name
=
""
);
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
815d84a4
...
...
@@ -291,18 +291,6 @@ void runtime::cpu::CPU_ExternalFunction::compile()
codegen
::
CodeWriter
writer
;
bool
include_mkldnn_headers
=
false
;
for
(
shared_ptr
<
Function
>
current_function
:
pass_manager
.
get_state
().
get_functions
())
{
for
(
shared_ptr
<
Node
>
node
:
current_function
->
get_ordered_ops
())
{
if
(
ngraph
::
runtime
::
cpu
::
mkldnn_utils
::
IsMKLDNNOp
(
*
node
))
{
include_mkldnn_headers
=
true
;
}
}
}
writer
+=
R"(// Generated by the nGraph CPU backend
#include <cmath>
...
...
@@ -352,11 +340,6 @@ using namespace ngraph::runtime;
writer
<<
"#include <tbb/flow_graph.h>
\n
"
;
}
if
(
include_mkldnn_headers
)
{
runtime
::
cpu
::
CPU_Emitter
::
emit_mkldnn_preamble
(
writer
);
}
string
pch_header_source
=
writer
.
get_code
();
// The "dso_handle" symbol is required by __cxa_atexit()
...
...
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