Skip to content

Commit

Permalink
CI: NVHPC New Apt Repo (#2687)
Browse files Browse the repository at this point in the history
Update the NVHPC install instructions to the latest and greatest.
Fix failing CI (dependency install).
  • Loading branch information
ax3l authored Mar 31, 2022
1 parent 3aafa30 commit 75e2e7d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ jobs:
cmake --build build -j 2
# Build libamrex and all tests with NVHPC (recent supported)
tests-nvhpc21-9-nvcc:
name: NVHPC@21.9 NVCC/NVC++ C++17 Release [tests]
tests-nvhpc21-11-nvcc:
name: NVHPC@21.11 NVCC/NVC++ C++17 Release [tests]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_nvhpc21-9.sh
run: .github/workflows/dependencies/dependencies_nvhpc21-11.sh
- name: Build & Install
run: |
source /etc/profile.d/modules.sh
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.9
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11
which nvcc || echo "nvcc not in PATH!"
which nvc++ || echo "nvc++ not in PATH!"
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/dependencies/dependencies_nvhpc21-11.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
#
# Copyright 2021-2022 The AMReX Community
#
# Author: Axel Huebl
# License: BSD-3-Clause-LBNL

set -eu -o pipefail

sudo apt-get -qqq update
sudo apt-get install -y \
build-essential \
ca-certificates \
cmake \
environment-modules \
gnupg \
pkg-config \
wget

echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | \
sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends nvhpc-21-11

# things should reside in /opt/nvidia/hpc_sdk now

# activation via:
# source /etc/profile.d/modules.sh
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11
29 changes: 0 additions & 29 deletions .github/workflows/dependencies/dependencies_nvhpc21-9.sh

This file was deleted.

0 comments on commit 75e2e7d

Please sign in to comment.