Skip to content

Instantly share code, notes, and snippets.

@thomvil
Created March 14, 2014 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomvil/9559510 to your computer and use it in GitHub Desktop.
Save thomvil/9559510 to your computer and use it in GitHub Desktop.

AVX instructions

g++-4.8 arma_example.cpp -o arma_example -O3 -larmadillo -std=c++11 -Wall -fno-rtti -Wa,-q -march=native

-march=native doesn't work on osx because of outdated as.

-q Use the clang(1) integrated assembler instead of the GNU based system assembler.

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