Skip to content

Commit

Permalink
CMake: add -DKAMINPAR_BUILD_WITH_PG option for profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Sep 4, 2023
1 parent 5141b8b commit a03a364
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ option(KAMINPAR_BUILD_WITH_MTUNE_NATIVE "Build with -mtune=native." ON)
option(KAMINPAR_BUILD_WITH_CCACHE "Use ccache to build." ON)
option(KAMINPAR_BUILD_WITH_DEBUG_SYMBOLS "Always build with debug symbols, even in Release mode." ON)
option(KAMINPAR_BUILD_WITH_MTKAHYPAR "If Mt-KaHyPar can be found, build the Mt-KaHyPar initial partitioner." OFF)
option(KAMINPAR_BUILD_WITH_PG "Build with the -pg option for profiling." OFF)

# Control data type sizes
#########################
Expand Down Expand Up @@ -108,6 +109,10 @@ if (KAMINPAR_BUILD_WITH_ASAN)
add_link_options(-fsanitize=address)
endif ()

if (KAMINPAR_BUILD_WITH_PG)
add_compile_options(-pg)
endif ()

# Pass CMake options to code
if (KAMINPAR_ENABLE_STATISTICS)
list(APPEND KAMINPAR_DEFINITIONS "-DKAMINPAR_ENABLE_STATISTICS")
Expand Down

0 comments on commit a03a364

Please sign in to comment.