Skip to content

Commit

Permalink
Fix NVHPC for Ubuntu 24.04 (#95)
Browse files Browse the repository at this point in the history
Drop all NVHPC before 24.5
  • Loading branch information
havogt authored Jun 17, 2024
1 parent 9e8bbc7 commit e0b4192
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
needs: base
strategy:
matrix:
version: [23.3, 23.9, 23.11, 24.1, 24.3, 24.5]
version: [24.5]
steps:
- uses: actions/checkout@v2
- name: Build
Expand Down
12 changes: 10 additions & 2 deletions nvhpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ ARG REPOSITORY
FROM ${REPOSITORY}:base
LABEL maintainer="Felix Thaler <[email protected]>"


RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg2 curl ca-certificates && \
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg && \
apt-get purge --autoremove -y curl \
&& rm -rf /var/lib/apt/lists/*


ARG NVHPC_VERSION
ENV NVHPC_VERSION ${NVHPC_VERSION}

RUN NVHPC_VERSION_DASH=$(echo ${NVHPC_VERSION} | sed 's/\./-/g') && \
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' > /etc/apt/sources.list.d/nvhpc.list && \
apt-get update -qq && \
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' > /etc/apt/sources.list.d/nvhpc.list && \
apt-get update -qq -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y nvhpc-${NVHPC_VERSION_DASH} && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit e0b4192

Please sign in to comment.