| View previous topic :: View next topic |
| Author |
Message |
djinnZ Advocate


Joined: 02 Nov 2006 Posts: 4500 Location: not so far from an evil, world famous volcano. Under dictatorship, property of banks...
|
Posted: Wed Nov 09, 2011 10:24 am Post subject: |
|
|
| bandreabis wrote: | | Come funziona allora? | grr
frettolosamente
...rifletti su questo | /proc/cpuninfo: | model name : AMD Phenom(tm) II X4 945 Processor
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
power management: ts ttp tm stc 100mhzsteps hwpstate |
| gcc -march=amdfam10 -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p': | | -D_FORTIFY_SOURCE=2 -fno-strict-overflow -march=amdfam10 -fPIE -fstack-protector-all |
| gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p': | | -D_FORTIFY_SOURCE=2 -march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -fno-strict-overflow -fPIE -fstack-protector-all |
| manuale gcc wrote: | amdfam10, barcelona
AMD Family 10h core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!, enhanced 3DNow!, ABM and 64-bit instruction set extensions.) |
--param influenza l'ottimizzazione ai fini delle pure prestazioni per quel che so, ovvio che -mtune è implicito etc. quindi | make.conf: | | CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -O2 -g0" | o, seguendo il manuale (e qui non capisco, sono refusi come per mtune?) | make.conf: | | CFLAGS="-march=amdfam10 -mcx16 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -fomit-frame-pointer -O2 -g0" |
Non ho ancora trovato un modo, per verificare quali sse vengono attivate da march, alternativo a --help=target; a me è sempre scassato (qualcuno può verificare se sul gcc "normale" funziona almeno? Non ho da installarmi una gentoo "normale" solo per aprire un bug). IMHO sugli amd più recenti (od è per gli intel ed hanno capito male?) sarebbe il caso di prevenire le ottimizzazioni per mmx e 3dnow (e mettere un bel - alle use corrispondenti in make.conf) perché pare (ho letto in giro ma non so se sono fesserie) che rallentino invece di rendersi utili.
Grazie a chi volesse fornire indicazioni utili in proposito... mica posso sempre fare tutto da solo ... _________________ verba et risus abundat in orae stultorum sed etiam semper severi insani sunt
mala tempora currunt... mater stultorum semper pregna est
Murpy'sLaw: If anything can go wrong, it will - O'Toole's Corollary: Murphy was an optimist |
|
| Back to top |
|
 |
|
|
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
|
|