From be647e4dffbb553bdbdbbbb54d187027fba87f2d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 3 Aug 2024 12:13:45 -0400 Subject: [PATCH] Avoid duplicated template instantiation --- source/base/index_set.cc | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/source/base/index_set.cc b/source/base/index_set.cc index 7330f79cfe..a636e830aa 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -1213,37 +1213,49 @@ template IndexSet::IndexSet( types::signed_global_dof_index, LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>> &); + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template IndexSet::IndexSet( const Teuchos::RCP>> &); +# endif template LinearAlgebra::TpetraWrappers::TpetraTypes::MapType dealii::IndexSet::make_tpetra_map< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template LinearAlgebra::TpetraWrappers::TpetraTypes::MapType< MemorySpace::Default> dealii::IndexSet::make_tpetra_map< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; +# endif template Teuchos::RCP< LinearAlgebra::TpetraWrappers::TpetraTypes::MapType> dealii::IndexSet::make_tpetra_map_rcp< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template Teuchos::RCP< LinearAlgebra::TpetraWrappers::TpetraTypes::MapType> dealii::IndexSet::make_tpetra_map_rcp< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; +# endif # endif # endif -- 2.39.5