Skip to content

The command order of CMakeLists.txt is wrong, which affects the performance. #11

@ZimingYuan

Description

@ZimingYuan

From line 29 of 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions