Created
August 8, 2022 14:50
-
-
Save josepsmartinez/01f7de59b75d339fde89d28539cf8bfa to your computer and use it in GitHub Desktop.
cudnn version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
h=$(whereis -f cudnn.h | cut -f2 -d' ') | |
MAJOR=$(cat $h | grep CUDNN_MAJOR | head -n 1 | cut -f3 -d ' ') | |
MINOR=$(cat $h | grep CUDNN_MINOR | head -n 1 | cut -f3 -d ' ') | |
PATCHLEVEL=$(cat $h | grep CUDNN_PATCHLEVEL | head -n 1 | cut -f3 -d ' ') | |
echo "$MAJOR.$MINOR.$PATCHLEVEL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment