Commit 5440a9b8 authored by Paul's avatar Paul
Browse files

Fix compile errors on gcc 5

parent 0902008e
...@@ -49,18 +49,18 @@ struct stream_info ...@@ -49,18 +49,18 @@ struct stream_info
{ {
fix([&](auto self, auto ins) { fix([&](auto self, auto ins) {
// If weight is zero then stop // If weight is zero then stop
if(weights[ins] == 0) if(this->weights[ins] == 0)
return; return;
// Only assign streams if not already assigned // Only assign streams if not already assigned
if(not has_stream(ins)) if(not this->has_stream(ins))
set_stream(ins, stream); this->set_stream(ins, stream);
instruction_ref child = p.end(); instruction_ref child = p.end();
std::size_t w = 0; std::size_t w = 0;
for(auto i : ins->inputs()) 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 // 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); self(i);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment