From 2b1e438bf03c17dd088e0a465992b4dc74c457c1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 18 Nov 2022 18:49:41 -0600 Subject: [PATCH] Build CUDA tests in CUDA CI --- .github/workflows/linux.yml | 8 +++++++- tests/cuda/solver_02.cc | 5 ++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 84e18ceedd..e8eca63361 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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: diff --git a/tests/cuda/solver_02.cc b/tests/cuda/solver_02.cc index 7307f450e3..b6292b656f 100644 --- a/tests/cuda/solver_02.cc +++ b/tests/cuda/solver_02.cc @@ -75,9 +75,8 @@ test(Utilities::CUDA::Handle &cuda_handle) rhs_dev.import(rhs_host, VectorOperation::insert); LinearAlgebra::CUDAWrappers::Vector solution_dev(size); - const std::array solver_names{"Cholesky", - "LU_dense", - "LU_host"}; + const std::array solver_names{ + {"Cholesky", "LU_dense", "LU_host"}}; for (auto solver_type : solver_names) { -- 2.39.5