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

Fixing types in adaptive CSR kernel to avoid different types comparison warning.

parent 9dfbe5bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ struct CSRAdaptiveKernel
                     const Offsets& offsets,
                     const Index size,
                     details::Type &type,
                     Index &sum );
                     size_t &sum );

      template< int SizeOfValue,
                typename Offsets >
+3 −2
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ findLimit( const Index start,
           const Offsets& offsets,
           const Index size,
           details::Type &type,
           Index &sum )
           size_t &sum )
{
   sum = 0;
   for( Index current = start; current < size - 1; current++ )
@@ -161,7 +161,8 @@ initValueSize( const Offsets& offsets )
   using HostOffsetsType = TNL::Containers::Vector< typename Offsets::IndexType, TNL::Devices::Host, typename Offsets::IndexType >;
   HostOffsetsType hostOffsets( offsets );
   const Index rows = offsets.getSize();
   Index sum, start( 0 ), nextStart( 0 );
   Index start( 0 ), nextStart( 0 );
   size_t sum;

   // Fill blocks
   std::vector< details::CSRAdaptiveKernelBlockDescriptor< Index > > inBlocks;