From: Bruno Turcksin Date: Fri, 13 Apr 2018 20:40:21 +0000 (-0400) Subject: Instantiate GrowingVectorMemory for CUDAWrappers::Vector X-Git-Tag: v9.0.0-rc1~172^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aa15e7ae14691cd0cb6c8937228537f46d7e6bb;p=dealii.git Instantiate GrowingVectorMemory for CUDAWrappers::Vector --- diff --git a/source/lac/vector_memory.cc b/source/lac/vector_memory.cc index f94356da52..8a399fce73 100644 --- a/source/lac/vector_memory.cc +++ b/source/lac/vector_memory.cc @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -30,6 +31,13 @@ DEAL_II_NAMESPACE_OPEN #include "vector_memory.inst" +#ifdef DEAL_II_WITH_CUDA +template class VectorMemory>; +template class VectorMemory>; +template class GrowingVectorMemory>; +template class GrowingVectorMemory>; +#endif + namespace internal { namespace GrowingVectorMemoryImplementation @@ -37,6 +45,11 @@ namespace internal void release_all_unused_memory() { #include "vector_memory_release.inst" + +#ifdef DEAL_II_WITH_CUDA + dealii::GrowingVectorMemory>::release_unused_memory(); + dealii::GrowingVectorMemory>::release_unused_memory(); +#endif } } } diff --git a/tests/cuda/solver_01.cu b/tests/cuda/solver_01.cu index 1389a5be80..48940f0a62 100644 --- a/tests/cuda/solver_01.cu +++ b/tests/cuda/solver_01.cu @@ -18,9 +18,6 @@ #include "../tests.h" #include "../testmatrix.h" -#include -#include - #include #include #include