View previous topic :: View next topic |
Author |
Message |
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Mon Nov 23, 2009 11:58 pm Post subject: Core i5 Settings |
|
|
I have 3 questions relating to the core i5 CPU...
1) Do I use amd64 or ia64 for the core i5 CPU?
2) What do I use for my CHOST?
3) What do I use for my CFLAGS?
Last edited by Evileye on Wed Dec 16, 2009 3:44 am; edited 4 times in total |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Nov 24, 2009 12:03 am Post subject: |
|
|
From what I gather, it's the same as i7
Look here for details.
Of course, if your gcc is >=4.2.3 this would probably be best for 64 bit Code: | CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
|
|
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Tue Nov 24, 2009 12:11 am Post subject: |
|
|
Thanks for the link. I see you have "native" but the document you linked too has "core2". What's the difference between these?
I'm assuming I use the amd64 install CD, is this correct? |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Nov 24, 2009 12:22 am Post subject: |
|
|
Good question,
answer |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 24, 2009 12:43 am Post subject: |
|
|
Use the AMD64 install CD. |
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Tue Nov 24, 2009 12:44 am Post subject: |
|
|
ok, that leads me to another question. The wiki says...
Quote: | -march=native, which automatically detects the features your CPU supports and sets the options appropriately |
...Does this mean I don't have to include stuff like "-msse4"? |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Tue Nov 24, 2009 1:50 am Post subject: |
|
|
EvilEye wrote: | ok, that leads me to another question. The wiki says...
Quote: | -march=native, which automatically detects the features your CPU supports and sets the options appropriately |
...Does this mean I don't have to include stuff like "-msse4"? | spot on. _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Nov 24, 2009 1:56 am Post subject: |
|
|
You should be able to see what -march=native will autodect with this command when your gcc is installed Code: | gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1" |
|
|
Back to top |
|
|
Evileye l33t
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Tue Nov 24, 2009 2:00 am Post subject: |
|
|
ok, just one more question
What about stuff like "-fomit-frame-pointer" or "-pipe", would I have to manually include those or are they also included in "native"? |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Nov 24, 2009 2:09 am Post subject: |
|
|
CFLAGS="-march=native -O2 -pipe"
-fomit-frame-pointer is included in -O2 on amd64
Happy compiling |
|
Back to top |
|
|
luispa Guru
Joined: 17 Mar 2006 Posts: 359 Location: España
|
Posted: Tue Nov 24, 2009 7:12 am Post subject: |
|
|
Also remember
Code: | MAKEOPTS="-j9" (for Core i7)
or...
MAKEOPTS="-j5" (for Core i5)
|
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 24, 2009 5:13 pm Post subject: |
|
|
In fact, that will boost your compilation time |
|
Back to top |
|
|
Simba7 l33t
Joined: 22 Jan 2007 Posts: 706 Location: Billings, MT, USA
|
Posted: Tue Nov 24, 2009 6:52 pm Post subject: |
|
|
So, basically the i5 is a chopped version of the i7..
1. Core i7 supports HyperThreading, Core i5 does not.
2. Core i7 supports Triple-Channel DDR3, Core i5 only supports Dual-Channel.
3. Core i5 has a built-in PCI-Express controller.. The Core i7 does not. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 24, 2009 8:34 pm Post subject: |
|
|
It's like a Celeron if you compare to an old P4 arch. |
|
Back to top |
|
|
|