Skip to content

Instantly share code, notes, and snippets.

@lxxstc
Last active December 15, 2015 15:19
Show Gist options
  • Save lxxstc/5281331 to your computer and use it in GitHub Desktop.
Save lxxstc/5281331 to your computer and use it in GitHub Desktop.

系统参数

  • CPU: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (文档里面说最好使用gcc >= 4.6)
  • Memory: 64GB 4X
  • Kernel: 3.2.34
  • Issue: CentOS 6.2
  • Postgresql: 9.2
  • GCC: 4.8.0
  • CFLAGS: -march=native -O3 -mavx -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
  • LDFLAGS: -Wl,--as-needed -Wl,-rpath,'/opt/pg92/lib',--enable-new-dtags
gcc -mavx
  • -mavx,gcc会尽量生成avx指令

注意avx,关注一下链接,需要avx和sse的区别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment