-malign-double
Jed Brown
jed at 59A2.org
Sat Nov 14 10:28:31 CST 2009
Barry Smith wrote:
>
>
> Good point, I have removed it.
>
> I put it in because I wanted an easy way to test that PETSc double
> arrays are always 8 byte aligned (and the unaligned struct values were
> giving me lots of false alarms).
A related issue is PetscMallocN which (in optimized mode) gives
unaligned arrays even if malloc always returns aligned memory. Consider
PetscMalloc2(3,PetscInt,&ai,3,PetscScalar,&a);
I think it is preferable for PetscMallocN to align all the pointers.
Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20091114/d23b1e2c/attachment.sig>
More information about the petsc-dev
mailing list