replace rocm-smi with amd-smi cmd (#612)

[ROCm/rocprofiler-compute commit: 0c6cec5671]
This commit is contained in:
ywang103-amd
2025-03-17 16:20:41 -04:00
committed by GitHub
parent eba173de5e
commit 83edd97f78
4 changed files with 28 additions and 13 deletions
@@ -263,8 +263,8 @@ def counter_compare(test_name, errors_pd, baseline_df, run_df, threshold=5):
def run(cmd):
p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if cmd[0] == "rocm-smi" and p.returncode == 8:
print("ERROR: No GPU detected. Unable to load rocm-smi")
if cmd[0] == "amd-smi" and p.returncode == 8:
print("ERROR: No GPU detected. Unable to load amd-smi")
assert 0
return p.stdout.decode("ascii")