Skip to content

Commit fcd8dc9

Browse files
committed
fix test.
1 parent 9fc30da commit fcd8dc9

File tree

1 file changed

+1
-1
lines changed
  • src/lightning/pytorch/accelerators

1 file changed

+1
-1
lines changed

src/lightning/pytorch/accelerators/mps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def device_name(cls, device: Optional[_DEVICE] = None) -> str:
101101
check=True,
102102
)
103103
result_str = result.stdout.strip()
104-
except subprocess.SubprocessError:
104+
except (subprocess.SubprocessError, FileNotFoundError):
105105
result_str = "True (mps)"
106106
return result_str
107107

0 commit comments

Comments
 (0)