]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't use std::is_same_v yet
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 2 Dec 2022 16:41:48 +0000 (11:41 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 8 Dec 2022 22:13:15 +0000 (17:13 -0500)
include/deal.II/lac/la_parallel_vector.templates.h

index 00cba2c164c93b5edd66e4fa708b24c8b2894012..21b101d18b6dbdb8390532ef5d5bb5e153d69a80 100644 (file)
@@ -933,7 +933,7 @@ namespace LinearAlgebra
       if (data.values.size() != 0)
         {
 #ifdef DEAL_II_COMPILER_CUDA_AWARE
-          if (std::is_same_v<MemorySpaceType, MemorySpace::CUDA>)
+          if (std::is_same<MemorySpaceType, MemorySpace::CUDA>::value)
             {
               const cudaError_t cuda_error_code =
                 cudaMemset(data.values.data() +
@@ -1134,7 +1134,7 @@ namespace LinearAlgebra
         {
 #  if defined(DEAL_II_COMPILER_CUDA_AWARE) && \
     !defined(DEAL_II_MPI_WITH_CUDA_SUPPORT)
-          if (std::is_same_v<MemorySpaceType, MemorySpace::CUDA>)
+          if (std::is_same<MemorySpaceType, MemorySpace::CUDA>::value)
             {
               if (import_data.values_host_buffer.size() == 0)
                 Kokkos::resize(import_data.values_host_buffer,
@@ -1156,7 +1156,7 @@ namespace LinearAlgebra
 
 #  if defined DEAL_II_COMPILER_CUDA_AWARE && \
     !defined(DEAL_II_MPI_WITH_CUDA_SUPPORT)
-      if (std::is_same_v<MemorySpaceType, MemorySpace::CUDA>)
+      if (std::is_same<MemorySpaceType, MemorySpace::CUDA>::value)
         {
           // Move the data to the host and then move it back to the
           // device. We use values to store the elements because the function

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.