gmp CPU identification

Cesar Delgado beettlle@hotmail.com
Thu, 24 Apr 2003 09:08:53 -0500


You might want to check out mPlayer.  They do CPU detection.  Of course
it would not be using GMP but you would probably have to make your own
functions and the works.

Cheers,

-Cesar Delgado
---------------------------------------------
Secure Distributed Information @ UNL
http://rcf.unl.edu
cdelgad2@bigred.unl.edu, beettlle@hotmail.com

> -----Original Message-----
> From: gmp-discuss-admin@swox.com [mailto:gmp-discuss-admin@swox.com]
On
> Behalf Of manolo@el-mundo.net
> Sent: Thursday, April 24, 2003 2:54 AM
> To: gmp-discuss@swox.com
> Subject: Re: gmp CPU identification
> 
> I have compiled GMP for p3 and p4 as dll, then I detect the procesort
> type and load the best.
> 
> On 24 Apr 2003 at 7:14, Kevin Ryde wrote:
> 
> > "Juro Bystricky" <jurobystricky@hotmail.com> writes:
> > >
> > > does anyone know if there is a way to identify the CPU a
particular
> > > GMP library has been configured/built for? For example, using an
AMD
> > > ATHLON based library on an Intel platform can cause a GP fault.
> >
> > An invalid instruction fault perhaps, but shouldn't give a GP.
> >
> > > A prudent program using GMP library should first check if the
> > > installed GMP is CPU "compatible" before trying to use the
library.
> >
> > There's no way to do that, as it stands.  Hopefully the system
> > administrator is smart enough not to install something that doesn't
> > work :-).
> > _______________________________________________
> > gmp-discuss mailing list
> > gmp-discuss@swox.com
> > https://gmplib.org/mailman/listinfo/gmp-discuss
> 
> 
> Manolo
> 
> --
> Manuel Alvarez Fernandez  | Mundinteractivos - El Mundo      |
> Area de Informatica       | Pradillo, 42                     |
> manolo@el-mundo.net       | 28002 - Madrid (SPAIN, EU)       |
> http://www.elmundo.es/    | Tel: (+34) 915864800 (Ext: 4637) |
> 
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss@swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss