Skip to content

Commit

Permalink
Fix sudo tee sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Feb 9, 2024
1 parent f807455 commit 25c3f2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
# Disable turboboost, hyperthreading and use performance governor
- name: Prepare machine
run: |
echo 1 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo off > sudo tee /sys/devices/system/cpu/smt/control
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo off | sudo tee /sys/devices/system/cpu/smt/control
sudo cpupower frequency-set -g performance
# Pin the benchmark to core 0 and run it at elevated priority.
Expand All @@ -69,8 +69,8 @@ jobs:
# Enable turboboost, hyperthreading and use powersave governor
- name: Restore machine
run: |
echo 0 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo on > sudo tee /sys/devices/system/cpu/smt/control
echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
echo on | sudo tee /sys/devices/system/cpu/smt/control
sudo cpupower frequency-set -g powersave
if: success() || failure()

Expand Down

0 comments on commit 25c3f2f

Please sign in to comment.