From: Bruno Turcksin Date: Sat, 12 Aug 2017 21:42:58 +0000 (-0400) Subject: Fix a bug in cuda matrix-free. X-Git-Tag: v9.0.0-rc1~1288^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4795%2Fhead;p=dealii.git Fix a bug in cuda matrix-free. --- 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 b90a7bb3db..0f3b7eccb9 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -470,7 +470,7 @@ namespace CUDAWrappers if (update_flags & update_gradients) { cuda_error = cudaMemcpyToSymbol(internal::global_shape_gradients, - &shape_info.shape_gradient[0], + &shape_info.shape_gradients[0], size_shape_values, 0, cudaMemcpyHostToDevice);