Skip to content

Instantly share code, notes, and snippets.

@melsener
Created December 31, 2020 09:29
Show Gist options
  • Save melsener/a5897831fa096598368da23c4924b75b to your computer and use it in GitHub Desktop.
Save melsener/a5897831fa096598368da23c4924b75b to your computer and use it in GitHub Desktop.
Check CUDA version
cat /usr/local/cuda/version.txt
Check CuDNN
cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
check tensorflow version
python3 -c 'import tensorflow as tf; print(tf.__version__)'
recover pip
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
check memory
find ~ -maxdepth 1 -name "*" -exec du -sh {} \; |sort -bh
get pid
ps aux | grep name | grep -v grep | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment