Commit 4e2fe80e authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Renaming size to segmentsCount in EllpackView.

parent 7499d6bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 );
@@ -121,7 +121,7 @@ class EllpackView

   protected:

      IndexType segmentSize, size, alignedSize;
      IndexType segmentSize, segmentsCount, alignedSize;
};

      } // namespace Segments
+12 −12
Original line number Diff line number Diff line
@@ -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 )
{
}

@@ -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 )
{
}

@@ -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 )
{
}

@@ -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 )
{
}

@@ -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,
@@ -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,
@@ -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,
@@ -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;
}


@@ -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;
}
@@ -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 );
}

@@ -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 );
}