]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid setting values when inserting ghost entries
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 1 Oct 2019 21:20:01 +0000 (21:20 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 1 Oct 2019 21:29:17 +0000 (21:29 +0000)
include/deal.II/base/partitioner.templates.h

index 1938284a7e5999f277c88daf58a5d5f72b9876aa..cf534f52a3aa860b706290a7b06bc150fd36ac67 100644 (file)
@@ -687,17 +687,9 @@ namespace Utilities
             {
               for (auto const &import_indices_plain : import_indices_plain_dev)
                 {
+                  // We can't easily assert here, so we just move the pointer
+                  // matching the host code.
                   const auto chunk_size = import_indices_plain.second;
-                  const int n_blocks =
-                    1 + chunk_size / (::dealii::CUDAWrappers::chunk_size *
-                                      ::dealii::CUDAWrappers::block_size);
-                  dealii::LinearAlgebra::CUDAWrappers::kernel::
-                    set_permutated<<<n_blocks,
-                                     dealii::CUDAWrappers::block_size>>>(
-                      import_indices_plain.first.get(),
-                      locally_owned_array.data(),
-                      read_position,
-                      chunk_size);
                   read_position += chunk_size;
                 }
             }

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.