Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
[ROCm/rocprofiler-compute commit: 7c9d317527]
Цей коміт міститься в:
@@ -148,7 +148,7 @@ def gpuinfo():
|
||||
|
||||
def run(cmd):
|
||||
p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
if cmd[0] == 'rocm-smi' and p.returncode == 8:
|
||||
if cmd[0] == "rocm-smi" and p.returncode == 8:
|
||||
print("ERROR: No GPU detected. Unable to load rocm-smi")
|
||||
sys.exit(1)
|
||||
return p.stdout.decode("ascii")
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача