View previous topic :: View next topic |
Author |
Message |
cord Guru


Joined: 28 Apr 2007 Posts: 304
|
Posted: Mon Apr 24, 2017 11:44 am Post subject: What flags do you suggest for two CPUs? |
|
|
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 |
|
 |
Perfect Gentleman l33t

Joined: 18 May 2014 Posts: 881
|
Posted: Mon Apr 24, 2017 12:03 pm Post subject: |
|
|
Code: | CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" |
|
|
Back to top |
|
 |
cord Guru


Joined: 28 Apr 2007 Posts: 304
|
Posted: Mon Apr 24, 2017 1:58 pm Post subject: |
|
|
Ok, what about CFLAGS ? I mean '-march' |
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 7328 Location: Saint Amant, Acadiana
|
Posted: Mon Apr 24, 2017 2:24 pm Post subject: |
|
|
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 |
|
 |
fedeliallalinea Bodhisattva


Joined: 08 Mar 2003 Posts: 22668 Location: here
|
Posted: Mon Apr 24, 2017 2:37 pm Post subject: |
|
|
cord wrote: | Ok, what about CFLAGS ? |
Not sure but I think (never tested)
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 |
|
 |
|