Skip to content

MPS backend built, but not available #78343

@GerardWalsh

Description

@GerardWalsh

🐛 Describe the bug

When trying to run on M1 (MacBook Pro 13 inch), I get the following:|

>>> import torch
>>> print(f"PyTorch version: {torch.__version__}")
PyTorch version: 1.13.0.dev20220525
>>> print(f"Is MPS (Metal Performance Shader) built? {torch.backends.mps.is_built()}")
Is MPS (Metal Performance Shader) built? True
>>> print(f"Is MPS available? {torch.backends.mps.is_available()}")
Is MPS available? False

How can the backend be built, but not available?

Versions

PyTorch version: 1.13.0.dev20220525
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.2.1 (arm64)
GCC version: Could not collect
Clang version: 13.0.0 (clang-1300.0.27.3)
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:25:14) [Clang 12.0.1 ] (64-bit runtime)
Python platform: macOS-12.2.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.4
[pip3] torch==1.13.0.dev20220525
[pip3] torchaudio==0.11.0
[pip3] torchvision==0.12.0
[conda] numpy 1.22.4 pypi_0 pypi
[conda] torch 1.13.0.dev20220525 pypi_0 pypi
[conda] torchaudio 0.11.0 pypi_0 pypi
[conda] torchvision 0.12.0 pypi_0 pypi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions