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
c88ab964
Commit
c88ab964
authored
Mar 09, 2019
by
Paul
Browse files
Remove unused functions
parent
6870a7f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
src/schedule.cpp
src/schedule.cpp
+0
-24
No files found.
src/schedule.cpp
View file @
c88ab964
...
...
@@ -127,13 +127,6 @@ struct stream_info
bool
has_stream
(
instruction_ref
ins
)
const
{
return
contains
(
ins2stream
,
ins
);
}
bool
different
(
const
std
::
vector
<
std
::
size_t
>&
v
)
const
{
if
(
v
.
size
()
<
2
)
return
false
;
return
not
std
::
all_of
(
v
.
begin
(),
v
.
end
(),
[
&
](
std
::
size_t
x
)
{
return
x
==
v
.
front
();
});
}
template
<
class
F
>
bool
different
(
F
f
,
std
::
size_t
stream
)
const
{
...
...
@@ -235,23 +228,6 @@ struct stream_info
return
result
;
}
std
::
vector
<
std
::
size_t
>
wait_for
(
instruction_ref
ins
)
const
{
std
::
vector
<
std
::
size_t
>
result
;
get_streams_from
(
ins
,
get_inputs
())([
&
](
auto
s
)
{
result
.
push_back
(
s
);
return
true
;
});
// Remove duplicates
std
::
sort
(
result
.
begin
(),
result
.
end
());
result
.
erase
(
std
::
unique
(
result
.
begin
(),
result
.
end
()),
result
.
end
());
// Remove the merged stream
auto
it
=
std
::
find
(
result
.
begin
(),
result
.
end
(),
get_stream
(
ins
));
if
(
it
!=
result
.
end
())
result
.
erase
(
it
);
return
result
;
}
std
::
unordered_map
<
instruction_ref
,
std
::
vector
<
std
::
vector
<
instruction_ref
>>>
find_concurrent_instructions
(
program
&
p
)
{
...
...
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