From 01136fb9e07da40d836a21bdb413f4bba1d0dfdb Mon Sep 17 00:00:00 2001 From: Nikita Shulga <2453524+malfet@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:04:08 +0000 Subject: [PATCH] Update `MPS_ERROR_RUNTIME_TOO_LOW` message (#139427) https://github.com/pytorch/pytorch/pull/133141 updated min os requirement to 13.0, but missed the message Fixes https://github.com/pytorch/pytorch/issues/139425 Pull Request resolved: https://github.com/pytorch/pytorch/pull/139427 Approved by: https://github.com/seemethere, https://github.com/kit1980 --- aten/src/ATen/mps/EmptyTensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aten/src/ATen/mps/EmptyTensor.cpp b/aten/src/ATen/mps/EmptyTensor.cpp index baa91eabb38..e6a292ba2a5 100644 --- a/aten/src/ATen/mps/EmptyTensor.cpp +++ b/aten/src/ATen/mps/EmptyTensor.cpp @@ -12,7 +12,7 @@ #define MPS_ERROR_NOT_COMPILED "PyTorch code is not compiled with MPS enabled" #define MPS_ERROR_RUNTIME_TOO_LOW \ - "The MPS backend is supported on MacOS 12.3+.", \ + "The MPS backend is supported on MacOS 13.0+.", \ "Current OS version can be queried using `sw_vers`" #define MPS_ERROR_DOUBLE_NOT_SUPPORTED "Cannot convert a MPS Tensor to float64 dtype " \ "as the MPS framework doesn't support float64. Please use float32 instead."