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
d416bfe4
Commit
d416bfe4
authored
Mar 05, 2019
by
Paul
Browse files
Formatting
parent
8a8b94c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/schedule.cpp
src/schedule.cpp
+11
-5
No files found.
src/schedule.cpp
View file @
d416bfe4
...
@@ -159,11 +159,17 @@ struct stream_info
...
@@ -159,11 +159,17 @@ struct stream_info
};
};
}
}
template
<
class
...
Ts
>
template
<
class
...
Ts
>
bool
is_merge_point
(
instruction_ref
ins
,
Ts
...
xs
)
const
{
return
different
(
get_streams
(
ins
,
get_inputs
()),
xs
...);
}
bool
is_merge_point
(
instruction_ref
ins
,
Ts
...
xs
)
const
{
return
different
(
get_streams
(
ins
,
get_inputs
()),
xs
...);
}
template
<
class
...
Ts
>
template
<
class
...
Ts
>
bool
is_split_point
(
instruction_ref
ins
,
Ts
...
xs
)
const
{
return
different
(
get_streams
(
ins
,
get_outputs
()),
xs
...);
}
bool
is_split_point
(
instruction_ref
ins
,
Ts
...
xs
)
const
{
return
different
(
get_streams
(
ins
,
get_outputs
()),
xs
...);
}
std
::
vector
<
std
::
size_t
>
wait_for
(
instruction_ref
ins
)
const
std
::
vector
<
std
::
size_t
>
wait_for
(
instruction_ref
ins
)
const
{
{
...
@@ -177,7 +183,7 @@ struct stream_info
...
@@ -177,7 +183,7 @@ struct stream_info
result
.
erase
(
std
::
unique
(
result
.
begin
(),
result
.
end
()),
result
.
end
());
result
.
erase
(
std
::
unique
(
result
.
begin
(),
result
.
end
()),
result
.
end
());
// Remove the merged stream
// Remove the merged stream
auto
it
=
std
::
find
(
result
.
begin
(),
result
.
end
(),
get_stream
(
ins
));
auto
it
=
std
::
find
(
result
.
begin
(),
result
.
end
(),
get_stream
(
ins
));
if
(
it
!=
result
.
end
())
if
(
it
!=
result
.
end
())
result
.
erase
(
it
);
result
.
erase
(
it
);
return
result
;
return
result
;
}
}
...
...
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