Open ZimingYuan opened 4 months ago
From line 29 of CMakeLists.txt:
CMakeLists.txt
# Source codes add_subdirectory(src) add_subdirectory(tests) # Compile flags add_definitions(-std=c++11 -O3 -lboost -ltcmalloc_minimal -march=native -Wall -DINFO)
The correct order should be:
# Compile flags add_definitions(-std=c++11 -O3 -lboost -ltcmalloc_minimal -march=native -Wall -DINFO) # Source codes add_subdirectory(src) add_subdirectory(tests)
The original order deactivates the compile parameters in fact, which disables the O3 and AVX optimization.
From line 29 of
CMakeLists.txt
:The correct order should be:
The original order deactivates the compile parameters in fact, which disables the O3 and AVX optimization.