Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel faigon <ariel.git@yendor.com>2010-11-26 04:28:55 +0300
committerJohnLangford <jl@hunch.net>2010-11-27 17:21:59 +0300
commite8beb7fcf6430c090f51424f1ec499e5b4e13492 (patch)
treebdb5343f7ecbef8f9ababb958c882e41941fe9fa /Makefile
parent8490ebef3aa87af00814129bdcdb1986986052f9 (diff)
Makefile cleanup:
- Changed ARCH from -march=nocona to -march=native as it should be - Grouped optimization flags in OPTIM_FLAGS - Added -fomit-frame-pointer (gives me a ~2% improvement in vw training run-time.)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 381004a9..ea4f7a40 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,11 @@ LIBS = -l boost_program_options -l pthread -l z
BOOST_INCLUDE = /usr/local/boost/include/boost-1_34_1
BOOST_LIBRARY = /usr/local/boost/lib
-ARCH = -march=nocona
+ARCH = -march=native
+OPTIM_FLAGS = -O3 -fomit-frame-pointer -ffast-math -fno-strict-aliasing
# for normal fast execution.
-FLAGS = -Wall $(ARCH) -ffast-math -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE) -O3
+FLAGS = -Wall $(ARCH) $(OPTIM_FLAGS) -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE)
# for parallelization
#FLAGS = -Wall $(ARCH) -ffast-math -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -I $(BOOST_INCLUDE) -O3 -fopenmp