From 0235ef955fbf6b7a065be5ecebb5fe0d2e4973e2 Mon Sep 17 00:00:00 2001 From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz> Date: Sun, 2 Sep 2018 15:37:09 +0200 Subject: [PATCH] Restored method sopyFromHostToCuda in Matrix. --- src/TNL/Matrices/Matrix_impl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/TNL/Matrices/Matrix_impl.h b/src/TNL/Matrices/Matrix_impl.h index 1efdd2447f..442de90283 100644 --- a/src/TNL/Matrices/Matrix_impl.h +++ b/src/TNL/Matrices/Matrix_impl.h @@ -140,6 +140,19 @@ bool Matrix< Real, Device, Index >::operator != ( const MatrixT& matrix ) const return ! operator == ( matrix ); } +template< typename Real, + typename Device, + typename Index > +void +Matrix< Real, Device, Index >:: +copyFromHostToCuda( Matrix< Real, Devices::Host, Index >& matrix ) +{ + this->numberOfColors = matrix.getNumberOfColors(); + this->columns = matrix.getColumns(); + this->rows = matrix.getRows(); + + this->values.setSize( matrix.getValuesSize() ); +} template< typename Real, typename Device, -- GitLab