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)
|
||||
|
||||
if(NOT MLX_VERSION)
|
||||
set(MLX_VERSION 0.5.1)
|
||||
set(MLX_VERSION 0.6.0)
|
||||
endif()
|
||||
|
||||
# --------------------- 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.";
|
||||
|
||||
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
|
||||
py::module_::import("mlx._os_warning");
|
||||
|
||||
init_device(m);
|
||||
init_stream(m);
|
||||
|
Loading…
Reference in New Issue
Block a user