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
0a9d6a09
"src/nni_manager/vscode:/vscode.git/clone" did not exist on "06413f1af5d1d1a302ab833716e8add1bc0d5eb6"
Commit
0a9d6a09
authored
Jul 12, 2018
by
Paul
Browse files
Formatting
parent
e1b6ce59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/targets/miopen/miopen_target.cpp
src/targets/miopen/miopen_target.cpp
+8
-5
No files found.
src/targets/miopen/miopen_target.cpp
View file @
0a9d6a09
...
...
@@ -311,21 +311,24 @@ struct miopen_write_literals
{
std
::
string
name
()
const
{
return
"miopen::write_literals"
;
}
void
apply
(
program
&
p
)
const
{
for
(
auto
ins
:
iterator_for
(
p
))
void
apply
(
program
&
p
)
const
{
for
(
auto
ins
:
iterator_for
(
p
))
{
if
(
ins
->
op
.
name
()
==
"@literal"
)
{
literal
l
=
ins
->
lit
;
auto
pre
=
p
.
add_literal
(
l
);
auto
pre
=
p
.
add_literal
(
l
);
p
.
replace_instruction
(
ins
,
hip_write
{},
pre
);
}
}
}
};
std
::
vector
<
pass
>
miopen_target
::
get_passes
(
context
&
)
const
{
return
{
miopen_pass
{},
miopen_write_literals
{}};
}
std
::
vector
<
pass
>
miopen_target
::
get_passes
(
context
&
)
const
{
return
{
miopen_pass
{},
miopen_write_literals
{}};
}
std
::
string
miopen_target
::
name
()
const
{
return
"miopen"
;
}
...
...
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