Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Returning to Gentoo from Arch and have questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dcbdbis
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Aurora, Colorado, USA

PostPosted: Mon Apr 02, 2012 4:34 am    Post subject: [SOLVED] Returning to Gentoo from Arch and have questions Reply with quote

I have a AMD FX-8150 CPU, and 16GB of ram. And despite the bad press, I am having good results with BD. It's not the latest Core i7, but it also didn't cost me $1k. :-)

But in switching back to Gentoo from Arch (hard-wipe)....I see the USE flags have only gotten more complex. (not a complaint, just an observation)

I'll do the research on the technicalities, so rather than read a ton of stuff ahead of time, I just want to ask some generics from the distro itself.

After I install, and before I rebuild the "world"...I want to use compiler flags specific for the new AMD Bulldozer CPU.

a) Is there a USE flag for the bulldozer specifically that handles the new BD architecture properly?

b) Is this USE flag for Bulldozer also used when using the "genkernel" tools?

c) How is the distro in general doing with build package stability in the build/rebuild process? I guess I'm asking a non-inflammatory question about the build quality of the packages that prevent broken builds of either "world" or larger packages such as LibreOffice.

d) Any massive "gotchas" with Bulldozer and Gentoo and the general source building process? I would assume any gotchas would be Bulldozer generated because of the new architecture, and this question is not intended to impugn Gentoo in any way whatsoever.



Just trying to get my ducks lined up in prep for the port over ahead of time.


Sincerely and respectfully,


Dave


Last edited by dcbdbis on Mon Apr 02, 2012 5:29 am; edited 1 time in total
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Apr 02, 2012 5:19 am    Post subject: Reply with quote

a, b: you mean C(XX)FLAGS, don't you. AFAIK, not with the currently "stable" gcc-4.5.x, that doesn't even have proper automatic support for Core i7.

c) be more specific, didn't have major problems since the latest png-1.5 "debacle".
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
dcbdbis
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Aurora, Colorado, USA

PostPosted: Mon Apr 02, 2012 5:29 am    Post subject: Thanks for the reply Reply with quote

You did indeed answer my questions, and yes you are right about the C, CXX flags. It's been a while so forgive the slip of terminology.

And Thank you for the post!


Dave
Back to top
View user's profile Send private message
dcbdbis
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Aurora, Colorado, USA

PostPosted: Mon Apr 02, 2012 5:33 am    Post subject: Info for Others on the FX-8150 Bulldozer Reply with quote

After some poking around I found under safe CFlags:

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

These cflags are Bulldozer specific.


Again I thank you for the replies.


Dave
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Mon Apr 02, 2012 11:30 am    Post subject: Re: Info for Others on the FX-8150 Bulldozer Reply with quote

dcbdbis wrote:
After some poking around I found under safe CFlags:

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

These cflags are Bulldozer specific.


Again I thank you for the replies.


Dave

The -mtune=bdver1 is redundant, btw. ;)

I have read elsewhere that gcc 2.6.2 has full support for Bulldozer, so you might want to unmask that and use it. There may be a few other packages that you need to unmask as well. Also, if you want all the safe supported CFLAGS for BD, you can use "-march=native". That will match your CPU with what gcc has and use the best flags, so if in the future, they decide to change things, then the newer better flags will automatically be switched to. ;)
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
chessmaster
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2013
Posts: 77

PostPosted: Tue Jul 02, 2013 9:58 pm    Post subject: Reply with quote

bdver1
AMD Family 15h core based CPUs with x86-64 instruction set support. (This supersets FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
bdver2
AMD Family 15h core based CPUs with x86-64 instruction set support. (This supersets BMI, TBM, F16C, FMA, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
btver1
AMD Family 14h core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM and 64-bit instruction set extensions.)
winchip-c6
_________________
http://www.morphos.de/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum