Re: Building with -msse

2008-04-27 Thread Steinar H. Gunderson
On Sun, Apr 27, 2008 at 12:36:05PM -0700, Russ Allbery wrote: > After further investigation, it looks like gnubg does runtime probing, but > if you tell it to use SSE, it also adds -msse to the build flags. Will > building with -msse break the binaries on i386 chips without SSE all by > itself, ev

Re: Building with -msse

2008-04-27 Thread Russ Allbery
"Steinar H. Gunderson" <[EMAIL PROTECTED]> writes: > On Sun, Apr 27, 2008 at 07:17:14AM +0200, Bernd Eckenfels wrote: >> If it probes, it is most likely loading an optimized asm module, and >> you dont need the SSE switch at all. > If you use gcc inline assembler and want to use SSE registers in

Re: Building with -msse

2008-04-27 Thread Bastian Blank
On Sun, Apr 27, 2008 at 02:02:24PM +0200, Kurt Roeckx wrote: > - When you hace shared libraries you can put them in directories like > /usr/lib/i686/sse/. The dynamic linker whould pick it up for > you in that case. (I have no idea if it looks at i686/sse or not, > but it looks at various o

Re: Building with -msse

2008-04-27 Thread Bernd Zeimetz
> Does any Athlon64 support sse3? yes, since Venice Stepping E3 and San Diego Stepping E4. But thanks for the reminder, there were indeed CPUs before that. -- Bernd Zeimetz Debian GNU/Linux Developer GPG Fingerprint: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79

Re: Building with -msse

2008-04-27 Thread Kurt Roeckx
On Sun, Apr 27, 2008 at 04:06:40PM +0200, Goswin von Brederlow wrote: > Kurt Roeckx <[EMAIL PROTECTED]> writes: > > If you want to have different optimizations depending on the cpu, > > there are a two options I know of: > > - When you hace shared libraries you can put them in directories like > >

Re: Building with -msse

2008-04-27 Thread Goswin von Brederlow
Kurt Roeckx <[EMAIL PROTECTED]> writes: > On Sat, Apr 26, 2008 at 07:05:17PM -0700, Russ Allbery wrote: >> gnubg supports optionally building with SSE support for increased speed in >> the analytical engine. I have to date kept this disabled to not generate >> binaries that might not run on all o

Re: Building with -msse

2008-04-27 Thread Goswin von Brederlow
Bernd Zeimetz <[EMAIL PROTECTED]> writes: >> And check if there is any sse3 support. That one needs cpu suport on >> amd64 too. > > Are there amd64 machines which do *not* support sse3? processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 4 model name : A

Re: Building with -msse

2008-04-27 Thread Steinar H. Gunderson
On Sun, Apr 27, 2008 at 07:17:14AM +0200, Bernd Eckenfels wrote: >> Also, it looks like it probes at runtime for SSE, so I may be able to >> build with that on i386 as well. > If it probes, it is most likely loading an optimized asm module, and you > dont need the SSE switch at all. If you use gcc

Re: Building with -msse

2008-04-27 Thread Bernd Zeimetz
> And check if there is any sse3 support. That one needs cpu suport on > amd64 too. Are there amd64 machines which do *not* support sse3? -- Bernd Zeimetz Debian GNU/Linux Developer GPG Fingerprint: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79 -- To UNSUBSCR

Re: Building with -msse

2008-04-27 Thread Kurt Roeckx
On Sat, Apr 26, 2008 at 07:05:17PM -0700, Russ Allbery wrote: > gnubg supports optionally building with SSE support for increased speed in > the analytical engine. I have to date kept this disabled to not generate > binaries that might not run on all otherwise-supported Debian systems. > > Howeve

Re: Building with -msse

2008-04-27 Thread Goswin von Brederlow
Russ Allbery <[EMAIL PROTECTED]> writes: > Faidon Liambotis <[EMAIL PROTECTED]> writes: >> Russ Allbery wrote: > >>> However, a user mentioned that he thinks all chips that fall into the >>> amd64 architecture have SSE and hence adding -msse would be safe for the >>> amd64 build. Is that correct?

Re: Building with -msse

2008-04-26 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > Also, it looks like it probes at runtime for SSE, so I may be able to > build with that on i386 as well. If it probes, it is most likely loading an optimized asm module, and you dont need the SSE switch at all. Gruss Bernd -- To UNSUBSCRIBE, email to

Re: Building with -msse

2008-04-26 Thread Russ Allbery
Faidon Liambotis <[EMAIL PROTECTED]> writes: > Russ Allbery wrote: >> However, a user mentioned that he thinks all chips that fall into the >> amd64 architecture have SSE and hence adding -msse would be safe for the >> amd64 build. Is that correct? And in general are there any guidelines >> abou

Re: Building with -msse

2008-04-26 Thread Faidon Liambotis
Russ Allbery wrote: However, a user mentioned that he thinks all chips that fall into the amd64 architecture have SSE and hence adding -msse would be safe for the amd64 build. Is that correct? And in general are there any guidelines about things like this? I assume that using -msse for the i38

Re: Building with -msse

2008-04-26 Thread Paul Wise
On Sun, Apr 27, 2008 at 10:05 AM, Russ Allbery <[EMAIL PROTECTED]> wrote: > However, a user mentioned that he thinks all chips that fall into the > amd64 architecture have SSE and hence adding -msse would be safe for the > amd64 build. Is that correct? http://en.wikipedia.org/wiki/X86-64 says