Loading src/core/tnlVectorCUDA.h +1 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ template< typename RealType, typename IndexType > tnlVector< RealType, tnlCuda, IndexType > :: tnlVector( const tnlString& name, IndexType _size ) : tnlArrayManager< RealType, tnlCuda, IndexType >( name ) { setSize( _size ); this -> setSize( _size ); }; template< typename RealType, typename IndexType > Loading src/core/tnlVectorHost.h +3 −3 Original line number Diff line number Diff line Loading @@ -150,21 +150,21 @@ template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, IndexType _size ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( _size ); this -> setSize( _size ); }; template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, const tnlVector& v ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( v. getSize() ); this -> setSize( v. getSize() ); }; template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, const tnlVector< RealType, tnlCuda, IndexType >& v ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( v. getSize() ); this -> setSize( v. getSize() ); }; template< typename RealType, typename IndexType > Loading tests/benchmarks/tnlSpmvBenchmarkAdaptiveRgCSRMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ void tnlSpmvBenchmarkAdaptiveRgCSRMatrix< Real, Device, Index > :: writeToLogTab argCsrMatrix. tuneFormat( this -> desiredChunkSize, this -> cudaBlockSize ); argCsrMatrix. copyFrom( csrMatrix ); printMatrixInHtml( matrixHtmlFile, argCsrMatrix ); this -> printMatrixInHtml( matrixHtmlFile, argCsrMatrix ); if( rgCsrSpeedUp > 1.0 ) bgColor=getBgColorByRgCSRSpeedUp( rgCsrSpeedUp ); logFile << " <td bgcolor=" << bgColor << "> <a href=\"" << matrixPdfFile << "\">PDF</a>, <a href=\"" << matrixHtmlFile << "\">HTML</a></td> " << endl; Loading tests/benchmarks/tnlSpmvBenchmarkRgCSRMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ void tnlSpmvBenchmarkRgCSRMatrix< Real, Device, Index > :: writeToLogTable( ostr this -> useAdaptiveGroupSize, this -> adaptiveGroupSizeStrategy ); rgCsrMatrix. copyFrom( csrMatrix ); printMatrixInHtml( matrixHtmlFile, rgCsrMatrix ); this -> printMatrixInHtml( matrixHtmlFile, rgCsrMatrix ); logFile << " <td bgcolor=" << bgColor << "> <a href=\"" << matrixPdfFile << "\">PDF</a>,<a href=\"" << matrixHtmlFile << "\"> HTML</a></td>" << endl; logFile << " <td bgcolor=" << bgColor << "> " << this -> getArtificialZeroElements() << "</td>" << endl; } Loading tests/unit-tests/matrix/tnlAdaptiveRgCSRMatrixTester.h +12 −12 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Empty" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Empty" ); setEmptyMatrix( csrMatrix, size ); this -> setEmptyMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -116,7 +116,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Diagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Diagonal" ); setDiagonalMatrix( csrMatrix, size ); this -> setDiagonalMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -132,7 +132,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:Tridiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Tridiagonal" ); int size = 12; setTridiagonalMatrix( csrMatrix, size ); this -> setTridiagonalMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -149,7 +149,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:upperTriangular" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:upperTriangular" ); const int size = 12; setUpperTriangularMatrix( csrMatrix, size ); this -> setUpperTriangularMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -166,7 +166,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:full" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:full" ); const int size = 12; setFullMatrix( csrMatrix, size ); this -> setFullMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -183,7 +183,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:bcsstk20" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:bcsstk20" ); const int size = 12; setBcsstk20Matrix( csrMatrix ); this -> setBcsstk20Matrix( csrMatrix ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -202,7 +202,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 35; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Empty" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Empty" ); setEmptyMatrix( csrMatrix, size ); this -> setEmptyMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -232,7 +232,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 35; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Diagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Diagonal" ); setDiagonalMatrix( csrMatrix, size ); this -> setDiagonalMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -261,7 +261,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setTridiagonalMatrix( csrMatrix, size ); this -> setTridiagonalMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -289,7 +289,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setUpperTriangularMatrix( csrMatrix, size ); this -> setUpperTriangularMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -318,7 +318,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:full" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:full" ); setFullMatrix( csrMatrix, size ); this -> setFullMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -346,7 +346,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu { tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setBcsstk20Matrix( csrMatrix ); this -> setBcsstk20Matrix( csrMatrix ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading
src/core/tnlVectorCUDA.h +1 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ template< typename RealType, typename IndexType > tnlVector< RealType, tnlCuda, IndexType > :: tnlVector( const tnlString& name, IndexType _size ) : tnlArrayManager< RealType, tnlCuda, IndexType >( name ) { setSize( _size ); this -> setSize( _size ); }; template< typename RealType, typename IndexType > Loading
src/core/tnlVectorHost.h +3 −3 Original line number Diff line number Diff line Loading @@ -150,21 +150,21 @@ template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, IndexType _size ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( _size ); this -> setSize( _size ); }; template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, const tnlVector& v ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( v. getSize() ); this -> setSize( v. getSize() ); }; template< typename RealType, typename IndexType > tnlVector< RealType, tnlHost, IndexType > :: tnlVector( const tnlString& name, const tnlVector< RealType, tnlCuda, IndexType >& v ) : tnlArrayManager< RealType, tnlHost, IndexType >( name ) { setSize( v. getSize() ); this -> setSize( v. getSize() ); }; template< typename RealType, typename IndexType > Loading
tests/benchmarks/tnlSpmvBenchmarkAdaptiveRgCSRMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ void tnlSpmvBenchmarkAdaptiveRgCSRMatrix< Real, Device, Index > :: writeToLogTab argCsrMatrix. tuneFormat( this -> desiredChunkSize, this -> cudaBlockSize ); argCsrMatrix. copyFrom( csrMatrix ); printMatrixInHtml( matrixHtmlFile, argCsrMatrix ); this -> printMatrixInHtml( matrixHtmlFile, argCsrMatrix ); if( rgCsrSpeedUp > 1.0 ) bgColor=getBgColorByRgCSRSpeedUp( rgCsrSpeedUp ); logFile << " <td bgcolor=" << bgColor << "> <a href=\"" << matrixPdfFile << "\">PDF</a>, <a href=\"" << matrixHtmlFile << "\">HTML</a></td> " << endl; Loading
tests/benchmarks/tnlSpmvBenchmarkRgCSRMatrix.h +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ void tnlSpmvBenchmarkRgCSRMatrix< Real, Device, Index > :: writeToLogTable( ostr this -> useAdaptiveGroupSize, this -> adaptiveGroupSizeStrategy ); rgCsrMatrix. copyFrom( csrMatrix ); printMatrixInHtml( matrixHtmlFile, rgCsrMatrix ); this -> printMatrixInHtml( matrixHtmlFile, rgCsrMatrix ); logFile << " <td bgcolor=" << bgColor << "> <a href=\"" << matrixPdfFile << "\">PDF</a>,<a href=\"" << matrixHtmlFile << "\"> HTML</a></td>" << endl; logFile << " <td bgcolor=" << bgColor << "> " << this -> getArtificialZeroElements() << "</td>" << endl; } Loading
tests/unit-tests/matrix/tnlAdaptiveRgCSRMatrixTester.h +12 −12 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Empty" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Empty" ); setEmptyMatrix( csrMatrix, size ); this -> setEmptyMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -116,7 +116,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Diagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Diagonal" ); setDiagonalMatrix( csrMatrix, size ); this -> setDiagonalMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -132,7 +132,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:Tridiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Tridiagonal" ); int size = 12; setTridiagonalMatrix( csrMatrix, size ); this -> setTridiagonalMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -149,7 +149,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:upperTriangular" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:upperTriangular" ); const int size = 12; setUpperTriangularMatrix( csrMatrix, size ); this -> setUpperTriangularMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -166,7 +166,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:full" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:full" ); const int size = 12; setFullMatrix( csrMatrix, size ); this -> setFullMatrix( csrMatrix, size ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -183,7 +183,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu tnlCSRMatrix< Real > csrMatrix( "test-matrix:bcsstk20" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:bcsstk20" ); const int size = 12; setBcsstk20Matrix( csrMatrix ); this -> setBcsstk20Matrix( csrMatrix ); argcsrMatrix. copyFrom( csrMatrix ); bool error( false ); Loading @@ -202,7 +202,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 35; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Empty" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Empty" ); setEmptyMatrix( csrMatrix, size ); this -> setEmptyMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -232,7 +232,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 35; tnlCSRMatrix< Real > csrMatrix( "test-matrix:Diagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:Diagonal" ); setDiagonalMatrix( csrMatrix, size ); this -> setDiagonalMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -261,7 +261,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setTridiagonalMatrix( csrMatrix, size ); this -> setTridiagonalMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -289,7 +289,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setUpperTriangularMatrix( csrMatrix, size ); this -> setUpperTriangularMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -318,7 +318,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu const int size = 12; tnlCSRMatrix< Real > csrMatrix( "test-matrix:full" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:full" ); setFullMatrix( csrMatrix, size ); this -> setFullMatrix( csrMatrix, size ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading Loading @@ -346,7 +346,7 @@ template< class Real, tnlDevice Device > class tnlAdaptiveRgCSRMatrixTester : pu { tnlCSRMatrix< Real > csrMatrix( "test-matrix:TriDiagonal" ); tnlAdaptiveRgCSRMatrix< Real, Device > argcsrMatrix( "test-matrix:TriDiagonal" ); setBcsstk20Matrix( csrMatrix ); this -> setBcsstk20Matrix( csrMatrix ); if( Device == tnlHost ) argcsrMatrix. copyFrom( csrMatrix ); else Loading