diff options
author | ariel faigon <ariel.git@yendor.com> | 2010-11-26 04:28:55 +0300 |
---|---|---|
committer | JohnLangford <jl@hunch.net> | 2010-11-27 17:21:59 +0300 |
commit | e8beb7fcf6430c090f51424f1ec499e5b4e13492 (patch) | |
tree | bdb5343f7ecbef8f9ababb958c882e41941fe9fa /Makefile | |
parent | 8490ebef3aa87af00814129bdcdb1986986052f9 (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-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |