mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +08:00
Version bump and os error (#807)
This commit is contained in:
parent
74ed0974b3
commit
28301807c2
@ -18,7 +18,7 @@ option(MLX_BUILD_METAL "Build metal backend" ON)
|
|||||||
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
|
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
|
||||||
|
|
||||||
if(NOT MLX_VERSION)
|
if(NOT MLX_VERSION)
|
||||||
set(MLX_VERSION 0.5.1)
|
set(MLX_VERSION 0.6.0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# --------------------- Processor tests -------------------------
|
# --------------------- Processor tests -------------------------
|
||||||
|
9
python/mlx/_os_warning.py
Normal file
9
python/mlx/_os_warning.py
Normal 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}"
|
||||||
|
)
|
@ -24,6 +24,7 @@ PYBIND11_MODULE(core, m) {
|
|||||||
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
|
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
|
||||||
|
|
||||||
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
|
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
|
||||||
|
py::module_::import("mlx._os_warning");
|
||||||
|
|
||||||
init_device(m);
|
init_device(m);
|
||||||
init_stream(m);
|
init_stream(m);
|
||||||
|
2
setup.py
2
setup.py
@ -152,7 +152,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="mlx",
|
name="mlx",
|
||||||
version=get_version("0.5.1"),
|
version=get_version("0.6.0"),
|
||||||
author="MLX Contributors",
|
author="MLX Contributors",
|
||||||
author_email="mlx@group.apple.com",
|
author_email="mlx@group.apple.com",
|
||||||
description="A framework for machine learning on Apple silicon.",
|
description="A framework for machine learning on Apple silicon.",
|
||||||
|
Loading…
Reference in New Issue
Block a user