未验证 提交 01a51437 编写于 作者: Y Yinan Xu 提交者: GitHub

Bump difftest to fix resource leak problem (#1866)

上级 d826bce1
Subproject commit 969966f9e593b64e7ce766cbbb793887bdb0c82d
Subproject commit 4850feb825cf374309b5c6a009f109a5d435e08b
......@@ -447,7 +447,7 @@ def get_free_cores(n):
num_window = num_logical_core // n
for i in range(num_window):
window_usage = core_usage[i * n : i * n + n]
if sum(window_usage) < 0.3 * n and True not in map(lambda x: x > 0.5, window_usage):
if sum(window_usage) < 30 * n and True not in map(lambda x: x > 90, window_usage):
return (((i * n) % 128)// 64, i * n, i * n + n - 1)
print(f"No free {n} cores found. CPU usage: {core_usage}\n")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册