Skip to content

Commit

Permalink
MueLU: Update CMakeLists.txt
Browse files Browse the repository at this point in the history
The SpMV test was originally only written for Epetra vs. Tpetra comparisons.  We can also use it for Tpetra-only operations.
  • Loading branch information
csiefer2 authored Apr 17, 2024
1 parent 23ccc58 commit 6ece4c4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/muelu/test/scaling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -585,14 +585,14 @@ IF (${PACKAGE_NAME}_HAVE_TPETRA_SOLVER_STACK)

ENDIF()

IF (${PACKAGE_NAME}_ENABLE_Epetra AND Tpetra_INST_SERIAL)
TRIBITS_ADD_EXECUTABLE(
SpMVPerformance
SOURCES SpMVPerformance.cpp
COMM mpi
CATEGORIES PERFORMANCE
)
TRIBITS_ADD_EXECUTABLE(
SpMVPerformance
SOURCES SpMVPerformance.cpp
COMM mpi
CATEGORIES PERFORMANCE
)

IF(Tpetra_INST_SERIAL)
TRIBITS_ADD_TEST(
SpMVPerformance
NAME_POSTFIX "Tpetra"
Expand All @@ -614,7 +614,9 @@ IF (${PACKAGE_NAME}_ENABLE_Epetra AND Tpetra_INST_SERIAL)
RUN_SERIAL
CATEGORIES PERFORMANCE
)
ENDIF()

IF (${PACKAGE_NAME}_ENABLE_Epetra)
TRIBITS_ADD_TEST(
SpMVPerformance
NAME_POSTFIX "Epetra"
Expand Down

0 comments on commit 6ece4c4

Please sign in to comment.