Skip to content

Commit 75e2e7d

Browse files
authored
CI: NVHPC New Apt Repo (#2687)
Update the NVHPC install instructions to the latest and greatest. Fix failing CI (dependency install).
1 parent 3aafa30 commit 75e2e7d

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

.github/workflows/cuda.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ jobs:
7373
cmake --build build -j 2
7474
7575
# Build libamrex and all tests with NVHPC (recent supported)
76-
tests-nvhpc21-9-nvcc:
77-
name: NVHPC@21.9 NVCC/NVC++ C++17 Release [tests]
76+
tests-nvhpc21-11-nvcc:
77+
name: NVHPC@21.11 NVCC/NVC++ C++17 Release [tests]
7878
runs-on: ubuntu-20.04
7979
steps:
8080
- uses: actions/checkout@v2
8181
- name: Dependencies
82-
run: .github/workflows/dependencies/dependencies_nvhpc21-9.sh
82+
run: .github/workflows/dependencies/dependencies_nvhpc21-11.sh
8383
- name: Build & Install
8484
run: |
8585
source /etc/profile.d/modules.sh
86-
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.9
86+
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11
8787
8888
which nvcc || echo "nvcc not in PATH!"
8989
which nvc++ || echo "nvc++ not in PATH!"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2021-2022 The AMReX Community
4+
#
5+
# Author: Axel Huebl
6+
# License: BSD-3-Clause-LBNL
7+
8+
set -eu -o pipefail
9+
10+
sudo apt-get -qqq update
11+
sudo apt-get install -y \
12+
build-essential \
13+
ca-certificates \
14+
cmake \
15+
environment-modules \
16+
gnupg \
17+
pkg-config \
18+
wget
19+
20+
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | \
21+
sudo tee /etc/apt/sources.list.d/nvhpc.list
22+
sudo apt-get update -y
23+
sudo apt-get install -y --no-install-recommends nvhpc-21-11
24+
25+
# things should reside in /opt/nvidia/hpc_sdk now
26+
27+
# activation via:
28+
# source /etc/profile.d/modules.sh
29+
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11

.github/workflows/dependencies/dependencies_nvhpc21-9.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)