Expose function to clear memory cache (#1032)

* expose function to clear memory cache

* fix linux build

* fix metal tests
This commit is contained in:
Awni Hannun
2024-04-24 16:48:51 -07:00
committed by GitHub
parent 20a01bbd9f
commit 771575d27b
9 changed files with 31 additions and 2 deletions

View File

@@ -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);
}