From 20459748647069bf6fb65140eaa3ec4f86fe5f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Thu, 23 Jan 2020 23:05:54 +0100 Subject: [PATCH] Uncommenting sparse matrix assignment code for the same devices. --- src/TNL/Matrices/SparseMatrix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TNL/Matrices/SparseMatrix.hpp b/src/TNL/Matrices/SparseMatrix.hpp index cf4472922b..d3641e0306 100644 --- a/src/TNL/Matrices/SparseMatrix.hpp +++ b/src/TNL/Matrices/SparseMatrix.hpp @@ -688,7 +688,7 @@ operator=( const RHSMatrix& matrix ) auto rowLocalIndexes_view = rowLocalIndexes.getView(); columns_view = paddingIndex; - /*if( std::is_same< DeviceType, RHSDeviceType >::value ) + if( std::is_same< DeviceType, RHSDeviceType >::value ) { const auto segments_view = this->segments.getView(); auto f = [=] __cuda_callable__ ( RHSIndexType rowIdx, RHSIndexType localIdx_, RHSIndexType columnIndex, const RHSRealType& value, bool& compute ) mutable { @@ -703,7 +703,7 @@ operator=( const RHSMatrix& matrix ) }; matrix.forAllRows( f ); } - else*/ + else { const IndexType maxRowLength = max( rowLengths ); const IndexType bufferRowsCount( 128 ); -- GitLab