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
b474dbef
Commit
b474dbef
authored
Mar 19, 2019
by
pruthvi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use AlignedBuffer instead of CPUAlignedBuffer
parent
a07588df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
cpu_call_frame.cpp
src/ngraph/runtime/cpu/cpu_call_frame.cpp
+2
-2
cpu_runtime_context.hpp
src/ngraph/runtime/cpu/cpu_runtime_context.hpp
+2
-5
No files found.
src/ngraph/runtime/cpu/cpu_call_frame.cpp
View file @
b474dbef
...
...
@@ -17,7 +17,6 @@
#include <algorithm>
#include "ngraph/runtime/aligned_buffer.hpp"
#include "ngraph/runtime/cpu/cpu_aligned_buffer.hpp"
#include "ngraph/runtime/cpu/cpu_call_frame.hpp"
#include "ngraph/runtime/cpu/cpu_external_function.hpp"
#include "ngraph/runtime/cpu/cpu_tensor_view.hpp"
...
...
@@ -146,6 +145,7 @@ void runtime::cpu::CPU_CallFrame::setup_runtime_context()
size_t
alignment
=
runtime
::
cpu
::
CPU_ExternalFunction
::
s_memory_pool_alignment
;
ngraph
::
runtime
::
cpu
::
CPUAllocator
*
allocator
=
nullptr
;
ngraph
::
runtime
::
Allocator
*
_allocator
=
nullptr
;
if
(
m_framework_allocator
&&
m_framework_deallocator
)
{
auto
fw_allocator
=
...
...
@@ -160,7 +160,7 @@ void runtime::cpu::CPU_CallFrame::setup_runtime_context()
for
(
auto
buffer_size
:
m_external_function
->
get_memory_buffer_sizes
())
{
auto
buffer
=
new
CPUAlignedBuffer
(
buffer_size
,
alignment
,
allocator
);
auto
buffer
=
new
AlignedBuffer
(
buffer_size
,
alignment
,
_
allocator
);
ctx
->
memory_buffers
.
push_back
(
buffer
);
}
const
auto
&
mkldnn_emitter
=
m_external_function
->
get_mkldnn_emitter
();
...
...
src/ngraph/runtime/cpu/cpu_runtime_context.hpp
View file @
b474dbef
...
...
@@ -39,10 +39,7 @@ namespace ngraph
{
namespace
runtime
{
namespace
cpu
{
class
CPUAlignedBuffer
;
}
class
AlignedBuffer
;
}
class
State
;
}
...
...
@@ -64,7 +61,7 @@ namespace ngraph
bool
*
p_en
;
bool
first_iteration
;
mkldnn
::
primitive
*
const
*
mkldnn_primitives
;
std
::
vector
<
CPU
AlignedBuffer
*>
memory_buffers
;
std
::
vector
<
AlignedBuffer
*>
memory_buffers
;
char
*
const
*
mkldnn_workspaces
;
tbb
::
flow
::
graph
*
G
;
tbb
::
global_control
*
c
;
...
...
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