Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion perf/ci-perf-compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
new_test = log_new_path + "/" + test
old_test = log_old_path + "/" + test

cmd = f"python3 perf.py \'{old_test}\' \'{new_test}\' -o \'{output_path+test_name}.csv\'"
# Use sys.executable to ensure the same Python interpreter (venv) is used
cmd = f"{sys.executable} perf.py \'{old_test}\' \'{new_test}\' -o \'{output_path+test_name}.csv\'"
#print(cmd)
os.system(cmd)
5 changes: 3 additions & 2 deletions perf/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
import subprocess
import time
import ast
Expand Down Expand Up @@ -29,7 +30,7 @@ def numactl(self, cmd, mem, start, end, num_cores):

def remote_get_free_cores(self, threads):
pwd = os.path.dirname(os.path.abspath(__file__))
cmd = ["python3", f"{pwd}/get_free_core.py", f"{threads}"]
cmd = [sys.executable, f"{pwd}/get_free_core.py", f"{threads}"]
ssh_cmd_str = " ".join(self.remote_cmd + cmd)
# print(ssh_cmd_str)
proc = os.popen(ssh_cmd_str)
Expand Down Expand Up @@ -221,7 +222,7 @@ def stop(self):
# os.killpg(os.getpgid(proc[1].pid), signal.SIGINT)
# kill emu by ssh kill 'emu.pid'
pwd = os.path.dirname(os.path.abspath(__file__))
os.popen(" ".join(self.remote_cmd) + f" python3 {pwd}/stop_emu.py")
os.popen(" ".join(self.remote_cmd) + f" {sys.executable} {pwd}/stop_emu.py")

def is_epyc(self, num_cores):
return num_cores > 16