From 4e88e018e44704e01e15825ed27f35f9fc636b4d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 28 Dec 2022 22:43:53 +0100 Subject: [PATCH] Remove la_parallel_vector_cuda.cc --- source/lac/CMakeLists.txt | 1 - source/lac/la_parallel_vector.cc | 45 ++++++++++++++++ source/lac/la_parallel_vector_cuda.cc | 76 --------------------------- 3 files changed, 45 insertions(+), 77 deletions(-) delete mode 100644 source/lac/la_parallel_vector_cuda.cc diff --git a/source/lac/CMakeLists.txt b/source/lac/CMakeLists.txt index 24f1ad0fff..67c87fda8b 100644 --- a/source/lac/CMakeLists.txt +++ b/source/lac/CMakeLists.txt @@ -28,7 +28,6 @@ set(_unity_include_src scalapack.cc la_vector.cc la_parallel_vector.cc - la_parallel_vector_cuda.cc la_parallel_block_vector.cc matrix_out.cc precondition_block.cc diff --git a/source/lac/la_parallel_vector.cc b/source/lac/la_parallel_vector.cc index 9c4928ac1a..d738104be4 100644 --- a/source/lac/la_parallel_vector.cc +++ b/source/lac/la_parallel_vector.cc @@ -42,6 +42,51 @@ namespace LinearAlgebra #endif #undef TEMPL_COPY_CONSTRUCTOR + + template class Vector; + template class Vector; + + template void + Vector::import< + ::dealii::MemorySpace::Default>( + const Vector &, + VectorOperation::values); + template void + Vector::import< + ::dealii::MemorySpace::Default>( + const Vector &, + VectorOperation::values); + + template void + Vector::import< + ::dealii::MemorySpace::Host>( + const Vector &, + VectorOperation::values); + template void + Vector::import< + ::dealii::MemorySpace::Host>( + const Vector &, + VectorOperation::values); + + template void + Vector::import< + ::dealii::MemorySpace::Default>( + const Vector &, + VectorOperation::values); + template void + Vector::import< + ::dealii::MemorySpace::Default>( + const Vector &, + VectorOperation::values); + + template void + Vector::reinit( + const Vector &, + const bool); + template void + Vector::reinit( + const Vector &, + const bool); } // namespace distributed } // namespace LinearAlgebra diff --git a/source/lac/la_parallel_vector_cuda.cc b/source/lac/la_parallel_vector_cuda.cc deleted file mode 100644 index 91fc69a625..0000000000 --- a/source/lac/la_parallel_vector_cuda.cc +++ /dev/null @@ -1,76 +0,0 @@ -// --------------------------------------------------------------------- -// -// Copyright (C) 2016 - 2019 by the deal.II authors -// -// This file is part of the deal.II library. -// -// The deal.II library is free software; you can use it, redistribute -// it, and/or modify it under the terms of the GNU Lesser General -// Public License as published by the Free Software Foundation; either -// version 2.1 of the License, or (at your option) any later version. -// The full text of the license can be found in the file LICENSE.md at -// the top level directory of deal.II. -// -// --------------------------------------------------------------------- - -#include -#include - -DEAL_II_NAMESPACE_OPEN - -#ifndef DOXYGEN - -namespace LinearAlgebra -{ - namespace distributed - { - template class Vector; - template class Vector; - - template void - Vector::import< - ::dealii::MemorySpace::Default>( - const Vector &, - VectorOperation::values); - template void - Vector::import< - ::dealii::MemorySpace::Default>( - const Vector &, - VectorOperation::values); - - template void - Vector::import< - ::dealii::MemorySpace::Host>( - const Vector &, - VectorOperation::values); - template void - Vector::import< - ::dealii::MemorySpace::Host>( - const Vector &, - VectorOperation::values); - - template void - Vector::import< - ::dealii::MemorySpace::Default>( - const Vector &, - VectorOperation::values); - template void - Vector::import< - ::dealii::MemorySpace::Default>( - const Vector &, - VectorOperation::values); - - template void - Vector::reinit( - const Vector &, - const bool); - template void - Vector::reinit( - const Vector &, - const bool); - } // namespace distributed -} // namespace LinearAlgebra - -#endif // DOXYGEN - -DEAL_II_NAMESPACE_CLOSE -- 2.39.5