View previous topic :: View next topic |
Author |
Message |
BartNL n00b
Joined: 29 Aug 2004 Posts: 65
|
Posted: Tue Mar 04, 2014 10:46 pm Post subject: Change of CFLAGS |
|
|
My gentoo system is running perfect. I have an intel i5 4570 haswell processor. When i installed gentoo i used the corei7 cflag. Later i read the wiki save cflags wich says to use core-avx2. What should i do? Change the cflag and run emerge -avuDN world?
In my kernel config i selected core2/newer. Is that correct, or do i need a patch? |
|
Back to top |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Wed Mar 05, 2014 6:58 am Post subject: |
|
|
Or you may use native if you have a recent gcc that supports it:
CFLAGS="-mtune=native -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Mar 05, 2014 8:07 am Post subject: Re: Change of CFLAGS |
|
|
BartNL wrote: | In my kernel config i selected core2/newer. Is that correct, or do i need a patch? |
Yes it is correct.
BTW, you'll notice that starting from 3.13 kernels, you get the ability to select a wider range of families, in particular one dedicated to your processor :
CONFIG_MCOREAVX2:
Select this for AVX2 enabled processors including Haswell.
Enables -march=core-avx2
BTW only efficient with gcc >= 4.7 _________________
|
|
Back to top |
|
|
|