From: Daniel Arndt Date: Sat, 19 Nov 2022 00:49:41 +0000 (-0600) Subject: Build CUDA tests in CUDA CI X-Git-Tag: v9.5.0-rc1~838^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1e438bf03c17dd088e0a465992b4dc74c457c1;p=dealii.git Build CUDA tests in CUDA CI --- 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) {