Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
intel i3 clarkdale supported?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jodel
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 113

PostPosted: Thu Apr 01, 2010 8:15 am    Post subject: intel i3 clarkdale supported? Reply with quote

Is there support for the intel clarkdale i3 cpu and its integrated GPU in the current gentoo amd64 stable (kernel 2.6.31-r10) ?

can I use the same CFLAGS as for i5:

CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"

(from gentoo wiki)
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Apr 01, 2010 12:51 pm    Post subject: Reply with quote

What about the stock:
CFLAGS="-march=native -O2 -pipe"

Won't "-march=native" for i3 pick up the stuff like "-mss34" automagically?
Come to think of it, to get "-march=native" to work properly, wouldn't you need some sort of gcc update newer than your CPU? Or does it somehow figure out your CPU capabilities on-the-fly rather than having some sort of table?
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
jodel
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 113

PostPosted: Thu Apr 01, 2010 5:09 pm    Post subject: Reply with quote

depontius wrote:
What about the stock:
CFLAGS="-march=native -O2 -pipe"

Won't "-march=native" for i3 pick up the stuff like "-mss34" automagically?
Come to think of it, to get "-march=native" to work properly, wouldn't you need some sort of gcc update newer than your CPU? Or does it somehow figure out your CPU capabilities on-the-fly rather than having some sort of table?

this thread says its better to specify your march than to use native:
https://forums.gentoo.org/viewtopic-t-821639.html?sid=089f97c1ffb2aa3e136014ffb7dc626b

but my main concern is if I will face serious problems with the built-in GPU
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Apr 01, 2010 8:53 pm    Post subject: Reply with quote

jodel, what happen when you run this :

Code:

$ gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"
Back to top
View user's profile Send private message
Zeerak
Apprentice
Apprentice


Joined: 27 Nov 2006
Posts: 239
Location: Aalborg, Denmark

PostPosted: Fri Apr 02, 2010 2:41 am    Post subject: Reply with quote

as far as specifying march rather than using native. If you specify the correct march (and perhaps also the right options along with it), then there shouldn't be any difference to native and what you specified :-)
_________________
Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this
Back to top
View user's profile Send private message
jodel
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 113

PostPosted: Fri Apr 02, 2010 6:21 am    Post subject: Reply with quote

d2_racing wrote:
jodel, what happen when you run this :

Code:

$ gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"


well, I can't test it, because I wanted to make sure everything works before I install anything.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Apr 02, 2010 2:20 pm    Post subject: Reply with quote

jodel wrote:
d2_racing wrote:
jodel, what happen when you run this :

Code:

$ gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"


well, I can't test it, because I wanted to make sure everything works before I install anything.


???

what hinders you from popping in a current liveCD with gcc 4.4* and type in that command ?

or don't you have that box yet ?


I wouldn't count on great support for that gpu yet ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Apr 02, 2010 3:37 pm    Post subject: Reply with quote

The GPU wouldn't be used by normal programs, nor would the compiler generate code for the GPU. In other words, since it's a "Core" family CPU, -march=core2 will get you most of the way there. As GCC starts supporting Core i3 nuances in the future, you can upgrade GCC and then recompile with the new -march setting.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Apr 03, 2010 1:22 pm    Post subject: Reply with quote

kernelOfTruth wrote:
... a current liveCD with gcc 4.4*


... in fact, >=sys-devel/gcc-4.2.3

:)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Apr 03, 2010 1:45 pm    Post subject: Reply with quote

Mike Hunt wrote:
kernelOfTruth wrote:
... a current liveCD with gcc 4.4*


... in fact, >=sys-devel/gcc-4.2.3

:)


yeah, I'd however still use a liveCD with a least 4.3 just to be sure & that it supports sse4 stuff :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Apr 03, 2010 2:48 pm    Post subject: Reply with quote

kernelOfTruth wrote:
yeah, I'd however still use a liveCD with a least 4.3 just to be sure & that it supports sse4 stuff :)


Yes, good idea. :)
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun Apr 04, 2010 1:40 pm    Post subject: Reply with quote

We got serious issues here...


I'm around 2 months outdated when it comes to hardware now, so do we have a separate GPU on the board for this chip?
_________________
My blog
Back to top
View user's profile Send private message
spindley
n00b
n00b


Joined: 02 Aug 2005
Posts: 52
Location: Calgary, AB Canada

PostPosted: Sun Apr 04, 2010 3:37 pm    Post subject: Reply with quote

d2_racing wrote:
jodel, what happen when you run this :

Code:

$ gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"


I just put an i3 in my machine, and when I run that, I get:
Code:

 "/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/cc1" "-E" "-quiet" "/usr/include/stdlib.h" "-D_FORTIFY_SOURCE=2" "-march=core2" "-mcx16" "-msahf" "--param" "l1-cache-size=32" "--param" "l1-cache-line-size=64" "-mtune=core2"


So, if I read that right, I shouldn't have msse4, but "-march=core2 -mcx16 -msahf -O2 -pipe" should be ok?

Thanks.

Edit:
If I check /proc/cpuinfo, I see sse4_1 and sse4_2 listed under flags, so I guess -msse4 should be there after all?
_________________
"Wake up, Mr. Freeman. Wake up and smell the ashes."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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