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
35067b2b
Commit
35067b2b
authored
Jun 20, 2019
by
nmostafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Couple of KW fixes
parent
c401fe7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
compiler.cpp
src/contrib/mlir/compiler.cpp
+2
-1
memory_manager.hpp
src/contrib/mlir/memory_manager.hpp
+1
-1
No files found.
src/contrib/mlir/compiler.cpp
View file @
35067b2b
...
...
@@ -266,7 +266,6 @@ void MLIRCompiler::build_ng_dialect()
create_return
();
}
namespace
ngraph
{
namespace
runtime
...
...
@@ -347,6 +346,7 @@ void MLIRCompiler::bind_arguments()
// malloc here since that's what allocateMemRefArguments use
// TODO (nmostafa): Better way of doing this ? Use builder allocator ?
MLIRMemMgr
**
mem_mgr_arg
=
reinterpret_cast
<
MLIRMemMgr
**>
(
malloc
(
sizeof
(
void
*
)));
NGRAPH_CHECK
(
mem_mgr_arg
!=
nullptr
);
*
mem_mgr_arg
=
&
get_mem_mgr
();
// inserting memory manager ptr in right location ?
NGRAPH_CHECK
(
m_invoke_args
.
size
()
==
get_mem_mgr_arg_id
(
func
));
...
...
@@ -434,6 +434,7 @@ mlir::StaticFloatMemRef* MLIRCompiler::allocate_memref_descriptor(mlir::Type typ
// We should expand this with different types and dynamic MemRefs
auto
*
descriptor
=
reinterpret_cast
<
mlir
::
StaticFloatMemRef
*>
(
malloc
(
sizeof
(
mlir
::
StaticFloatMemRef
)));
NGRAPH_CHECK
(
descriptor
!=
nullptr
,
"NULL MemRef descriptor"
);
descriptor
->
data
=
nullptr
;
return
descriptor
;
}
...
...
src/contrib/mlir/memory_manager.hpp
View file @
35067b2b
...
...
@@ -17,8 +17,8 @@
#pragma once
#include <stdint.h>
#include <vector>
#include <stdlib.h>
#include <vector>
namespace
ngraph
{
namespace
runtime
...
...
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