From 3dc5161068598185088a4874a72cda8614c35da5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 1 Oct 2019 21:20:01 +0000 Subject: [PATCH] Avoid setting values when inserting ghost entries --- include/deal.II/base/partitioner.templates.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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; } } -- 2.39.5