From 2032aaabc91d2926d82f39dab609eb0db520f75b Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 20 Dec 2018 15:08:49 -0500 Subject: [PATCH] Fix 64bit compilation with CUDA. The ReinitHelper::constraint_mask_host array should always contain unsigned integers since it is only used to provide arguments for HangingNodes::setup_constraints, which expects an unsigned integer. --- include/deal.II/matrix_free/cuda_matrix_free.templates.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index 001d5fa0ce..ae7f7666a7 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -406,11 +406,10 @@ namespace CUDAWrappers n_cells * dim * dim * padding_length); } - alloc_and_copy( - &data->constraint_mask[color], - ArrayView(constraint_mask_host.data(), - constraint_mask_host.size()), - n_cells); + alloc_and_copy(&data->constraint_mask[color], + ArrayView(constraint_mask_host.data(), + constraint_mask_host.size()), + n_cells); } -- 2.39.5