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