Commit 5814345d authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Debuging distributed matrix.

parent 676a3d82
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -54,15 +54,18 @@ class BiEllpack

      const ConstViewType getConstView() const;

      /**
       * \brief Number of segments.
       */
      __cuda_callable__
      IndexType getSegmentsCount() const;

      /**
       * \brief Set sizes of particular segments.
       */
      template< typename SizesHolder = OffsetsHolder >
      void setSegmentsSizes( const SizesHolder& sizes );

      __cuda_callable__
      IndexType getSegmentsCount() const;

      IndexType getSegmentSize( const IndexType segmentIdx ) const;

      /**
+11 −13
Original line number Diff line number Diff line
@@ -108,6 +108,17 @@ getConstView() const -> const ConstViewType
   return ConstViewType( size, storageSize, virtualRows, rowPermArray.getConstView(), groupPointers.getConstView() );
}

template< typename Device,
          typename Index,
          typename IndexAllocator,
          bool RowMajorOrder,
          int WarpSize >
auto BiEllpack< Device, Index, IndexAllocator, RowMajorOrder, WarpSize >::
getSegmentsCount() const -> IndexType
{
   return this->size;
}

template< typename Device,
          typename Index,
          typename IndexAllocator,
@@ -351,19 +362,6 @@ setSegmentsSizes( const SizesHolder& segmentsSizes )
   }
}

template< typename Device,
          typename Index,
          typename IndexAllocator,
          bool RowMajorOrder,
          int WarpSize >
__cuda_callable__ auto BiEllpack< Device, Index, IndexAllocator, RowMajorOrder, WarpSize >::
getSegmentsCount() const -> IndexType
{
   // FIXME
//   return this->segmentsCount;
   return 0;
}

template< typename Device,
          typename Index,
          typename IndexAllocator,
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class BiEllpackView
      const ConstViewType getConstView() const;

      /**
       * \brief Number segments.
       * \brief Number of segments.
       */
      __cuda_callable__
      IndexType getSegmentsCount() const;
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class CSR
      const ConstViewType getConstView() const;

      /**
       * \brief Number segments.
       * \brief Number of segments.
       */
      __cuda_callable__
      IndexType getSegmentsCount() const;
+6 −3
Original line number Diff line number Diff line
@@ -57,15 +57,18 @@ class ChunkedEllpack

      const ConstViewType getConstView() const;

      /**
       * \brief Number of segments.
       */
      __cuda_callable__
      IndexType getSegmentsCount() const;

      /**
       * \brief Set sizes of particular segments.
       */
      template< typename SizesHolder = OffsetsHolder >
      void setSegmentsSizes( const SizesHolder& sizes );

      __cuda_callable__
      IndexType getSegmentsCount() const;

      IndexType getSegmentSize( const IndexType segmentIdx ) const;

      /**
Loading