]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix 64bit compilation with CUDA. 7541/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 20 Dec 2018 20:08:49 +0000 (15:08 -0500)
committerDavid Wells <drwells@email.unc.edu>
Thu, 20 Dec 2018 20:20:09 +0000 (15:20 -0500)
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

index 001d5fa0ce9d38a6de53b403e2f10b98d91a88f7..ae7f7666a758445ae8631407bfad7c2666adb975 100644 (file)
@@ -406,11 +406,10 @@ namespace CUDAWrappers
                          n_cells * dim * dim * padding_length);
         }
 
-      alloc_and_copy(
-        &data->constraint_mask[color],
-        ArrayView<const types::global_dof_index>(constraint_mask_host.data(),
-                                                 constraint_mask_host.size()),
-        n_cells);
+      alloc_and_copy(&data->constraint_mask[color],
+                     ArrayView<const unsigned int>(constraint_mask_host.data(),
+                                                   constraint_mask_host.size()),
+                     n_cells);
     }
 
 

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.