memory problem with GMP 5

Paul Zimmermann Paul.Zimmermann at
Fri Jan 15 18:05:36 CET 2010

> From: Torbjorn Granlund <tg at>
> Date: Fri, 15 Jan 2010 17:39:57 +0100
> Paul Zimmermann <Paul.Zimmermann at> writes:
>   > have you checked balanced multiplies too?  Do they, too, require much
>   > more memory than 4.3?
>   yes. With the same program and sa=sb=31225173 (same product size), GMP 4.3.2
>   uses 1.6g (same memory) and GMP 5.0.0 uses 2.1g (slightly less than with
>   unbalanced operands, but still more than 4.3.2).
> Could you please try with larger MUL_FFT_TABLE2 (for example from the
> repo or from the old release) and see if that helps?

the gmp-mparam.h file is identical for a 64-bit Core 2, thus I don't expect any

tarte% diff /tmp/gmp-5.0.0/mpn/x86_64/core2/gmp-mparam.h /tmp/TARGDIR/mpn/x86_64/core2/gmp-mparam.h


More information about the gmp-bugs mailing list