From 8a971df3bacec93944ec894f2939fd2567afc5dd Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 5 Oct 2026 18:15:59 -0700 Subject: [PATCH] mlx: fix patch for recent mlx update (#18812) --- mlx/compat/mlx/0001-metal-residency-refresh.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mlx/compat/mlx/0001-metal-residency-refresh.patch b/mlx/compat/mlx/0001-metal-residency-refresh.patch index 31e45b388..42ce52999 100644 --- a/mlx/compat/mlx/0001-metal-residency-refresh.patch +++ b/mlx/compat/mlx/0001-metal-residency-refresh.patch @@ -11,7 +11,7 @@ diff --git a/mlx/backend/metal/resident.cpp b/mlx/backend/metal/resident.cpp #include #include #include -@@ -42,10 +43,38 @@ +@@ -43,10 +44,38 @@ } throw std::runtime_error(msg.str()); } @@ -52,12 +52,12 @@ diff --git a/mlx/backend/metal/resident.cpp b/mlx/backend/metal/resident.cpp + } +} - bool ResidencySets::add_set_locked(NS::Error** error_out) { + bool ResidencySets::add_set_locked(std::string* error_out) { NS::SharedPtr set; diff --git a/mlx/backend/metal/resident.h b/mlx/backend/metal/resident.h --- a/mlx/backend/metal/resident.h +++ b/mlx/backend/metal/resident.h -@@ -1,10 +1,12 @@ +@@ -1,11 +1,13 @@ -// Copyright © 2024 Apple Inc. +// Copyright © 2024-2026 Apple Inc. @@ -67,11 +67,12 @@ diff --git a/mlx/backend/metal/resident.h b/mlx/backend/metal/resident.h +#include #include #include + #include +#include #include #include -@@ -118,6 +120,9 @@ +@@ -119,6 +121,9 @@ // taking the lock. std::atomic num_sets_{0}; mutable std::mutex mtx_;