We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc30da commit fcd8dc9Copy full SHA for fcd8dc9
src/lightning/pytorch/accelerators/mps.py
@@ -101,7 +101,7 @@ def device_name(cls, device: Optional[_DEVICE] = None) -> str:
101
check=True,
102
)
103
result_str = result.stdout.strip()
104
- except subprocess.SubprocessError:
+ except (subprocess.SubprocessError, FileNotFoundError):
105
result_str = "True (mps)"
106
return result_str
107
0 commit comments