From 3dd737dd886be01ec7c7ed43530af43654d9f71e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 26 Sep 2019 16:11:41 +0000 Subject: [PATCH] Fix failing CUDA tests --- tests/cuda/cuda_evaluate_1d_shape.cu | 6 ++++-- tests/cuda/cuda_evaluate_2d_shape.cu | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) 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); } } -- 2.39.5