Loading src/TNL/Matrices/ChunkedEllpack_impl.h +1 −2 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading
src/TNL/Matrices/ChunkedEllpack_impl.h +1 −2 Original line number Diff line number Diff line Loading @@ -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 ); Loading