Skip to content

Commit

Permalink
Disable serial instantiations for CUDA/OpenMP-enabled builds
Browse files Browse the repository at this point in the history
  • Loading branch information
klevzoff committed Aug 1, 2020
1 parent 1091425 commit 6e35697
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,11 @@ if (ENABLE_TRILINOS)
set( TRILINOS_CXX_COMPILER ${CMAKE_CURRENT_BINARY_DIR}/trilinos/src/trilinos/packages/kokkos/bin/nvcc_wrapper )
endif()

set( TRILINOS_ENABLE_SERIAL ON )
if( ENABLE_OPENMP OR ENABLE_CUDA )
set( TRILINOS_ENABLE_SERIAL OFF )
endif()

ExternalProject_Add( trilinos
PREFIX ${PROJECT_BINARY_DIR}/trilinos
URL ${TRILINOS_URL}
Expand Down Expand Up @@ -721,14 +726,15 @@ if (ENABLE_TRILINOS)
-D KOKKOS_ENABLE_CUDA_LAMBDA:BOOL=${ENABLE_CUDA}
-D KOKKOS_ENABLE_CUDA_UVM:BOOL=${ENABLE_CUDA}
-D Tpetra_ENABLE_CUDA:BOOL=${ENABLE_CUDA}
-D Tpetra_INST_SERIAL:BOOL=ON
-D Tpetra_INST_SERIAL:BOOL=${TRILINOS_ENABLE_SERIAL}
-D Tpetra_INST_INT_LONG_LONG:BOOL=ON
-D Tpetra_INST_INT_INT:BOOL=OFF
-D Tpetra_INST_DOUBLE:BOOL=ON
-D Tpetra_INST_COMPLEX_DOUBLE:BOOL=OFF
-D Belos_ENABLE_Tpetra:BOOL=ON
-D Belos_ENABLE_Epetra:BOOL=OFF
-D Belos_ENABLE_Xpetra:BOOL=OFF
-D Ifpack2_ENABLE_ThyraTpetraAdapters:BOOL=OFF
${TRILINOS_EXTRA_ARGS}
)

Expand Down

0 comments on commit 6e35697

Please sign in to comment.