← back to Exo
tweaks
41902f716fa650f20263f5b439dd8dc23ce263af · 2024-12-11 16:40:21 +0000 · Alex Cheema
Files touched
M .github/bench.pyM .github/workflows/bench_job.yml
Diff
commit 41902f716fa650f20263f5b439dd8dc23ce263af
Author: Alex Cheema <alexcheema123@gmail.com>
Date: Wed Dec 11 16:40:21 2024 +0000
tweaks
---
.github/bench.py | 9 +++++++--
.github/workflows/bench_job.yml | 6 +++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/.github/bench.py b/.github/bench.py
index 0875d5cb..965180bf 100644
--- a/.github/bench.py
+++ b/.github/bench.py
@@ -18,8 +18,13 @@ def check_system_state():
# Add macOS-specific checks
try:
# Check powermetrics
- power_metrics = subprocess.run(['sudo', 'powermetrics', '-n', '1', '-i', '1000', '--show-process-energy'],
- capture_output=True, text=True)
+ try:
+ power_metrics = subprocess.run(['powermetrics', '-n', '1', '-i', '1000', '--show-process-energy'],
+ capture_output=True, text=True)
+ except:
+ # Try with sudo if direct access fails
+ power_metrics = subprocess.run(['sudo', 'powermetrics', '-n', '1', '-i', '1000', '--show-process-energy'],
+ capture_output=True, text=True)
print("\nPower Metrics:", power_metrics.stdout, flush=True)
# Check thermal state
diff --git a/.github/workflows/bench_job.yml b/.github/workflows/bench_job.yml
index 6f37c363..a52cdaeb 100644
--- a/.github/workflows/bench_job.yml
+++ b/.github/workflows/bench_job.yml
@@ -57,9 +57,9 @@ jobs:
# Apply MLX optimizations
./configure_mlx.sh
- # Disable CPU throttling
- sudo pmset -a processorperf 2
- sudo pmset -a gpuswitch 2
+ # Disable CPU throttling (correct syntax for M-series Macs)
+ sudo pmset -a powermode 0 2>/dev/null || echo "Failed to set power mode"
+ sudo pmset -a gpuswitch 2 2>/dev/null || echo "Failed to set GPU mode"
# Check current state
pmset -g
← b7bab80e test2
·
back to Exo
·
tweak install e501eeaf →