From 6f343ced7684dd35c6f109bac386473a3f61ae1f Mon Sep 17 00:00:00 2001 From: "romin.tomasetti" Date: Thu, 5 Oct 2023 19:15:35 +0200 Subject: [PATCH] cicd: test Cuda version supported by Kokkos --- .github/workflows/build-with-kokkos.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-with-kokkos.yml b/.github/workflows/build-with-kokkos.yml index f9c90e17d..31868522a 100644 --- a/.github/workflows/build-with-kokkos.yml +++ b/.github/workflows/build-with-kokkos.yml @@ -13,7 +13,7 @@ jobs: - image: ubuntu:22.04 preset: OpenMP compiler: default - - image: nvidia/cuda:12.1.0-devel-ubuntu22.04 + - image: nvidia/cuda:11.0.3-devel-ubuntu20.04 preset: Cuda compiler: default - image: nvidia/cuda:12.2.0-devel-ubuntu22.04 @@ -38,6 +38,9 @@ jobs: repository: kokkos/kokkos path: kokkos ref: develop + - name: Ensure non-interactive frontend. + run : | + echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV - name: Install compilers run : | apt update @@ -71,6 +74,17 @@ jobs: exit -1 esac + # Add Kitware's APT source to get the latest CMake version (or at least newer than 3.19 to support JSON presets). + # See also https://apt.kitware.com/. + - name: Add Kitware's APT source to get the latest CMake version. + run : | + apt --yes --no-install-recommends install wget lsb-release + wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null + echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null + apt update + rm /usr/share/keyrings/kitware-archive-keyring.gpg + apt --no-install-recommends --yes install kitware-archive-keyring + - name: Install CMake, OpenMPI and dtrace run: | apt --yes --no-install-recommends install \