Open talonchandler opened 7 months ago
I just confirmed that export PYTORCH_ENABLE_MPS_FALLBACK=1
fixes the correction
tests, but one of the mps
tests in stokes
now fails:
FAILED tests/test_stokes.py::test_copying[mps] - torch._C._LinAlgError: linalg.inv: (Batch element 0): The diagonal element 4 is zero, the inversion could not be completed becaus...
@ziw-liu what do you think is best here? If we're still supporting macbooks then we should add macOS to the tests.
I think we should only officially support x86_64 CPUs and NVIDIA GPUs. MPS backend in torch is experimental and is expected to break (thus the test is disabled in CI). That being said the partial GPU support is not documented and maybe shouldn't be until we reach feature parity for the deconvolution models.
GH do have M1 CI runners now. So when MPS becomes mature we can enable the tests again.
But with PYTORCH_ENABLE_MPS_FALLBACK=1
I can get all tests to pass (on main). @talonchandler can you make a new environment and test again.
Tried with a new environment and the tests pass. Thanks for testing @ziw-liu!
I've just opened #156 as an interim documentation fix.
I think we should only officially support x86_64 CPUs and NVIDIA GPUs. MPS backend in torch is experimental and is expected to break (thus the test is disabled in CI).
Sounds good to me. Should we leave this issue open until we get full MPS support and complete the GPU support?
GH do have M1 CI runners now. So when MPS becomes mature we can enable the tests again.
Actually MPS is not available in VMs due to Apple being Apple so CI won't be feasible...
The first set of tests
test_correction.py
fail when I run them locally with:Seems like imperfect support for macbook gpus in torch. Related #150.