[petsc-users] Memory allocation failed
Jed Brown
jedbrown at mcs.anl.gov
Wed Aug 31 08:02:21 CDT 2011
On Wed, Aug 31, 2011 at 07:52, Dominik Szczerba <dominik at itis.ethz.ch>wrote:
> I am getting the below cited error for a big linear problem. Would
> that mean int overflow and indicate the need for
> --with-64-bit-indices?
>
Yes, likely.
> Obviously it will elevate the memory
> requirements, but will it also reduce the performance?
>
Try it. Performance for sparse linear algebra is mostly limited by memory
already. Using 64-bit indices increases the cost per nonzero in AIJ format,
sizeof(PetscScalar)+sizeof(PetscInt), typically from 12 to 16 bytes. If you
use BAIJ, the 64-bit indices will make much less difference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110831/91039e29/attachment.htm>
More information about the petsc-users
mailing list