Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsexton03 committed Apr 23, 2024
1 parent 2b48b4a commit a91f4b0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dependencies/dependencies_hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
set -eu -o pipefail

# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu
wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key \
| sudo apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ ubuntu main' \
curl -O https://repo.radeon.com/rocm/rocm.gpg.key
sudo apt-key add rocm.gpg.key
echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${1-debian}/ ubuntu main" \
| sudo tee /etc/apt/sources.list.d/rocm.list

echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
Expand Down Expand Up @@ -47,6 +47,7 @@ sudo apt-get install -y --no-install-recommends \
#
source /etc/profile.d/rocm.sh
hipcc --version
hipconfig --full
which clang
which clang++

Expand Down
43 changes: 25 additions & 18 deletions .github/workflows/dependencies/dependencies_nvcc10.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2020 Axel Huebl
# Copyright 2020-2022 Axel Huebl
#
# License: BSD-3-Clause-LBNL

Expand All @@ -11,27 +11,34 @@

set -eu -o pipefail

sudo apt-get update
# `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 install -y --no-install-recommends\
sudo apt-get -qqq update
sudo apt-get install -y \
build-essential \
g++-6 \
ca-certificates \
cmake \
g++ \
gfortran \
gnupg \
libopenmpi-dev \
openmpi-bin \
pkg-config \
wget

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" \
| sudo tee /etc/apt/sources.list.d/cuda.list
VERSION_DOTTED=${1-12.0} && VERSION_DASHED=$(sed 's/\./-/' <<< $VERSION_DOTTED)
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt-get install -y \
cuda-command-line-tools-10-2 \
cuda-compiler-10-2 \
cuda-cupti-dev-10-2 \
cuda-minimal-build-10-2 \
cuda-nvml-dev-10-2 \
cuda-nvtx-10-2 \
cuda-curand-dev-10-2 \
cuda-cusolver-dev-10-2 \
cuda-cublas-dev-10-2 \
cuda-cusparse-dev-10-2
sudo ln -s cuda-10.2 /usr/local/cuda
cuda-command-line-tools-$VERSION_DASHED \
cuda-compiler-$VERSION_DASHED \
cuda-cupti-dev-$VERSION_DASHED \
cuda-minimal-build-$VERSION_DASHED \
cuda-nvml-dev-$VERSION_DASHED \
cuda-nvtx-$VERSION_DASHED \
libcurand-dev-$VERSION_DASHED
sudo ln -s cuda-$VERSION_DOTTED /usr/local/cuda
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_nvcc10.sh
run: .github/workflows/dependencies/dependencies_nvcc10.sh 10.2
- name: Build & Install
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
Expand Down

0 comments on commit a91f4b0

Please sign in to comment.