]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Build CUDA tests in CUDA CI 14429/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 19 Nov 2022 00:49:41 +0000 (18:49 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 19 Nov 2022 00:49:41 +0000 (18:49 -0600)
.github/workflows/linux.yml
tests/cuda/solver_02.cc

index 84e18ceedd5e8752358b354c62b24317a2a2128c..e8eca63361a08c3c79b1cbb3ec6f017e801bf459 100644 (file)
@@ -144,6 +144,7 @@ jobs:
             cuda-toolkit-11-8 \
             libp4est-dev \
             libopenmpi-dev \
+            numdiff \
             openmpi-bin \
             libboost-all-dev
     - name: info
@@ -187,9 +188,14 @@ jobs:
       with:
         name: linux-cuda-detailed.log
         path: detailed.log
-    - name: build
+    - name: build deal.II
       run: |
         make -j 2
+    - name: build CUDA tests
+      run: |
+        make -j 2 setup_tests_cuda
+        cd tests/cuda
+        make -j2 compile_test_executables
 
 
   linux-debug-intel-oneapi:
index 7307f450e300da921df3911d94ef56151035313e..b6292b656f0676d4d56077b41312d748480947db 100644 (file)
@@ -75,9 +75,8 @@ test(Utilities::CUDA::Handle &cuda_handle)
   rhs_dev.import(rhs_host, VectorOperation::insert);
 
   LinearAlgebra::CUDAWrappers::Vector<double> solution_dev(size);
-  const std::array<std::string, 3>            solver_names{"Cholesky",
-                                                "LU_dense",
-                                                "LU_host"};
+  const std::array<std::string, 3>            solver_names{
+    {"Cholesky", "LU_dense", "LU_host"}};
 
   for (auto solver_type : solver_names)
     {

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.