croutch n00b
Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
Posted: Thu Dec 20, 2012 5:46 pm Post subject: Wrong cflags gcc 4.7.1 with ivy bridge. |
|
|
Hello all.
Im new to gentoo and i need little advice for this thing.
I have a.
Intel Core i5 3570K 3,4Ghz (Ivy Bridge)
http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
And what i understand from the links above i should have.
core-avx-i = for ivy bridge
Intel Core CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AES, PCLMUL, FSGSBASE, RDRND and F16C instruction set support.
But what i found when searching this forum and google is that core-avx-i not working so god in gentoo.And all recommends are for those settings.
I use this in make.conf.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
My kernel settings for my cpu is this.
(X) Core 2/newer Xeon
I have only gcc 4.7.1 installed.
When i use this command i get this output.
$ gcc -c -Q -march=native --help=target | grep march
-march=corei7-avx
hmmmm for sandy bridge??????????
And this command shows .
echo "" | gcc -march=native -v -E - 2>&1 | grep cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.1/cc1 -E -quiet -v - -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop
-mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mrdrnd -mf16c -mfsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=generic
I thougth CFLAGS="-march=native -O2 -pipe" should enable most of this -> core-avx-i in gcc 4.7 with ivy bridge?? not for sandy bridge??
Are core-avx-i not enabled at all in gcc 4.7.1 in gentoo??
Maby a bug??
Something i do wrong?? |
|