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
5440a9b8
Commit
5440a9b8
authored
Mar 04, 2019
by
Paul
Browse files
Fix compile errors on gcc 5
parent
0902008e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/schedule.cpp
src/schedule.cpp
+5
-5
No files found.
src/schedule.cpp
View file @
5440a9b8
...
...
@@ -49,18 +49,18 @@ struct stream_info
{
fix
([
&
](
auto
self
,
auto
ins
)
{
// If weight is zero then stop
if
(
weights
[
ins
]
==
0
)
if
(
this
->
weights
[
ins
]
==
0
)
return
;
// Only assign streams if not already assigned
if
(
not
has_stream
(
ins
))
set_stream
(
ins
,
stream
);
if
(
not
this
->
has_stream
(
ins
))
this
->
set_stream
(
ins
,
stream
);
instruction_ref
child
=
p
.
end
();
std
::
size_t
w
=
0
;
for
(
auto
i
:
ins
->
inputs
())
{
const
auto
weight
=
weights
[
i
];
const
auto
weight
=
this
->
weights
[
i
];
// Skip instruction that already have stream assignment or too low of weights
if
(
has_stream
(
i
)
or
weight
<=
min_partition_threshold
)
if
(
this
->
has_stream
(
i
)
or
weight
<=
min_partition_threshold
)
{
self
(
i
);
}
...
...
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