Discussion:
x86 optimizations
Bob Snyder bob.snyder-j9pdmedNgrk@public.gmane.org [linuxham]
2014-10-21 23:06:53 UTC
Permalink
When building fldigi, the configure script gives several options for
"x86 optimizations":

*--enable-optimizations use x86 optimizations (none|sse|sse2|sse3|native)*

What is "native" and is it likely to add much performance? Is it
preferred to sse3?

Thanks,

Bob W6CP
KI7MT ki7mt-/E1597aS9LQAvxtiuMwx3w@public.gmane.org [linuxham]
2014-10-21 23:15:38 UTC
Permalink
Hi Bob,

This is a big-ole can of worms and the opinions range from mild to wild :-)

While this is for Gentoo, it's gives a good overview of commonly used flags:

http://wiki.gentoo.org/wiki/GCC_optimization

There are many, and it's mind boggling when you look at all of them, but
for most uses, a few can have dramatic affect.

More thorough listing:
https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Optimize-Options.html

73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
--
73's
Greg, KI7MT


------------------------------------

------------------------------------
Bob Snyder bob.snyder-j9pdmedNgrk@public.gmane.org [linuxham]
2014-10-21 23:33:42 UTC
Permalink
Hi Gary,

Well, my only concern here is to pick the best optimization for my
system in the fldigi configure script. If I'm reading the document you
linked correctly, the "native" choice will have the compiler make
optimization choices based on the CPU of the system it's running on.
Which for me seems like a good choice!

I think my takeaway is that unless you are compiling for a different CPU
than what you are building on, the "native" choice would always be the
one to use.

Thanks,

Bob W6CP
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
Hi Bob,
This is a big-ole can of worms and the opinions range from mild to wild :-)
http://wiki.gentoo.org/wiki/GCC_optimization
There are many, and it's mind boggling when you look at all of them, but
for most uses, a few can have dramatic affect.
https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Optimize-Options.html
73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
------------------------------------

------------------------------------
Bob Snyder bob.snyder-j9pdmedNgrk@public.gmane.org [linuxham]
2014-10-21 23:42:53 UTC
Permalink
Oops! Sorry Greg, got your name wrong.

Bob
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Hi Gary,
Well, my only concern here is to pick the best optimization for my
system in the fldigi configure script. If I'm reading the document you
linked correctly, the "native" choice will have the compiler make
optimization choices based on the CPU of the system it's running on.
Which for me seems like a good choice!
I think my takeaway is that unless you are compiling for a different CPU
than what you are building on, the "native" choice would always be the
one to use.
Thanks,
Bob W6CP
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
Hi Bob,
This is a big-ole can of worms and the opinions range from mild to wild :-)
http://wiki.gentoo.org/wiki/GCC_optimization
There are many, and it's mind boggling when you look at all of them, but
for most uses, a few can have dramatic affect.
https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Optimize-Options.html
73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
------------------------------------

------------------------------------
ki7mt ki7mt-/E1597aS9LQAvxtiuMwx3w@public.gmane.org [linuxham]
2014-10-21 23:52:48 UTC
Permalink
Hi Bob,

No worries.

I'd say yes, native is a good & safe selection. GCC is orders of
magnitude smarter than I am, so letting it pick the correct defaults is
what I opt for more often than not. Unless Im I was using distcc, some
kind of build farm or cross compiling for another machine, something
along those lines.

73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Oops! Sorry Greg, got your name wrong.
Bob
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Hi Gary,
Well, my only concern here is to pick the best optimization for my
system in the fldigi configure script. If I'm reading the document you
linked correctly, the "native" choice will have the compiler make
optimization choices based on the CPU of the system it's running on.
Which for me seems like a good choice!
I think my takeaway is that unless you are compiling for a different CPU
than what you are building on, the "native" choice would always be the
one to use.
Thanks,
Bob W6CP
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
Hi Bob,
This is a big-ole can of worms and the opinions range from mild to wild :-)
http://wiki.gentoo.org/wiki/GCC_optimization
There are many, and it's mind boggling when you look at all of them, but
for most uses, a few can have dramatic affect.
https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Optimize-Options.html
73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
------------------------------------

------------------------------------
Geoff McAlpin geoff.nm7v-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [linuxham]
2014-10-22 01:10:33 UTC
Permalink
I, too, always choose 'native' when compiling.
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
Hi Bob,
No worries.
I'd say yes, native is a good & safe selection. GCC is orders of
magnitude smarter than I am, so letting it pick the correct defaults is
what I opt for more often than not. Unless Im I was using distcc, some
kind of build farm or cross compiling for another machine, something
along those lines.
73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Oops! Sorry Greg, got your name wrong.
Bob
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Hi Gary,
Well, my only concern here is to pick the best optimization for my
system in the fldigi configure script. If I'm reading the document you
linked correctly, the "native" choice will have the compiler make
optimization choices based on the CPU of the system it's running on.
Which for me seems like a good choice!
I think my takeaway is that unless you are compiling for a different CPU
than what you are building on, the "native" choice would always be the
one to use.
Thanks,
Bob W6CP
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
Hi Bob,
This is a big-ole can of worms and the opinions range from mild to
wild :-)
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
While this is for Gentoo, it's gives a good overview of commonly used
http://wiki.gentoo.org/wiki/GCC_optimization
There are many, and it's mind boggling when you look at all of them,
but
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Post by KI7MT ki7mt-/***@public.gmane.org [linuxham]
for most uses, a few can have dramatic affect.
https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Optimize-Options.html
73's
Greg, KI7MT
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
Ed autek-Wuw85uim5zDR7s880joybQ@public.gmane.org [linuxham]
2014-10-22 02:23:07 UTC
Permalink
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations (none|sse|sse2|sse3|native)*
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
This what I use for Mint

./configure --enable-optimizations=native --without-asciidoc
--enable-static --disable-flarq

I added an alias to my .bashrc named build. Saves a lot of typing.

Ed W3NR


------------------------------------
Posted by: Ed <autek-***@public.gmane.org>
------------------------------------
Geoff McAlpin geoff.nm7v-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [linuxham]
2014-10-22 03:20:46 UTC
Permalink
Ed, just curious why you use '--disable-flarq'?
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
When building fldigi, the configure script gives several options for
*--enable-optimizations use x86 optimizations
(none|sse|sse2|sse3|native)*
Post by Bob Snyder bob.snyder-***@public.gmane.org [linuxham]
What is "native" and is it likely to add much performance? Is it
preferred to sse3?
Thanks,
Bob W6CP
This what I use for Mint
./configure --enable-optimizations=native --without-asciidoc
--enable-static --disable-flarq
I added an alias to my .bashrc named build. Saves a lot of typing.
Ed W3NR
--
Geoff, NM7V
Seattle, WA
CN87tr
Ed autek-Wuw85uim5zDR7s880joybQ@public.gmane.org [linuxham]
2014-10-22 12:30:38 UTC
Permalink
Post by Geoff McAlpin geoff.nm7v-***@public.gmane.org [linuxham]
Ed, just curious why you use '--disable-flarq'?
Other than the initial alpha testing, I don't use it.

Ed W3NR



------------------------------------
Posted by: Ed <autek-***@public.gmane.org>
------------------------------------

Loading...