GMP on the Cell processor

Torbjorn Granlund tg at
Tue Apr 17 21:15:26 CEST 2007

  Has anyone on this list thought of porting GMP to the Cell processor?
  Would anyone be interested in using GMP if it was on the Cell?

I think it would be tricky to make a port that would do justice to the
Cell.  The parallelism in GMP is fine-grained, at least as long as the
operands are not really huge.

If you want to work on a GMP Cell port, please start by studying how
to write a plain basecase multiplication (mpn_mul_basecase) for the
processor.  The divide-and-conquer structure of most algorithms in GMP
will make use of of mpn_mul_basecase.

  On a similar note, is there a version of GMP for the Altivec
  which is this vector extension for some (but not all) PowerPC
  CPU's ?

GMP 4.2 makes use of Altivec when it is available.  (There are some
flaws in configure that made the altivec recognition unreliable,


More information about the gmp-discuss mailing list