Commit e8b60300 authored by Jason Rhinelander's avatar Jason Rhinelander

Reduce default optimization to -O2

-O3 -march=native seems to make no performance difference (and actually
slows some parts of eris down--plus seems to introduce
non-reproducibility in RNG when -march=native enables AVX instructions)
parent d2a3259f
......@@ -33,7 +33,7 @@ include_directories(${ERIS_INCLUDE_DIRS})
link_directories(${ERIS_LIBRARY_DIRS})
add_definitions(${ERIS_CFLAGS_OTHER})
set(CMAKE_CXX_FLAGS "-std=c++11 -march=native -O3 -Wall -Wextra ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++11 -O2 -Wall -Wextra ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -DERIS_DEBUG")
add_library(voting ${voting_src})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment