Skip to content

Commit

Permalink
update scalapack in build script, use int_int for tpetra build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wortiz committed Apr 4, 2024
1 parent 43b3da3 commit c91d438
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1,438 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ list(FIND Trilinos_PACKAGE_LIST Tpetra tpetra_package_index)
if(${tpetra_package_index} GREATER_EQUAL 0)
option(ENABLE_TPETRA "ENABLE_TPETRA" ON)
if(ENABLE_TPETRA)
option(GOMA_MATRIX_GO_LONG_LONG "GOMA_MATRIX_GO_LONG_LONG" OFF)
if (GOMA_MATRIX_GO_LONG_LONG)
message(WARNING "GOMA_MATRIX_GO_LONG_LONG is enabled, using long long for Tpetra this is experimental")
list(APPEND GOMA_COMPILE_DEFINITIONS GOMA_MATRIX_GO_LONG_LONG)
endif()
if ((NOT ${HAVE_TPETRA_INST_INT_INT}) AND (NOT ${GOMA_MATRIX_GO_LONG_LONG}))
message(FATAL_ERROR "Trilinos not built with Tpetra with int int, "
"please disable Tpetra, or enable GOMA_MATRIX_GO_LONG_LONG, "
"or rebuild Trilinos with Tpetra int int")
endif()
message(STATUS "TRILINOS: Tpetra found, enabling in Goma")
list(APPEND GOMA_COMPILE_DEFINITIONS GOMA_ENABLE_TPETRA)
list(FIND Trilinos_PACKAGE_LIST Amesos2 amesos2_package_index)
Expand Down
Loading

0 comments on commit c91d438

Please sign in to comment.