Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of Theseus.
#
# SPDX-License-Identifier: MIT
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.15)

set(CMAKE_CXX_STANDARD 17)
Expand All @@ -22,6 +22,10 @@ option(ENABLE_TIMER_OUTPUT_ALLRANKS "Output timers on all ranks." OFF)
option(ENABLE_TIMER_SYNC_DEVICE "Fence timers with device sync." OFF)
option(ENABLE_CUDA "Compile CUDA kernels" OFF)
option(THESEUS_WITH_PLATO "Enable PLATO API for thermo tables" OFF)
option(ENABLE_POINT_PARALLEL_INTERIOR_FACES
"Use one device thread per interior-face point." OFF)
option(ENABLE_POINT_PARALLEL_VOLUME
"Use one device thread per element volume point where supported." OFF)
Comment on lines +25 to +28
## NOTE: PLATO_DB_PATH can be specified at build-time to customize
## the location of the database used by PLATO. Tries to default
## to a reasonable location.
Expand Down Expand Up @@ -142,20 +146,32 @@ else()
endif()

if(ENABLE_TIMERS)
message(STATUS "Enabling performance timers.")
message(STATUS "Enabling detailed performance timers.")
target_compile_definitions(theseus PRIVATE ENABLE_TIMERS)
if(ENABLE_TIMER_BARRIER)
message(STATUS " - Timing with barriers")
target_compile_definitions(theseus PRIVATE TIMER_BARRIER)
endif()
if(ENABLE_TIMER_OUTPUT_ALLRANKS)
message(STATUS " - Timing output on all ranks")
target_compile_definitions(theseus PRIVATE TIMER_OUTPUT_ALLRANKS)
endif()
if(ENABLE_TIMER_SYNC_DEVICE)
message(STATUS " - Timing device sync enabled")
target_compile_definitions(theseus PRIVATE TIMER_SYNC_DEVICE)
endif()
else()
message(STATUS "Detailed performance timers disabled.")
endif()
if(ENABLE_TIMER_SYNC_DEVICE)
message(STATUS " - Timing device sync enabled")
target_compile_definitions(theseus PRIVATE TIMER_SYNC_DEVICE)
endif()
if(ENABLE_TIMER_BARRIER)
message(STATUS " - Timing barriers enabled")
target_compile_definitions(theseus PRIVATE TIMER_BARRIER)
endif()

if(ENABLE_POINT_PARALLEL_INTERIOR_FACES)
message(STATUS "Using point-parallel interior-face assembly")
target_compile_definitions(theseus PRIVATE POINT_PARALLEL_INTERIOR_FACES)
endif()

if(ENABLE_POINT_PARALLEL_VOLUME)
message(STATUS "Using point-parallel volume assembly where supported")
target_compile_definitions(theseus PRIVATE POINT_PARALLEL_VOLUME)
endif()

if(SUBCELL_FV_BLENDING)
Expand Down
Loading
Loading