]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CUDA 11 adds a possible memory attribute for host memory 10793/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 3 Aug 2020 18:52:48 +0000 (18:52 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 3 Aug 2020 18:52:48 +0000 (18:52 +0000)
include/deal.II/base/array_view.h

index 49ead81f656f77e0e989628153c0c7dd11ff2bc6..9a271eb63f357a3887a99be9b9c834dd47d6fad9 100644 (file)
@@ -342,7 +342,8 @@ namespace internal
         {
           AssertCuda(cuda_error);
           if (std::is_same<MemorySpaceType, MemorySpace::Host>::value)
-            return attributes.type == cudaMemoryTypeHost;
+            return (attributes.type == cudaMemoryTypeHost) ||
+                   (attributes.type == cudaMemoryTypeUnregistered);
           else
             return attributes.type == cudaMemoryTypeDevice;
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.