track resource limit and throw if exceeded (#1718)

This commit is contained in:
Awni Hannun
2024-12-18 18:45:58 -08:00
committed by GitHub
parent 8bae22b0fa
commit 7480059306
4 changed files with 47 additions and 19 deletions

View File

@@ -168,6 +168,7 @@ void init_metal(nb::module_& m) {
* ``max_buffer_size``
* ``max_recommended_working_set_size``
* ``memory_size``
* ``resource_limit``
Returns:
dict: A dictionary with string keys and string or integer values.