Skip to content

Commit

Permalink
PyTrilinos2: handle OpenMP and MPI flags
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Jan 9, 2025
1 parent acf6e22 commit 21444c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/PyTrilinos2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ IF(NOT DEFINED PyTrilinos2_BINDER_GCC_TOOLCHAIN)
ELSE()
list(APPEND BINDER_OPTIONS --gcc-toolchain=${PyTrilinos2_BINDER_GCC_TOOLCHAIN})
ENDIF()

ASSERT_DEFINED(
Tpetra_INST_OPENMP
)
IF (Tpetra_INST_OPENMP)
list(APPEND BINDER_OPTIONS "-fopenmp")
ENDIF()
IF (NOT "${TPL_MPI_INCLUDE_DIRS}" MATCHES "")
list(APPEND BINDER_OPTIONS "-I${TPL_MPI_INCLUDE_DIRS}")
ENDIF()
list(APPEND BINDER_OPTIONS -DNDEBUG)

message("BINDER_OPTIONS='${BINDER_OPTIONS}'")
Expand Down

0 comments on commit 21444c5

Please sign in to comment.