Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d0feb6b4
"vscode:/vscode.git/clone" did not exist on "a5d614de825e75f4557f18e8516216b7d0290c0d"
Commit
d0feb6b4
authored
Dec 10, 2021
by
Paul
Browse files
Formatting
parent
c83ee9f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/include/migraphx/module_ref.hpp
src/include/migraphx/module_ref.hpp
+1
-1
src/module.cpp
src/module.cpp
+4
-2
test/gpu/mlir.cpp
test/gpu/mlir.cpp
+1
-1
No files found.
src/include/migraphx/module_ref.hpp
View file @
d0feb6b4
...
@@ -9,7 +9,7 @@ namespace migraphx {
...
@@ -9,7 +9,7 @@ namespace migraphx {
inline
namespace
MIGRAPHX_INLINE_NS
{
inline
namespace
MIGRAPHX_INLINE_NS
{
struct
module
;
struct
module
;
using
module_ref
=
module
*
;
using
module_ref
=
module
*
;
using
const_module_ref
=
const
module
*
;
using
const_module_ref
=
const
module
*
;
}
// namespace MIGRAPHX_INLINE_NS
}
// namespace MIGRAPHX_INLINE_NS
...
...
src/module.cpp
100755 → 100644
View file @
d0feb6b4
...
@@ -309,8 +309,10 @@ instruction_ref module::move_instructions(instruction_ref src, instruction_ref d
...
@@ -309,8 +309,10 @@ instruction_ref module::move_instructions(instruction_ref src, instruction_ref d
return
src
;
return
src
;
}
}
std
::
vector
<
instruction_ref
>
module
::
insert_module_instructions
(
std
::
vector
<
instruction_ref
>
instruction_ref
ins
,
const_module_ref
m
,
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_ins
)
module
::
insert_module_instructions
(
instruction_ref
ins
,
const_module_ref
m
,
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_ins
)
{
{
std
::
vector
<
instruction_ref
>
mod_outputs
;
std
::
vector
<
instruction_ref
>
mod_outputs
;
for
(
auto
sins
:
iterator_for
(
*
m
))
for
(
auto
sins
:
iterator_for
(
*
m
))
...
...
test/gpu/mlir.cpp
View file @
d0feb6b4
...
@@ -36,7 +36,7 @@ std::string encode(std::string s)
...
@@ -36,7 +36,7 @@ std::string encode(std::string s)
migraphx
::
program
create_program_from_mlir
(
const
migraphx
::
module
&
mmlir
)
migraphx
::
program
create_program_from_mlir
(
const
migraphx
::
module
&
mmlir
)
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
auto
*
mm
=
p
.
get_main_module
();
auto
*
mm
=
p
.
get_main_module
();
auto
names
=
mmlir
.
get_parameter_names
();
auto
names
=
mmlir
.
get_parameter_names
();
std
::
vector
<
migraphx
::
instruction_ref
>
inputs
;
std
::
vector
<
migraphx
::
instruction_ref
>
inputs
;
std
::
transform
(
names
.
begin
(),
names
.
end
(),
std
::
back_inserter
(
inputs
),
[
&
](
const
auto
&
name
)
{
std
::
transform
(
names
.
begin
(),
names
.
end
(),
std
::
back_inserter
(
inputs
),
[
&
](
const
auto
&
name
)
{
...
...
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