[llvm] [docs] Fix benchmarking tips (PR #94724)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 22:57:18 PDT 2024


https://github.com/maekawatoshiki created https://github.com/llvm/llvm-project/pull/94724

This PR fixes an incorrect line for setting scaling_governer in benchmarking tips.

>From e20a1edf277cb3d0f6b51ba50c86b5083977685b Mon Sep 17 00:00:00 2001
From: maekawatoshiki <maekawatoshiki1017 at gmail.com>
Date: Fri, 7 Jun 2024 14:55:53 +0900
Subject: [PATCH] Fix misleading shellscript

---
 llvm/docs/Benchmarking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/docs/Benchmarking.rst b/llvm/docs/Benchmarking.rst
index 7deb221446067..cd7b835e47c53 100644
--- a/llvm/docs/Benchmarking.rst
+++ b/llvm/docs/Benchmarking.rst
@@ -49,7 +49,7 @@ Linux
 
    for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    do
-     echo performance > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
+     echo performance > $i
    done
 
 * Use https://github.com/lpechacek/cpuset to reserve cpus for just the



More information about the llvm-commits mailing list