mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 04:24:36 +08:00
Expose function to clear memory cache (#1032)
* expose function to clear memory cache * fix linux build * fix metal tests
This commit is contained in:
@@ -513,4 +513,7 @@ TEST_CASE("test metal memory info") {
|
||||
auto cache_mem = metal::get_cache_memory();
|
||||
CHECK(cache_mem >= 4096 * 4);
|
||||
}
|
||||
|
||||
metal::clear_cache();
|
||||
CHECK_EQ(metal::get_cache_memory(), 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user