From: Daniel Arndt Date: Thu, 26 Sep 2019 16:11:41 +0000 (+0000) Subject: Fix failing CUDA tests X-Git-Tag: v9.2.0-rc1~1015^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8865%2Fhead;p=dealii.git Fix failing CUDA tests --- diff --git a/tests/cuda/cuda_evaluate_1d_shape.cu b/tests/cuda/cuda_evaluate_1d_shape.cu index e2e4323c06..23a7ba1c4f 100644 --- a/tests/cuda/cuda_evaluate_1d_shape.cu +++ b/tests/cuda/cuda_evaluate_1d_shape.cu @@ -45,9 +45,11 @@ evaluate_tensor_product(double *dst, double *src) evaluator; if (type == 0) - evaluator.template values<0, dof_to_quad, add, false>(src, dst); + evaluator.template values<0, dof_to_quad, add, false>( + CUDAWrappers::internal::global_shape_values, src, dst); if (type == 1) - evaluator.template gradients<0, dof_to_quad, add, false>(src, dst); + evaluator.template gradients<0, dof_to_quad, add, false>( + CUDAWrappers::internal::global_shape_values, src, dst); } template diff --git a/tests/cuda/cuda_evaluate_2d_shape.cu b/tests/cuda/cuda_evaluate_2d_shape.cu index db81805e4d..24a8d992d1 100644 --- a/tests/cuda/cuda_evaluate_2d_shape.cu +++ b/tests/cuda/cuda_evaluate_2d_shape.cu @@ -46,15 +46,19 @@ evaluate_tensor_product(double *dst, double *src) if (type == 0) { - evaluator.template values<0, dof_to_quad, false, false>(src, src); + evaluator.template values<0, dof_to_quad, false, false>( + CUDAWrappers::internal::global_shape_values, src, src); __syncthreads(); - evaluator.template values<1, dof_to_quad, add, false>(src, dst); + evaluator.template values<1, dof_to_quad, add, false>( + CUDAWrappers::internal::global_shape_values, src, dst); } if (type == 1) { - evaluator.template gradients<0, dof_to_quad, false, false>(src, src); + evaluator.template gradients<0, dof_to_quad, false, false>( + CUDAWrappers::internal::global_shape_values, src, src); __syncthreads(); - evaluator.template gradients<1, dof_to_quad, add, false>(src, dst); + evaluator.template gradients<1, dof_to_quad, add, false>( + CUDAWrappers::internal::global_shape_values, src, dst); } }