Skip to content
Snippets Groups Projects
Commit 3d90c996 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixing reduction in distributed vertical operations.

parent 53c48f25
No related branches found
No related tags found
1 merge request!89To/matrices adaptive csr
......@@ -70,7 +70,7 @@ auto DistributedExpressionArgMin( const Expression& expression )
else if( a == b && bIdx < aIdx )
aIdx = bIdx;
};
result = Algorithms::Reduction< Devices::Host >::reduceWithArgument( (IndexType) 0, (IndexType) nproc, reduction, fetch, std::numeric_limits< RealType >::max() );
result = Algorithms::Reduction< Devices::Host >::reduceWithArgument( (IndexType) 0, (IndexType) nproc, fetch, reduction, std::numeric_limits< RealType >::max() );
result.second = gatheredResults[ result.second ].second;
}
return result;
......@@ -129,7 +129,7 @@ auto DistributedExpressionArgMax( const Expression& expression )
else if( a == b && bIdx < aIdx )
aIdx = bIdx;
};
result = Algorithms::Reduction< Devices::Host >::reduceWithArgument( ( IndexType ) 0, (IndexType) nproc, reduction, fetch, std::numeric_limits< RealType >::lowest() );
result = Algorithms::Reduction< Devices::Host >::reduceWithArgument( ( IndexType ) 0, (IndexType) nproc, fetch, reduction, std::numeric_limits< RealType >::lowest() );
result.second = gatheredResults[ result.second ].second;
}
return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment