aboutsummaryrefslogtreecommitdiff
path: root/test/nvidia-cuda
diff options
context:
space:
mode:
Diffstat (limited to 'test/nvidia-cuda')
-rw-r--r--test/nvidia-cuda/install_cudnn_nvxt.sh15
-rw-r--r--test/nvidia-cuda/install_cudnn_nvxt_version.sh16
-rw-r--r--test/nvidia-cuda/scenarios.json22
3 files changed, 53 insertions, 0 deletions
diff --git a/test/nvidia-cuda/install_cudnn_nvxt.sh b/test/nvidia-cuda/install_cudnn_nvxt.sh
new file mode 100644
index 0000000..7b20f43
--- /dev/null
+++ b/test/nvidia-cuda/install_cudnn_nvxt.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+# Check installation of libcudnn8
+check "libcudnn.so.8" test 1 -eq "$(find /usr -name 'libcudnn.so.8' | wc -l)"
+
+# Check installation of cuda-nvtx-11-<version>
+check "cuda-11+nvtx" test -e '/usr/local/cuda-11/targets/x86_64-linux/include/nvtx3'
+
+# Report result
+reportResults
diff --git a/test/nvidia-cuda/install_cudnn_nvxt_version.sh b/test/nvidia-cuda/install_cudnn_nvxt_version.sh
new file mode 100644
index 0000000..a7f46bd
--- /dev/null
+++ b/test/nvidia-cuda/install_cudnn_nvxt_version.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+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 cuda-nvtx-11-5 (11.5)
+check "cuda-11-5+nvtx" test -e '/usr/local/cuda-11.5/targets/x86_64-linux/include/nvtx3'
+
+# Report result
+reportResults
+ \ No newline at end of file
diff --git a/test/nvidia-cuda/scenarios.json b/test/nvidia-cuda/scenarios.json
new file mode 100644
index 0000000..1993dcd
--- /dev/null
+++ b/test/nvidia-cuda/scenarios.json
@@ -0,0 +1,22 @@
+{
+ "install_cudnn_nvxt": {
+ "image": "debian",
+ "features": {
+ "nvidia-cuda": {
+ "installCudnn": true,
+ "installNvtx": true
+ }
+ }
+ },
+ "install_cudnn_nvxt_version": {
+ "image": "debian",
+ "features": {
+ "nvidia-cuda": {
+ "installCudnn": true,
+ "installNvtx": true,
+ "cudaVersion": "11.5",
+ "cudnnVersion": "8.3.2.44"
+ }
+ }
+ }
+} \ No newline at end of file