Skip to content

Commit

Permalink
install nvhpc metapackage for the right version too
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Apr 12, 2023
1 parent 6936889 commit c902615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/src/nvhpc/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "NVHPC SDK",
"id": "nvhpc",
"version": "23.4.0",
"version": "23.4.1",
"description": "A feature to install the NVHPC SDK",
"options": {
"version": {
Expand Down
3 changes: 3 additions & 0 deletions features/src/nvhpc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ apt-add-repository -y "deb https://developer.download.nvidia.com/hpc-sdk/ubuntu/
echo "Installing NVHPC SDK...";

NVHPC_VERSION="${VERSION:-${NVHPCVERSION:-}}";
NVHPC_VERSION_YEAR=$(echo "${NVHPC_VERSION}" | cut -d'.' -f1);
NVHPC_VERSION_YEAR="20${NVHPC_VERSION_YEAR}";

DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
nvhpc-${NVHPC_VERSION/./-} \
nvhpc-${NVHPC_VERSION_YEAR}=${NVHPC_VERSION} \
;

export NVHPC="/opt/nvidia/hpc_sdk";
Expand Down

0 comments on commit c902615

Please sign in to comment.