From: Daniel Arndt Date: Tue, 1 Oct 2019 21:20:01 +0000 (+0000) Subject: Avoid setting values when inserting ghost entries X-Git-Tag: v9.2.0-rc1~997^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dc5161068598185088a4874a72cda8614c35da5;p=dealii.git Avoid setting values when inserting ghost entries --- diff --git a/include/deal.II/base/partitioner.templates.h b/include/deal.II/base/partitioner.templates.h index 1938284a7e..cf534f52a3 100644 --- a/include/deal.II/base/partitioner.templates.h +++ b/include/deal.II/base/partitioner.templates.h @@ -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<<>>( - import_indices_plain.first.get(), - locally_owned_array.data(), - read_position, - chunk_size); read_position += chunk_size; } }