1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-06-07 13:51:56 +00:00

all in one

This commit is contained in:
Newnius 2019-12-26 16:50:25 +08:00
parent 47605ea654
commit ed9ebb3657

View File

@ -32,7 +32,7 @@ def launch_tasks(stats):
entries_to_remove = []
lock.acquire()
for task_id, task in pending_tasks.items():
if stats[task['gpus'][0]]['utilization_gpu'] < 75:
if int(stats[task['gpus'][0]]['utilization_gpu']) < 75:
entries_to_remove.append(task_id)
script = " ".join([
"docker exec",