Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What flags do you suggest for two CPUs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 304

PostPosted: Mon Apr 24, 2017 11:44 am    Post subject: What flags do you suggest for two CPUs? Reply with quote

Hello, I have two hosts at LAN. First is:
Code:
Intel(R) Core(TM) i5-2410M                                                                                                           
CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

and the second is:
Code:
Intel(R) Celeron(R) CPU N3050
CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"


I want portage to use binary packages from the first host for the second. So I need some "shared" values for CFLAGS and CPU_FLAGS_X86, right?
Which do you suggest?
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 881

PostPosted: Mon Apr 24, 2017 12:03 pm    Post subject: Reply with quote

Code:
CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 304

PostPosted: Mon Apr 24, 2017 1:58 pm    Post subject: Reply with quote

Ok, what about CFLAGS ? I mean '-march'
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 24, 2017 2:24 pm    Post subject: Reply with quote

Code:
gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

Leave out everything that is not supported by second CPU.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22668
Location: here

PostPosted: Mon Apr 24, 2017 2:37 pm    Post subject: Reply with quote

cord wrote:
Ok, what about CFLAGS ?

Not sure but I think (never tested)
Code:
-O2 -pipe


man gcc wrote:
Where none of -mtune=, -mcpu= or -march= are specified, the code is tuned to perform well across a range of target processors.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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