LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: zhuqin_83

[分享][测试]改进的pi,含源代码

[复制链接]
发表于 2009-5-29 08:08:47 | 显示全部楼层
Post by zhuqin_83;1991864
real 14.80
user 14.48
sys 0.25
DATE: 1243531706
PIID: 14F21C327E
发现用-march=native的反而比不上直接make的?编译中我看到使用的是-march=pentium3 -mtune=pentium3。。。
不管了,想当初super-pi104万位用了34秒就已经很激动了。。。这可是300万呐。


能够自己判断CPU类型的,编译gmp时,我i686上,编译时的march是Core2跟K8
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-23 03:04:04 | 显示全部楼层
挖坟中。。。
  1. Type: mt-bbp
  2. Time: 17.449 sec
  3. DATE: 1261507157
  4. PIID: 57EBD13800
  5. SENDDATE: 1261507179
  6. GMP:  gmp-4.3.0 gmp-4.3.0.tar.bz2 gmp-Version.txt gmp-chudnovsky.c
  7. gcc (GCC) 4.4.2 20091208 (prerelease)
  8. Copyright (C) 2009 Free Software Foundation, Inc.
  9. This is free software; see the source for copying conditions.  There is NO
  10. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. ./mt-bbp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, not stripped
  12. Linux version 2.6.32-ARCH (tobias@T-POWA-LX) (gcc version 4.4.2 20091208 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Dec 15 19:39:38 CET 2009
  13. processor        : 0
  14. vendor_id        : AuthenticAMD
  15. cpu family        : 16
  16. model                : 6
  17. model name        : AMD Turion(tm) II Ultra Dual-Core Mobile M640
  18. stepping        : 2
  19. cpu MHz                : 2600.000
  20. cache size        : 1024 KB
  21. physical id        : 0
  22. siblings        : 2
  23. core id                : 0
  24. cpu cores        : 2
  25. apicid                : 0
  26. initial apicid        : 0
  27. fpu                : yes
  28. fpu_exception        : yes
  29. cpuid level        : 5
  30. wp                : yes
  31. 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 nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
  32. bogomips        : 5189.42
  33. TLB size        : 1024 4K pages
  34. clflush size        : 64
  35. cache_alignment        : 64
  36. address sizes        : 48 bits physical, 48 bits virtual
  37. power management: ts ttp tm stc 100mhzsteps hwpstate
  38. processor        : 1
  39. vendor_id        : AuthenticAMD
  40. cpu family        : 16
  41. model                : 6
  42. model name        : AMD Turion(tm) II Ultra Dual-Core Mobile M640
  43. stepping        : 2
  44. cpu MHz                : 2600.000
  45. cache size        : 1024 KB
  46. physical id        : 0
  47. siblings        : 2
  48. core id                : 1
  49. cpu cores        : 2
  50. apicid                : 1
  51. initial apicid        : 1
  52. fpu                : yes
  53. fpu_exception        : yes
  54. cpuid level        : 5
  55. wp                : yes
  56. 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 nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
  57. bogomips        : 5189.06
  58. TLB size        : 1024 4K pages
  59. clflush size        : 64
  60. cache_alignment        : 64
  61. address sizes        : 48 bits physical, 48 bits virtual
  62. power management: ts ttp tm stc 100mhzsteps hwpstate
  63. MemTotal:        4052416 kB
  64. MemFree:         3087628 kB
  65. Buffers:          234428 kB
  66. Cached:           559020 kB
  67. Mon May 25 12:30:53 JST 2009
  68. $Id: version.txt,v 3.2 2009/05/25 03:30:53 hironobu Exp hironobu $
  69. CHECKSUM:  dfc6b7c62b1f4f18412e0712afa842c7b680e243 -
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-12-23 05:52:22 | 显示全部楼层
pi跑得快的U对我没啥大用,我关心的是实际软件包的编译速度,显然intel在这方面还有优势 千行/Hz。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表