]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix failing CUDA tests 8865/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Sep 2019 16:11:41 +0000 (16:11 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Sep 2019 16:14:00 +0000 (12:14 -0400)
tests/cuda/cuda_evaluate_1d_shape.cu
tests/cuda/cuda_evaluate_2d_shape.cu

index e2e4323c064f1b848df47b7bb9c90597954f8678..23a7ba1c4f36d3ef459cf0f87bef93572df2a69f 100644 (file)
@@ -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 <int M, int N, int type, bool add>
index db81805e4dab531187e5a695fcd308b91642cdb7..24a8d992d1646a273ea390f7810b9a57d91f5b20 100644 (file)
@@ -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);
     }
 }
 

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.