Version bump and os error (#807)

This commit is contained in:
Awni Hannun 2024-03-07 13:57:58 -08:00 committed by GitHub
parent 74ed0974b3
commit 28301807c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

View File

@ -18,7 +18,7 @@ option(MLX_BUILD_METAL "Build metal backend" ON)
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
if(NOT MLX_VERSION)
set(MLX_VERSION 0.5.1)
set(MLX_VERSION 0.6.0)
endif()
# --------------------- Processor tests -------------------------

View File

@ -0,0 +1,9 @@
import platform
if platform.system() == "Darwin":
version = tuple(map(int, platform.mac_ver()[0].split(".")))
major, minor = version[0], version[1]
if (major, minor) < (13, 5):
raise ImportError(
f"Only macOS 13.5 and newer are supported, not {major}.{minor}"
)

View File

@ -24,6 +24,7 @@ PYBIND11_MODULE(core, m) {
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
py::module_::import("mlx._os_warning");
init_device(m);
init_stream(m);

View File

@ -152,7 +152,7 @@ if __name__ == "__main__":
setup(
name="mlx",
version=get_version("0.5.1"),
version=get_version("0.6.0"),
author="MLX Contributors",
author_email="mlx@group.apple.com",
description="A framework for machine learning on Apple silicon.",