aboutsummaryrefslogtreecommitdiff
path: root/test-scenarios/install_cudnn_nvxt_version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-scenarios/install_cudnn_nvxt_version.sh')
-rw-r--r--test-scenarios/install_cudnn_nvxt_version.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-scenarios/install_cudnn_nvxt_version.sh b/test-scenarios/install_cudnn_nvxt_version.sh
new file mode 100644
index 0000000..a7f46bd
--- /dev/null
+++ b/test-scenarios/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