Last active
November 1, 2019 13:52
-
-
Save vishal-kvn/50d216343e5c24b26d12f36783092a26 to your computer and use it in GitHub Desktop.
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 | |
| # kernel-version: | |
| echo "Kernel version: $(uname -r)" | |
| # kernel-release: | |
| echo "Kernel release: $(uname -v)" | |
| # operating-system: | |
| echo "Operationg System: $(uname -o)" | |
| # unix version: | |
| echo "Unix version: $(lsb_release -d)" | |
| # No. of CPU cores: | |
| num_cpu=$(grep -c ^processor /proc/cpuinfo) | |
| echo "Number of CPUs: $num_cpu" | |
| # No. of GPU cards: | |
| num_gpu=$(lspci | grep -i "VGA" | grep -i "NVIDIA" | wc -l) | |
| echo "Number of GPUs : $num_gpu" | |
| # GPU card name: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) | |
| gpu_name=$(lspci | grep "VGA" | grep -m1 "NVIDIA") | |
| echo "GPU name: $gpu_name" | |
| # GPU info | |
| # nvidia-smi | |
| # Driver version: nvidia-smi #384.130 | |
| # CUDA version: cat /usr/local/cuda/version.txt #8.0.61 | |
| # cuDNN version: | |
| echo "GPU info:" | |
| echo $(cat /proc/driver/nvidia/version) | |
| echo $(cat /usr/local/cuda/version.txt) | |
| # Docker Version | |
| echo $(docker --version) | |
| # Memory Usage | |
| echo $(df -h) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment