Skip to content
Snippets Groups Projects
Commit 0b74b0ca authored by Lukas Cejka's avatar Lukas Cejka
Browse files

Fixed mistake where integer division was used for certain format declarations....

Fixed mistake where integer division was used for certain format declarations. Added commented-out helpful prints to identify errors.
parent b2f675d3
No related branches found
No related tags found
1 merge request!16Matrices
......@@ -250,6 +250,13 @@ void ChunkedEllpack< Real, Device, Index >::setCompressedRowLengths( ConstCompre
this->setSlice( rowLengths, sliceIndex, elementsToAllocation );
this->rowPointers.computePrefixSum();
}
// std::cout << "\ngetRowLength after first if: " << std::endl;
// for( IndexType i = 0; i < rowLengths.getSize(); i++ )
// {
// std::cout << getRowLength( i ) << std::endl;
// }
// std::cout << "\n";
if( std::is_same< Device, Devices::Cuda >::value )
{
......@@ -274,6 +281,7 @@ void ChunkedEllpack< Real, Device, Index >::setCompressedRowLengths( ConstCompre
elementsToAllocation = hostMatrix.values.getSize();
}
this->maxRowLength = rowLengths.max();
// std::cout << "\nrowLengths.max() = " << rowLengths.max() << std::endl;
Sparse< Real, Device, Index >::allocateMatrixElements( elementsToAllocation );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment