From 4dccb2ea49f7d4e0fbb386ceadbd68a6dd201a6a Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:23:50 +0300 Subject: [PATCH] am_smi: increase kill retries (#11099) --- extra/amdpci/am_smi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/amdpci/am_smi.py b/extra/amdpci/am_smi.py index edfc5e811f..a6f5bb89c2 100755 --- a/extra/amdpci/am_smi.py +++ b/extra/amdpci/am_smi.py @@ -284,8 +284,8 @@ if __name__ == "__main__": while True: try: pid = subprocess.check_output(['sudo', 'lsof', '-t', dev]).decode('utf-8').split('\n')[0] except subprocess.CalledProcessError: break - if stopped_pids[pid] > 0: time.sleep(0.5) - if stopped_pids[pid] == 10: + if stopped_pids[pid] > 0: time.sleep(0.1) + if stopped_pids[pid] == 64: print(f"{dev[8:-5]}: can't stop process {pid}, exitting") exit(1)