Skip to content

Commit

Permalink
mlx 0.21.1
Browse files Browse the repository at this point in the history
mlx: add upstream x86 test patch

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Dec 17, 2024
1 parent f96d651 commit 160c814
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Formula/m/mlx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ class Mlx < Formula

desc "Array framework for Apple silicon"
homepage "https://github.com/ml-explore/mlx"
url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.0.tar.gz"
sha256 "41f8ff1b5367b4d1a3ca9c026e857bdcf5ec777e781a957ddfea3b21d7dfea6d"
# Main license is MIT while `metal-cpp` resource is Apache-2.0
license all_of: ["MIT", "Apache-2.0"]
license all_of: [
"MIT", # main license
"Apache-2.0", # metal-cpp resource
]
head "https://github.com/ml-explore/mlx.git", branch: "main"

stable do
url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.1.tar.gz"
sha256 "1ce949256c343a4a9fb1e53cc15f537ad2faceccbb3ad314cd47a198b534bcac"

# fix x86 tests, upstream pr ref, https://github.com/ml-explore/mlx/pull/1691
patch do
url "https://github.com/ml-explore/mlx/commit/f3dfa36a3aa67dfc4488996bf7f218f976bef9aa.patch?full_index=1"
sha256 "5b798fa17ee6fccd4b031b99d8301f9fb434545f6e4ebbbd544376403c1a4c3d"
end
end

bottle do
sha256 cellar: :any, arm64_sequoia: "fd18516eef6904ee30fff4c8a064bb5a26e2f760b160452881b737058440e991"
sha256 cellar: :any, arm64_sonoma: "23800da529205b61f80056c4b23f4977f09312cce9f078f49ed369954711599e"
Expand Down

0 comments on commit 160c814

Please sign in to comment.