From: David Wells Date: Thu, 20 Dec 2018 20:08:49 +0000 (-0500) Subject: Fix 64bit compilation with CUDA. X-Git-Tag: v9.1.0-rc1~485^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2032aaabc91d2926d82f39dab609eb0db520f75b;p=dealii.git 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. --- 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); }