-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystemlog.sh
More file actions
32 lines (29 loc) · 764 Bytes
/
systemlog.sh
File metadata and controls
32 lines (29 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
cmds=(
"hostname ; hostname -s ; hostname -d ; hostname -i ; hostname -a"
"if ! cat /etc/lsb-release 2>/dev/null ; then cat /etc/redhat-release ; fi"
"uname -a"
"uname -r"
"/usr/local/cuda/bin/nvcc --version"
"cat /proc/driver/nvidia/version"
"find /usr -name \"libcudnn*\""
"lscpu"
"cpupower frequency-info 2>/dev/null"
"lspci"
"lspci -v"
"lspci -vv"
"lspci -tv"
"numactl -H"
"free -h"
"nvidia-smi"
"nvidia-smi topo -m"
"nvidia-smi -q"
"cd /usr/local/cuda/samples/1_Utilities ; for dir in \$(ls) ; do cd \$dir ; make clean ; make ; for i in {1..3} ; do echo \"######## \$dir Test \$i\" ; ./\$dir ; done ; cd .. ; done"
)
hline=$(printf '%80s\n' | tr ' ' '#')
for cmd in "${cmds[@]}" ; do
echo $hline
echo "# $cmd"
eval $cmd
done
echo $hline