1 |
Here's the setup of my secondary machine.. It's a Dell Inspiron |
2 |
Desktop 530, with 2 gigs of ram, assembled and shipped August 2007. It |
3 |
has an Intel Core2 (*NOT* a "Core2 Duo") cpu. From /proc/cpuinfo... |
4 |
|
5 |
vendor_id : GenuineIntel |
6 |
cpu family : 6 |
7 |
model : 15 |
8 |
model name : Genuine Intel(R) CPU 2140 @ 1.60GHz |
9 |
stepping : 2 |
10 |
cpu MHz : 1595.660 |
11 |
cache size : 1024 KB |
12 |
|
13 |
Here are the cpu flags... |
14 |
|
15 |
waltdnes@d530 ~ $ grep flags /proc/cpuinfo |
16 |
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge |
17 |
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm |
18 |
constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl |
19 |
est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts |
20 |
|
21 |
Then I ran "gcc -march=native -Q --help=target" and got a major shock. |
22 |
It's a long output listing of what -march=native thinks about my cpu. |
23 |
Here are some relevant items... |
24 |
|
25 |
-march= core2 |
26 |
-mmmx [disabled] |
27 |
-msse [disabled] |
28 |
-msse2 [disabled] |
29 |
-msse3 [disabled] |
30 |
-mssse3 [disabled] |
31 |
|
32 |
It properly identified the cpu as "core2". But mmx, sse, sse2, sse3 |
33 |
(aka pni), and ssse3 are disabled!!! |
34 |
|
35 |
The reason I dug into this was that I was trying to 1920x1080i |
36 |
streaming video from my HDHomerun TV tuner box. I originally used |
37 |
|
38 |
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe" |
39 |
|
40 |
when setting up the system. It could not handle 1920x1080i streaming TV |
41 |
video. |
42 |
|
43 |
After findinding out about "-native", I changed CFLAGS to... |
44 |
|
45 |
CFLAGS="-O2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" |
46 |
|
47 |
...and emerged system and world and rebuilt the kernel. Now the onboard |
48 |
Intel GPU handles 1920x1080i flawlessly. As a matter of fact, it |
49 |
handles 1080p flawlessly. |
50 |
|
51 |
-- |
52 |
Walter Dnes <waltdnes@××××××××.org> |