using -mtune=native

This commit is contained in:
Mark Borgerding 2009-09-22 01:53:33 +00:00
parent 3a4db1fed7
commit 0aaf69c005

View File

@ -6,7 +6,7 @@ WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return \
# for x86 pentium+ machines , these flags work well
#CFLAGS=-O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
# If the above flags do not work, try the following
CFLAGS=-O3 -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
CFLAGS=-O3 -mtune=native -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
# TIP: try adding -openmp or -fopenmp to enable OPENMP directives and use of multiple cores