diff --git a/Package.swift b/Package.swift index 6b9df30c6..f0a6b3989 100644 --- a/Package.swift +++ b/Package.swift @@ -131,6 +131,9 @@ let cmlx = Target.target( "fmt/src/os.cc", "fmt/src/fmt.cc", + // CMake build artifacts from mlx submodule + "mlx/build", + // these are selected conditionally "mlx/mlx/backend/no_cpu/compiled.cpp", @@ -215,9 +218,9 @@ let cmlx = Target.target( .headerSearchPath("fmt/include"), .define("MLX_VERSION", to: "\"0.31.1\""), // NAX (Neural Accelerator) Steel kernels in ek/perf-improvements - // contain JIT-compile errors against current macOS Metal toolchain - // (zero-length arrays in nax.h). Disable until upstream lands a fix. - .define("MLX_METAL_NO_NAX"), + // NAX enabled — BD=256 attention has zero-length array bug, guarded + // in scaled_dot_product_attention.cpp (BD<=128 only for NAX path). + // .define("MLX_METAL_NO_NAX"), ], linkerSettings: linkerSettings ) diff --git a/Source/Cmlx/mlx b/Source/Cmlx/mlx index 25f47f58d..594bfb0bc 160000 --- a/Source/Cmlx/mlx +++ b/Source/Cmlx/mlx @@ -1 +1 @@ -Subproject commit 25f47f58ded57c192c78aa6f469c39b8dc83844f +Subproject commit 594bfb0bc17b542e1f07b097b5306d5de91a9f3a