Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About 'USE' in make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
lenin
n00b
n00b


Joined: 14 Oct 2010
Posts: 4
Location: NWPU

PostPosted: Mon Nov 22, 2010 1:24 am    Post subject: About 'USE' in make.conf Reply with quote

My CPU is Athlon II X3 435 , how should I set 'USE' in make.conf to make compile match my CPU ? Thanks.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1678
Location: Berlin, Germany

PostPosted: Mon Nov 22, 2010 3:18 am    Post subject: Reply with quote

You don't need to set USE flags for your CPU. CFLAGS however you might want. http://en.gentoo-wiki.com/wiki/Safe_Cflags
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 362

PostPosted: Mon Nov 22, 2010 6:43 am    Post subject: Reply with quote

There are use flags for assembly optimizations. Your CPU has the following.

USE="3dnow 3dnowext mmx mmxext sse sse2 sse3"
_________________
My 1U Dual 833 MHz Alphaserver DS20L
The AlphaLinux.org Wiki
Back to top
View user's profile Send private message
ShadowHawkBV
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 262

PostPosted: Sat Jun 25, 2011 3:58 pm    Post subject: Reply with quote

Quote:
There are use flags for assembly optimizations. Your CPU has the following.

USE="3dnow 3dnowext mmx mmxext sse sse2 sse3"


Do the sse keys act recursively? If I add sse3 to my USE, will sse and sse2 automatically be applied as necessary? I seem to remember that being the case for CFLAGS, but am unsure about USE.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
AMD Phenom(tm) II X4 955
Socket 939 AMD64X2 4200,
Intel Core i7-2670QM
Intel Core i5-2557M
Pure 64bit frustration :-)
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 362

PostPosted: Sat Jun 25, 2011 4:38 pm    Post subject: Reply with quote

ShadowHawkBV wrote:
Quote:
There are use flags for assembly optimizations. Your CPU has the following.

USE="3dnow 3dnowext mmx mmxext sse sse2 sse3"


Do the sse keys act recursively? If I add sse3 to my USE, will sse and sse2 automatically be applied as necessary? I seem to remember that being the case for CFLAGS, but am unsure about USE.


No, you should add them manually.
_________________
My 1U Dual 833 MHz Alphaserver DS20L
The AlphaLinux.org Wiki
Back to top
View user's profile Send private message
ShadowHawkBV
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 262

PostPosted: Tue Jun 28, 2011 12:33 am    Post subject: Reply with quote

Thank you for the clarification.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
AMD Phenom(tm) II X4 955
Socket 939 AMD64X2 4200,
Intel Core i7-2670QM
Intel Core i5-2557M
Pure 64bit frustration :-)
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 5611
Location: ~Brussels - Belgique

PostPosted: Sun Jul 31, 2011 3:40 pm    Post subject: Reply with quote

Some profiles enable "cpu" USE flags, such as amd64 (enabling SSE* MMX, ...)
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sat Aug 06, 2011 1:58 pm    Post subject: Reply with quote

"cat /proc/cpuinfo" should tell you what the cpu has available in its
instruction set (see the "flags" entry). "-march=native" in CFLAGS
in /etc/make.conf should pull in any of those that are relevant to
the current code that gcc is compiling.
_________________
TIA
Back to top
View user's profile Send private message
Terrel Shumway
n00b
n00b


Joined: 26 Aug 2011
Posts: 4

PostPosted: Fri Aug 26, 2011 10:27 pm    Post subject: I think it is automatic Reply with quote

/usr/portage/profiles/arch/amd64/use.mask
Quote:

# Feb 16th 2007; Simon Stelling <blubb@gentoo.org>
# Since this profile forces >=portage-2.1.2, we can unmask all
# SIMD assembler flags
-mmx
-mmxext
-sse
-sse2
-sse3
-sse4
-sse4a
-sse5
-3dnow
-3dnowext


Doesn't this mean that all of these are automatically enabled for all amd64 profiles?
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sat Aug 27, 2011 6:03 pm    Post subject: Reply with quote

Quote:
Doesn't this mean that all of these are automatically enabled for all amd64 profiles?


It would simply mean that they are not forbidden (masked). Whether they are actually
used by a particular ebuild would likely be conditional on other tests (since not all
amd64 cpus implement all of those instruction set extensions).
_________________
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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