mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2025-07-21 07:01:04 +02:00
10 lines
199 B
Bash
Executable File
10 lines
199 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
echo "This script must be run as root" >&2
|
|
echo "Try \"sudo ./enable-HT.sh\"" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo on > /sys/devices/system/cpu/smt/control
|