GPU discovery (#3055)

Co-authored-by: Angelos Katharopoulos <[email protected]>
This commit is contained in:
Daniel Hiltgen
2026-01-26 09:54:13 -08:00
committed by GitHub
co-authored by Angelos Katharopoulos
parent b6aa03e5b8
commit a828e769be
32 changed files with 608 additions and 136 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class TestMemory(mlx_tests.MLXTestCase):
old_limit = mx.set_wired_limit(0)
self.assertEqual(old_limit, 1000)
max_size = mx.metal.device_info()["max_recommended_working_set_size"]
max_size = mx.device_info(mx.gpu)["max_recommended_working_set_size"]
with self.assertRaises(ValueError):
mx.set_wired_limit(max_size + 10)