View previous topic :: View next topic |
Author |
Message |
jodel Tux's lil' helper
Joined: 28 Sep 2004 Posts: 113
|
Posted: Thu Apr 01, 2010 8:15 am Post subject: intel i3 clarkdale supported? |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Thu Apr 01, 2010 12:51 pm Post subject: |
|
|
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 |
|
|
jodel Tux's lil' helper
Joined: 28 Sep 2004 Posts: 113
|
Posted: Thu Apr 01, 2010 5:09 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Apr 01, 2010 8:53 pm Post subject: |
|
|
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 |
|
|
Zeerak Apprentice
Joined: 27 Nov 2006 Posts: 239 Location: Aalborg, Denmark
|
Posted: Fri Apr 02, 2010 2:41 am Post subject: |
|
|
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 |
|
|
jodel Tux's lil' helper
Joined: 28 Sep 2004 Posts: 113
|
Posted: Fri Apr 02, 2010 6:21 am Post subject: |
|
|
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 |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Apr 02, 2010 3:37 pm Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Apr 03, 2010 1:22 pm Post subject: |
|
|
kernelOfTruth wrote: | ... a current liveCD with gcc 4.4* |
... in fact, >=sys-devel/gcc-4.2.3
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Apr 03, 2010 2:48 pm Post subject: |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Sun Apr 04, 2010 1:40 pm Post subject: |
|
|
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 |
|
|
spindley n00b
Joined: 02 Aug 2005 Posts: 52 Location: Calgary, AB Canada
|
Posted: Sun Apr 04, 2010 3:37 pm Post subject: |
|
|
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 |
|
|
|