]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace MemorySpace::CUDA in non-CUDA tests
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 1 Apr 2023 02:32:18 +0000 (22:32 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 1 Apr 2023 02:32:18 +0000 (22:32 -0400)
tests/lac/vector_memory_01.cc
tests/lac/vector_memory_02.cc
tests/lac/vector_reinit_04.cc

index 00e086f827226d7cd709b8aeedc7ef77a27bcc12..b57a381cce8a39f34fc1e837d4d6ed9d18a1481b 100644 (file)
@@ -15,8 +15,8 @@
 
 
 // Test that we can successfully fill a GrowingVectorMemory pool
-// with LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> objects.
-// Partially copied from lac/vector_memory.cc
+// with LinearAlgebra::distributed::Vector<Number, MemorySpace::Default>
+// objects. Partially copied from lac/vector_memory.cc
 
 
 #include <deal.II/base/exceptions.h>
@@ -69,8 +69,8 @@ main(int argc, char *argv[])
   initlog();
   Utilities::MPI::MPI_InitFinalize mpi_init(argc, argv, 1);
 
-  test_stat<LinearAlgebra::distributed::Vector<double, MemorySpace::CUDA>>();
-  test_stat<LinearAlgebra::distributed::Vector<float, MemorySpace::CUDA>>();
+  test_stat<LinearAlgebra::distributed::Vector<double, MemorySpace::Default>>();
+  test_stat<LinearAlgebra::distributed::Vector<float, MemorySpace::Default>>();
 
   return 0;
 }
index 8725653d55dab0076d88177566df128fdd0280d4..68858512c27776a5a52a5e48c2f48b57b858e295 100644 (file)
@@ -15,7 +15,7 @@
 
 
 // Test that memory leaks are detected correctly for a GrowingVectorMemory pool
-// with LinearAlgebra::distributed<Number, MemorySpace::CUDA> objects.
+// with LinearAlgebra::distributed<Number, MemorySpace::Default> objects.
 // Partially copied from lac/vector_memory.cc
 
 
@@ -48,8 +48,9 @@ main(int argc, char *argv[])
   try
     {
       test_leak<
-        LinearAlgebra::distributed::Vector<double, MemorySpace::CUDA>>();
-      test_leak<LinearAlgebra::distributed::Vector<float, MemorySpace::CUDA>>();
+        LinearAlgebra::distributed::Vector<double, MemorySpace::Default>>();
+      test_leak<
+        LinearAlgebra::distributed::Vector<float, MemorySpace::Default>>();
     }
   catch (const StandardExceptions::ExcMemoryLeak &e)
     {
index 88b3ccdf1df862d7b764faf8e0af75e3ce5e20c4..6f7281b37fd07f184c379ab865454d77a5c4c3ab 100644 (file)
@@ -114,5 +114,5 @@ main(int argc, char **argv)
   initlog();
 
   do_test<
-    LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::CUDA>>();
+    LinearAlgebra::distributed::Vector<double, dealii::MemorySpace::Default>>();
 }

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.