Loading src/TNL/Algorithms/Segments/EllpackView.h +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class EllpackView EllpackView(); __cuda_callable__ EllpackView( IndexType segmentSize, IndexType size, IndexType alignedSize ); EllpackView( IndexType segmentSize, IndexType segmentsCount, IndexType alignedSize ); __cuda_callable__ EllpackView( const EllpackView& ellpackView ); Loading Loading @@ -121,7 +121,7 @@ class EllpackView protected: IndexType segmentSize, size, alignedSize; IndexType segmentSize, segmentsCount, alignedSize; }; } // namespace Segments Loading src/TNL/Algorithms/Segments/EllpackView.hpp +12 −12 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView() : segmentSize( 0 ), size( 0 ), alignedSize( 0 ) : segmentSize( 0 ), segmentsCount( 0 ), alignedSize( 0 ) { } Loading @@ -37,8 +37,8 @@ template< typename Device, int Alignment > __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( IndexType segmentSize, IndexType size, IndexType alignedSize ) : segmentSize( segmentSize ), size( size ), alignedSize( alignedSize ) EllpackView( IndexType segmentSize, IndexType segmentsCount, IndexType alignedSize ) : segmentSize( segmentSize ), segmentsCount( segmentsCount ), alignedSize( alignedSize ) { } Loading @@ -49,7 +49,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( const EllpackView& ellpack ) : segmentSize( ellpack.segmentSize ), size( ellpack.size ), alignedSize( ellpack.alignedSize ) : segmentSize( ellpack.segmentSize ), segmentsCount( ellpack.segmentsCount ), alignedSize( ellpack.alignedSize ) { } Loading @@ -60,7 +60,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( const EllpackView&& ellpack ) : segmentSize( ellpack.segmentSize ), size( ellpack.size ), alignedSize( ellpack.alignedSize ) : segmentSize( ellpack.segmentSize ), segmentsCount( ellpack.segmentsCount ), alignedSize( ellpack.alignedSize ) { } Loading Loading @@ -95,7 +95,7 @@ typename EllpackView< Device, Index, Organization, Alignment >::ViewType EllpackView< Device, Index, Organization, Alignment >:: getView() { return ViewType( segmentSize, size, alignedSize ); return ViewType( segmentSize, segmentsCount, alignedSize ); } template< typename Device, Loading @@ -107,7 +107,7 @@ auto EllpackView< Device, Index, Organization, Alignment >:: getConstView() const -> const ConstViewType { return ConstViewType( segmentSize, size, alignedSize ); return ConstViewType( segmentSize, segmentsCount, alignedSize ); } template< typename Device, Loading @@ -117,7 +117,7 @@ template< typename Device, __cuda_callable__ auto EllpackView< Device, Index, Organization, Alignment >:: getSegmentsCount() const -> IndexType { return this->size; return this->segmentsCount; } template< typename Device, Loading @@ -137,7 +137,7 @@ template< typename Device, __cuda_callable__ auto EllpackView< Device, Index, Organization, Alignment >:: getSize() const -> IndexType { return this->size * this->segmentSize; return this->segmentsCount * this->segmentSize; } Loading Loading @@ -315,7 +315,7 @@ EllpackView< Device, Index, Organization, Alignment >:: operator=( const EllpackView< Device, Index, Organization, Alignment >& view ) { this->segmentSize = view.segmentSize; this->size = view.size; this->segmentsCount = view.segmentsCount; this->alignedSize = view.alignedSize; return *this; } Loading @@ -328,7 +328,7 @@ void EllpackView< Device, Index, Organization, Alignment >:: save( File& file ) const { file.save( &segmentSize ); file.save( &size ); file.save( &segmentsCount ); file.save( &alignedSize ); } Loading @@ -340,7 +340,7 @@ void EllpackView< Device, Index, Organization, Alignment >:: load( File& file ) { file.load( &segmentSize ); file.load( &size ); file.load( &segmentsCount ); file.load( &alignedSize ); } Loading Loading
src/TNL/Algorithms/Segments/EllpackView.h +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class EllpackView EllpackView(); __cuda_callable__ EllpackView( IndexType segmentSize, IndexType size, IndexType alignedSize ); EllpackView( IndexType segmentSize, IndexType segmentsCount, IndexType alignedSize ); __cuda_callable__ EllpackView( const EllpackView& ellpackView ); Loading Loading @@ -121,7 +121,7 @@ class EllpackView protected: IndexType segmentSize, size, alignedSize; IndexType segmentSize, segmentsCount, alignedSize; }; } // namespace Segments Loading
src/TNL/Algorithms/Segments/EllpackView.hpp +12 −12 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView() : segmentSize( 0 ), size( 0 ), alignedSize( 0 ) : segmentSize( 0 ), segmentsCount( 0 ), alignedSize( 0 ) { } Loading @@ -37,8 +37,8 @@ template< typename Device, int Alignment > __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( IndexType segmentSize, IndexType size, IndexType alignedSize ) : segmentSize( segmentSize ), size( size ), alignedSize( alignedSize ) EllpackView( IndexType segmentSize, IndexType segmentsCount, IndexType alignedSize ) : segmentSize( segmentSize ), segmentsCount( segmentsCount ), alignedSize( alignedSize ) { } Loading @@ -49,7 +49,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( const EllpackView& ellpack ) : segmentSize( ellpack.segmentSize ), size( ellpack.size ), alignedSize( ellpack.alignedSize ) : segmentSize( ellpack.segmentSize ), segmentsCount( ellpack.segmentsCount ), alignedSize( ellpack.alignedSize ) { } Loading @@ -60,7 +60,7 @@ template< typename Device, __cuda_callable__ EllpackView< Device, Index, Organization, Alignment >:: EllpackView( const EllpackView&& ellpack ) : segmentSize( ellpack.segmentSize ), size( ellpack.size ), alignedSize( ellpack.alignedSize ) : segmentSize( ellpack.segmentSize ), segmentsCount( ellpack.segmentsCount ), alignedSize( ellpack.alignedSize ) { } Loading Loading @@ -95,7 +95,7 @@ typename EllpackView< Device, Index, Organization, Alignment >::ViewType EllpackView< Device, Index, Organization, Alignment >:: getView() { return ViewType( segmentSize, size, alignedSize ); return ViewType( segmentSize, segmentsCount, alignedSize ); } template< typename Device, Loading @@ -107,7 +107,7 @@ auto EllpackView< Device, Index, Organization, Alignment >:: getConstView() const -> const ConstViewType { return ConstViewType( segmentSize, size, alignedSize ); return ConstViewType( segmentSize, segmentsCount, alignedSize ); } template< typename Device, Loading @@ -117,7 +117,7 @@ template< typename Device, __cuda_callable__ auto EllpackView< Device, Index, Organization, Alignment >:: getSegmentsCount() const -> IndexType { return this->size; return this->segmentsCount; } template< typename Device, Loading @@ -137,7 +137,7 @@ template< typename Device, __cuda_callable__ auto EllpackView< Device, Index, Organization, Alignment >:: getSize() const -> IndexType { return this->size * this->segmentSize; return this->segmentsCount * this->segmentSize; } Loading Loading @@ -315,7 +315,7 @@ EllpackView< Device, Index, Organization, Alignment >:: operator=( const EllpackView< Device, Index, Organization, Alignment >& view ) { this->segmentSize = view.segmentSize; this->size = view.size; this->segmentsCount = view.segmentsCount; this->alignedSize = view.alignedSize; return *this; } Loading @@ -328,7 +328,7 @@ void EllpackView< Device, Index, Organization, Alignment >:: save( File& file ) const { file.save( &segmentSize ); file.save( &size ); file.save( &segmentsCount ); file.save( &alignedSize ); } Loading @@ -340,7 +340,7 @@ void EllpackView< Device, Index, Organization, Alignment >:: load( File& file ) { file.load( &segmentSize ); file.load( &size ); file.load( &segmentsCount ); file.load( &alignedSize ); } Loading