Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
bb7b7ea2
Unverified
Commit
bb7b7ea2
authored
Apr 22, 2024
by
Prathamesh Zarkar
Committed by
GitHub
Apr 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade cuda version to 11.7 and cudnn to 8.5.0 (#942)
upgrade cuda version 11.7 and cudnn 8.5.0
parent
6f4e5986
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
devcontainer-feature.json
src/nvidia-cuda/devcontainer-feature.json
+1
-1
install.sh
src/nvidia-cuda/install.sh
+7
-0
install_cudnn_nvxt_version.sh
test/nvidia-cuda/install_cudnn_nvxt_version.sh
+4
-4
scenarios.json
test/nvidia-cuda/scenarios.json
+2
-2
No files found.
src/nvidia-cuda/devcontainer-feature.json
View file @
bb7b7ea2
{
"id"
:
"nvidia-cuda"
,
"version"
:
"1.1.
1
"
,
"version"
:
"1.1.
2
"
,
"name"
:
"NVIDIA CUDA"
,
"description"
:
"Installs shared libraries for NVIDIA CUDA."
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/nvidia-cuda"
,
...
...
src/nvidia-cuda/install.sh
View file @
bb7b7ea2
...
...
@@ -12,6 +12,8 @@ INSTALL_TOOLKIT=${INSTALLTOOLKIT}
CUDA_VERSION
=
${
CUDAVERSION
}
CUDNN_VERSION
=
${
CUDNNVERSION
}
.
/etc/os-release
if
[
"
$(
id
-u
)
"
-ne
0
]
;
then
echo
-e
'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
exit
1
...
...
@@ -33,6 +35,11 @@ check_packages() {
fi
}
if
[
$VERSION_CODENAME
=
"bookworm"
]
||
[
$VERSION_CODENAME
=
"jammy"
]
&&
[
$CUDA_VERSION
\<
11.7
]
;
then
echo
"(!) Unsupported distribution version '
${
VERSION_CODENAME
}
' for CUDA < 11.7"
exit
1
fi
export
DEBIAN_FRONTEND
=
noninteractive
check_packages wget ca-certificates
...
...
test/nvidia-cuda/install_cudnn_nvxt_version.sh
View file @
bb7b7ea2
...
...
@@ -5,11 +5,11 @@ set -e
# Optional: Import test library
source
dev-container-features-test-lib
# Check installation of libcudnn8 (8.
3.2
)
check
"libcudnn.so.8.
3.2"
test
1
-eq
"
$(
find /usr
-name
'libcudnn.so.8.3.2
'
|
wc
-l
)
"
# Check installation of libcudnn8 (8.
5.0
)
check
"libcudnn.so.8.
5.0"
test
1
-eq
"
$(
find /usr
-name
'libcudnn.so.8.5.0
'
|
wc
-l
)
"
# Check installation of cuda-nvtx-11-
5 (11.5
)
check
"cuda-11-
5+nvtx"
test
-e
'/usr/local/cuda-11.5
/targets/x86_64-linux/include/nvtx3'
# Check installation of cuda-nvtx-11-
7 (11.7
)
check
"cuda-11-
7+nvtx"
test
-e
'/usr/local/cuda-11.7
/targets/x86_64-linux/include/nvtx3'
# Report result
reportResults
test/nvidia-cuda/scenarios.json
View file @
bb7b7ea2
...
...
@@ -16,8 +16,8 @@
"nvidia-cuda"
:
{
"installCudnn"
:
true
,
"installNvtx"
:
true
,
"cudaVersion"
:
"11.
5
"
,
"cudnnVersion"
:
"8.
3.2.44
"
"cudaVersion"
:
"11.
7
"
,
"cudnnVersion"
:
"8.
5.0.96
"
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment