[petsc-users] MatMPIAIJSetPreallocation question

Xiangdong epscodes at gmail.com
Fri Aug 4 14:52:55 CDT 2017

Hello everyone,

I have a quick questions on the MatMPIAIJSetPreallocation. If we do not
pass the exact number of nonzeros for o_nnz and d_nnz, (for example,
MAT_INFO_NZ_ALLOCATED is 50% more than MAT_INFO_NZ_USED), will the
performance of MatMult be affected? What effect will these allocated but
unused memory cause?

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170804/fdba1e9a/attachment.html>

More information about the petsc-users mailing list