From 8de4fa90295cd40677b47c3dc1dbaa77570ed192 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Tue, 10 Dec 2024 09:35:10 -0800 Subject: [PATCH] Fix CUDA CI by installing cusparse --- .github/workflows/cuda.yml | 4 +- .../dependencies/dependencies_CUDA11_2.sh | 39 ------------------- 2 files changed, 2 insertions(+), 41 deletions(-) delete mode 100755 .github/workflows/dependencies/dependencies_CUDA11_2.sh diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index a4f952c2d..72861d6e3 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -35,7 +35,7 @@ jobs: ccache-${{ github.workflow }}-${{ github.job }}-git- - name: Load Dependencies run: | - AMReX-Hydro/.github/workflows/dependencies/dependencies_CUDA11_2.sh + amrex/.github/workflows/dependencies/dependencies_nvcc.sh 11.2 amrex/.github/workflows/dependencies/dependencies_ccache.sh - name: Build & Install run: | @@ -109,7 +109,7 @@ jobs: ccache-${{ github.workflow }}-${{ github.job }}-git- - name: Load Dependencies run: | - AMReX-Hydro/.github/workflows/dependencies/dependencies_CUDA11_2.sh + amrex/.github/workflows/dependencies/dependencies_nvcc.sh 11.2 amrex/.github/workflows/dependencies/dependencies_ccache.sh - name: Build & Install run: | diff --git a/.github/workflows/dependencies/dependencies_CUDA11_2.sh b/.github/workflows/dependencies/dependencies_CUDA11_2.sh deleted file mode 100755 index 401d67472..000000000 --- a/.github/workflows/dependencies/dependencies_CUDA11_2.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020 Axel Huebl -# -# License: BSD-3-Clause-LBNL - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - cmake \ - g++ \ - gnupg \ - libopenmpi-dev \ - openmpi-bin \ - pkg-config \ - wget - -sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub -echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" \ - | sudo tee /etc/apt/sources.list.d/cuda.list -sudo apt-get update -sudo apt-get install -y \ - cuda-command-line-tools-11-2 \ - cuda-compiler-11-2 \ - cuda-cupti-dev-11-2 \ - cuda-minimal-build-11-2 \ - cuda-nvml-dev-11-2 \ - cuda-nvtx-11-2 \ - libcurand-dev-11-2 -sudo ln -s cuda-11.2 /usr/local/cuda -