Detect cache thrashing in LRUCache (#2600)

* Detect cache thrashing in LRUCache

* Do not check cache thrashing in tests
This commit is contained in:
Cheng
2025-09-19 09:12:14 +09:00
committed by GitHub
parent e8b604a6a3
commit 787c0d90cd
5 changed files with 28 additions and 10 deletions

View File

@@ -5,6 +5,9 @@ import os
# Use regular fp32 precision for tests
os.environ["MLX_ENABLE_TF32"] = "0"
# Do not abort on cache thrashing
os.environ["MLX_ENABLE_CACHE_THRASHING_CHECK"] = "0"
import platform
import unittest
from typing import Any, Callable, List, Tuple, Union