mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: build system option to enable Tracy profiler
This commit is contained in:
@@ -32,6 +32,7 @@ option(USE_CHOW_PATEL_ILU_GPU_PARALLEL "Try to use more parallelism on the GPU d
|
||||
option(BUILD_FLOW_ALU_GRID "Build flow blackoil with alu grid" OFF)
|
||||
option(USE_DAMARIS_LIB "Use the Damaris library for asynchronous I/O?" OFF)
|
||||
option(USE_BDA_BRIDGE "Enable the BDA bridge (GPU/AMGCL solvers)" ON)
|
||||
option(USE_TRACY_PROFILER "Enable tracy profiling" OFF)
|
||||
|
||||
# The following was copied from CMakeLists.txt in opm-common.
|
||||
# TODO: factor out the common parts in opm-common and opm-simulator as a cmake module
|
||||
@@ -258,6 +259,12 @@ macro (config_hook)
|
||||
add_definitions(-DFMT_HEADER_ONLY)
|
||||
list(APPEND EXTRA_INCLUDES SYSTEM ${PROJECT_SOURCE_DIR}/external/fmtlib/include)
|
||||
endif()
|
||||
if(USE_TRACY_PROFILER AND Tracy_FOUND)
|
||||
set(USE_TRACY 1)
|
||||
list(APPEND opm-simulators_LIBRARIES Tracy::TracyClient)
|
||||
else()
|
||||
set(USE_TRACY)
|
||||
endif()
|
||||
include_directories(${EXTRA_INCLUDES})
|
||||
|
||||
include(UseDamaris)
|
||||
|
||||
Reference in New Issue
Block a user