Metal validation (#432)

* tests clear metal validation

* add cpp test with metal validation to circleci

* nit
This commit is contained in:
Awni Hannun
2024-01-11 11:57:24 -08:00
committed by GitHub
parent 975e265f74
commit c9934fe8a4
10 changed files with 142 additions and 35 deletions

View File

@@ -38,6 +38,4 @@ TEST_CASE("test large allocations") {
auto buffer = allocator::malloc(size);
allocator::free(buffer);
}
// Shouldn't be able to allocate an exabyte anytime soon.
CHECK_THROWS_AS(allocator::malloc(1ull << 60), std::runtime_error);
}