提交 b86f926f 编写于 作者: Y Yinan Xu

scripts: use physical cores only

上级 38e9143d
......@@ -329,7 +329,7 @@ class XiangShan(object):
def get_free_cores(n):
while True:
# To avoid potential conflicts, we allow CI to use SMT.
num_logical_core = psutil.cpu_count(logical=True)
num_logical_core = psutil.cpu_count(logical=False)
core_usage = psutil.cpu_percent(interval=1, percpu=True)
num_window = num_logical_core // n
for i in range(num_window):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册