Skip to content

Commit

Permalink
Update collect_env.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkuligowski authored Oct 25, 2024
1 parent 1e427c2 commit c665f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collect_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def get_nvidia_smi():


def get_hpu_info():
command = ["hl-smi", "-q", "-d", "PRODUCT"]
try:
command = ["hl-smi", "-q", "-d", "PRODUCT"]
lines = subprocess.Popen(command, stdout=subprocess.PIPE, universal_newlines=True).stdout.readlines()
lines = [l.strip('\t') for l in lines]
hpu_count = None
Expand Down Expand Up @@ -283,7 +283,7 @@ def get_hpu_info():
if hpu_model is None:
return ('N/A', hpu_driver)
return (f'{hpu_count}x {hpu_model}', hpu_driver)
except Exception as e:
except:
return ('N/A', 'N/A')


Expand Down

0 comments on commit c665f48

Please sign in to comment.