From: Bruno Turcksin Date: Mon, 3 Aug 2020 18:52:48 +0000 (+0000) Subject: CUDA 11 adds a possible memory attribute for host memory X-Git-Tag: v9.3.0-rc1~1205^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10793%2Fhead;p=dealii.git CUDA 11 adds a possible memory attribute for host memory --- diff --git a/include/deal.II/base/array_view.h b/include/deal.II/base/array_view.h index 49ead81f65..9a271eb63f 100644 --- a/include/deal.II/base/array_view.h +++ b/include/deal.II/base/array_view.h @@ -342,7 +342,8 @@ namespace internal { AssertCuda(cuda_error); if (std::is_same::value) - return attributes.type == cudaMemoryTypeHost; + return (attributes.type == cudaMemoryTypeHost) || + (attributes.type == cudaMemoryTypeUnregistered); else return attributes.type == cudaMemoryTypeDevice; }