Commit 8ebcf5dd authored by Lukáš Matthew Čejka's avatar Lukáš Matthew Čejka Committed by Tomáš Oberhuber
Browse files

Changed Double type casting to roundUpDivision

parent 1f624103
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -198,8 +198,7 @@ bool ChunkedEllpack< Real, Device, Index >::setSlice( ConstCompressedRowLengthsV
//       will be zero and make the assertion fail ( https://stackoverflow.com/questions/33273359/in-c-using-the-ceil-a-division-is-not-working ).
//       To fix this, typecast them to ( float ), instead of ( RealType )
       maxChunkInSlice = max( maxChunkInSlice,
                          ceil( ( double ) rowLengths[ i ] /
                                ( double ) this->rowToChunkMapping[ i ] ) );
                          ceil( roundUpDivision( rowLengths[ i ], this->rowToChunkMapping[ i ] ) );
   }
      TNL_ASSERT( maxChunkInSlice > 0,
              std::cerr << " maxChunkInSlice = " << maxChunkInSlice << std::endl );