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
1f819bf1
Commit
1f819bf1
authored
Mar 03, 2019
by
Paul
Browse files
Formatting
parent
235e78ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
test/include/test.hpp
test/include/test.hpp
+2
-2
test/schedule_test.cpp
test/schedule_test.cpp
+4
-2
No files found.
test/include/test.hpp
View file @
1f819bf1
...
@@ -36,11 +36,11 @@ inline std::ostream& operator<<(std::ostream& s, std::nullptr_t)
...
@@ -36,11 +36,11 @@ inline std::ostream& operator<<(std::ostream& s, std::nullptr_t)
return
s
;
return
s
;
}
}
template
<
class
T
>
template
<
class
T
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
std
::
vector
<
T
>&
v
)
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
std
::
vector
<
T
>&
v
)
{
{
char
delim
=
'{'
;
char
delim
=
'{'
;
for
(
auto
&&
x
:
v
)
for
(
auto
&&
x
:
v
)
{
{
s
<<
delim
<<
" "
<<
x
;
s
<<
delim
<<
" "
<<
x
;
delim
=
','
;
delim
=
','
;
...
...
test/schedule_test.cpp
View file @
1f819bf1
...
@@ -56,7 +56,9 @@ struct wait_event
...
@@ -56,7 +56,9 @@ struct wait_event
std
::
string
name
()
const
{
return
"wait_event"
;
}
std
::
string
name
()
const
{
return
"wait_event"
;
}
migraphx
::
shape
compute_shape
(
const
std
::
vector
<
migraphx
::
shape
>&
)
const
{
return
{};
}
migraphx
::
shape
compute_shape
(
const
std
::
vector
<
migraphx
::
shape
>&
)
const
{
return
{};
}
migraphx
::
argument
compute
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
argument
>&
)
const
migraphx
::
argument
compute
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
argument
>&
)
const
{
{
return
{};
return
{};
}
}
...
@@ -127,7 +129,7 @@ std::vector<std::size_t> get_wait_for(std::size_t wait_on, std::vector<std::size
...
@@ -127,7 +129,7 @@ std::vector<std::size_t> get_wait_for(std::size_t wait_on, std::vector<std::size
std
::
vector
<
std
::
size_t
>
get_wait_for
(
migraphx
::
instruction_ref
ins
)
std
::
vector
<
std
::
size_t
>
get_wait_for
(
migraphx
::
instruction_ref
ins
)
{
{
auto
wait_ins
=
std
::
prev
(
ins
);
auto
wait_ins
=
std
::
prev
(
ins
);
if
(
wait_ins
->
name
()
!=
"wait_event"
)
if
(
wait_ins
->
name
()
!=
"wait_event"
)
return
{};
return
{};
auto
wf
=
migraphx
::
any_cast
<
wait_event
>
(
wait_ins
->
get_operator
()).
wait_for
;
auto
wf
=
migraphx
::
any_cast
<
wait_event
>
(
wait_ins
->
get_operator
()).
wait_for
;
std
::
sort
(
wf
.
begin
(),
wf
.
end
());
std
::
sort
(
wf
.
begin
(),
wf
.
end
());
...
...
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