From: Daniel Arndt Date: Sat, 17 Nov 2018 13:26:51 +0000 (+0100) Subject: Omit instantiating a static CUDA::Handle X-Git-Tag: v9.1.0-rc1~549^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f849bae02a2af785982ee855e3b7caa3e52bd8c;p=dealii.git Omit instantiating a static CUDA::Handle --- diff --git a/source/base/cuda.cu b/source/base/cuda.cu index 19a7ea64b5..28c2b7c0ba 100644 --- a/source/base/cuda.cu +++ b/source/base/cuda.cu @@ -45,18 +45,6 @@ namespace Utilities Handle::~Handle() { - dealii::GrowingVectorMemory< - LinearAlgebra::CUDAWrappers::Vector>::release_unused_memory(); - dealii::GrowingVectorMemory< - LinearAlgebra::CUDAWrappers::Vector>::release_unused_memory(); - - dealii::GrowingVectorMemory< - LinearAlgebra::distributed::Vector>:: - release_unused_memory(); - dealii::GrowingVectorMemory< - LinearAlgebra::distributed::Vector>:: - release_unused_memory(); - cusolverStatus_t cusolver_error_code = cusolverDnDestroy(cusolver_dn_handle); AssertCusolver(cusolver_error_code); diff --git a/tests/tests.h b/tests/tests.h index d4154a83b8..2337c0bea5 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -598,14 +598,9 @@ struct MPILogInitAll // cards for different processes even if only one node is used. The choice below // is based on the MPI proccess id. // MPI needs to be initialized before using this function. -// -// Also initialize a dummy handle that makes sure that unused memory is released -// before the device shuts down. void init_cuda(const bool use_mpi = false) { - static Utilities::CUDA::Handle cuda_handle; - # ifndef DEAL_II_WITH_MPI Assert(use_mpi == false, ExcInternalError()); # endif