[petsc-users] multiplication of large matrices using MatMatMult

Jed Brown jedbrown at mcs.anl.gov
Mon Jan 2 17:51:01 CST 2012


On Mon, Jan 2, 2012 at 17:45, Reza Madankan <rm93 at buffalo.edu> wrote:

> Yes, the matrix is dense. So, you mean that there is no way to evaluate
> the matrix, exactly?


You can evaluate it, but there is almost always a way to get the "science"
result without computing all the entries. Such an algorithm would be faster.


> .... I have run the code for smaller size of Ypcq and it's working. But
> for larger sizes I get the error that I mentioned.


It's possible that the corruption is caused by some integer overflow and
not from actually running out of memory, but it's definitely worth checking
that smaller sizes do not have some small error that is detectable by
Valgrind (e.g. an uninitialized variable that happens to be equal to 0 at
small sizes, or an off-by-one error that does not cause problems for small
sizes).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120102/3c8b2371/attachment.htm>


More information about the petsc-users mailing list