gmp-4.2 performance on x86_64

Pierrick Gaudry gaudry at lix.polytechnique.fr
Wed Mar 29 18:34:24 CEST 2006


On Wed, Mar 29, 2006 at 11:07:00AM -0500, Kate Minola wrote:
> On my 2.2GHz x86_64-unknown-linux-gnu machine
> I get the following gmpbench results:
> 
>   gmp-4.1.4-gaudry  7863.2
>   gmp-4.2           7375.2
>   gmp-4.1.4         4645.6
> 
> gmp-4.1.4-gaudry is using the assembly code by
> Patrick Gaudry at
> 
>   http://www.loria.fr/~gaudry/mpn_AMD64/
> 
> All were compiled with the same compiler, gcc-4.1.0.
> 
> While I want to use gmp-4.2 to pick up bug fixes, I do not
> want to lose the speed of gmp-4.1.4-gaudry.
> 
> Doing the obvious to use Gaudry's assembler code in gmp-4.2
> causes a failure to compile (for me).
> 
> Comments?  Suggestions?
> 
> Kate Minola
> Engineering Department
> University of Maryland, College Park

A version of the patch for GMP-4.2 is available at:
  http://www.loria.fr/~gaudry/mpn_AMD64/mpn_amd64.42.tgz

The webpage is not yet updated, but the install procedure is as for the
patch of 4.1.4:
  tar zxf mpn_amd64.42.tgz
  cd mpn_amd64.42
  ./install /path_to_gmp/gmp-4.2
  cd /path_to_gmp/gmp-4.2
  ./configure && make && make install
  
I get a gmpbench result around 10000 on a 2.4 GHz Opteron (8200 with
plain 4.2)

Pierrick.


More information about the gmp-discuss mailing list