Updated power script
This commit is contained in:
parent
119bc9d8f9
commit
cd39e83550
10
pytorch/power.sh.bak → pytorch/power.sh
Normal file → Executable file
10
pytorch/power.sh.bak → pytorch/power.sh
Normal file → Executable file
@ -10,20 +10,18 @@ if [[ $arch = aarch64 ]]; then
|
|||||||
((iter++))
|
((iter++))
|
||||||
sleep 1s
|
sleep 1s
|
||||||
}
|
}
|
||||||
if [[ -z "$baseline_time_s" ]]; then
|
baseline_time_s=-1
|
||||||
baseline_time_s=-1
|
|
||||||
fi
|
|
||||||
while [[ "$iter" -ne "$baseline_time_s" ]]; do
|
while [[ "$iter" -ne "$baseline_time_s" ]]; do
|
||||||
aarch64_power
|
aarch64_power
|
||||||
done
|
done
|
||||||
elif [[ $arch = x86_64 ]]; then
|
elif [[ $arch = x86_64 ]]; then
|
||||||
if [[ -z "$baseline_time_s" ]]; then
|
if [[ "$baseline_time_s" -eq -1 ]]; then
|
||||||
#turbostat -s PkgWatt -i 1 2>/dev/null | awk -F: '/PkgWatt/ {getline; print $0}'
|
#turbostat -s PkgWatt -i 1 2>/dev/null | awk -F: '/PkgWatt/ {getline; print $0}'
|
||||||
#turbostat -s PkgWatt -i 1 | awk '/PkgWatt/ {getline; print $0}'
|
#turbostat -s PkgWatt -i 1 | awk '/PkgWatt/ {getline; print $0}'
|
||||||
turbostat -s PkgWatt -i 1 | sed -n "/PkgWatt/{n;p}"
|
turbostat -s PkgWatt ${@:2} | sed -n "/PkgWatt/{n;n;p}"
|
||||||
else
|
else
|
||||||
#turbostat -s PkgWatt -n "$baseline_time_s" -i 1 2>/dev/null | awk -F: '/PkgWatt/ {getline; print $0}'
|
#turbostat -s PkgWatt -n "$baseline_time_s" -i 1 2>/dev/null | awk -F: '/PkgWatt/ {getline; print $0}'
|
||||||
turbostat -s PkgWatt -n "$baseline_time_s" -i 1 | sed -n "/PkgWatt/{n;p}"
|
turbostat -s PkgWatt -n "$baseline_time_s" -i 1 | sed -n "/PkgWatt/{n;n;p}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Unrecognized arch!"
|
echo "Unrecognized arch!"
|
Loading…
Reference in New Issue
Block a user