From 41348dac910dad6d84ba9ebd111b0f05b038d942 Mon Sep 17 00:00:00 2001 From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz> Date: Tue, 3 Mar 2020 10:59:17 +0100 Subject: [PATCH] Deleted unused dense matrix device dependent code. --- src/TNL/Matrices/DenseMatrixView.hpp | 46 ---------------------------- 1 file changed, 46 deletions(-) diff --git a/src/TNL/Matrices/DenseMatrixView.hpp b/src/TNL/Matrices/DenseMatrixView.hpp index 50f30d8892..01415ec21c 100644 --- a/src/TNL/Matrices/DenseMatrixView.hpp +++ b/src/TNL/Matrices/DenseMatrixView.hpp @@ -699,51 +699,5 @@ Index DenseMatrixView< Real, Device, Index, RowMajorOrder >::getElementIndex( co return this->segments.getGlobalIndex( row, column ); } -/*template<> -class DenseDeviceDependentCode< Devices::Host > -{ - public: - - typedef Devices::Host Device; - - template< typename Real, - typename Index, - bool RowMajorOrder, - typename RealAllocator, - typename InVector, - typename OutVector > - static void vectorProduct( const DenseMatrixView< Real, Device, Index, RowMajorOrder >& matrix, - const InVector& inVector, - OutVector& outVector ) - { -#ifdef HAVE_OPENMP -#pragma omp parallel for if( Devices::Host::isOMPEnabled() ) -#endif - for( Index row = 0; row < matrix.getRows(); row ++ ) - outVector[ row ] = matrix.rowVectorProduct( row, inVector ); - } -}; - -template<> -class DenseDeviceDependentCode< Devices::Cuda > -{ - public: - - typedef Devices::Cuda Device; - - template< typename Real, - typename Index, - bool RowMajorOrder, - typename RealAllocator, - typename InVector, - typename OutVector > - static void vectorProduct( const DenseMatrixView< Real, Device, Index, RowMajorOrder >& matrix, - const InVector& inVector, - OutVector& outVector ) - { - MatrixVectorProductCuda( matrix, inVector, outVector ); - } -};*/ - } // namespace Matrices } // namespace TNL -- GitLab