]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug when using Tensor with CUDA. 4897/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 18 Aug 2017 02:44:49 +0000 (22:44 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 18 Aug 2017 02:44:49 +0000 (22:44 -0400)
include/deal.II/base/numbers.h

index 7bdc3d8244b4e0402c7d5591102d2f3611a2b7c6..46bddf1e6a173afdba3537219b1fe65123e93fea 100644 (file)
@@ -397,7 +397,7 @@ namespace internal
   template <typename T>
   struct NumberType
   {
-    static T value (const T &t)
+    static DEAL_II_CUDA_HOST_DEV T value (const T &t)
     {
       return t;
     }

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.