r"""Returns the maximum memory managed by the caching allocator on the computing device in bytes. Due to the asynchronous execution of MegEngine, please call megengine._full_sync before calling this function in order to get accurate value.
(device: Optional[str] = None)
| 208 | |
| 209 | |
| 210 | def get_max_reserved_memory(device: Optional[str] = None): |
| 211 | r"""Returns the maximum memory managed by the caching allocator on the computing device in bytes. |
| 212 | |
| 213 | Due to the asynchronous execution of MegEngine, please call megengine._full_sync |
| 214 | before calling this function in order to get accurate value. |
| 215 | """ |
| 216 | if device is None: |
| 217 | device = get_default_device() |
| 218 | return CompNode(device).get_max_reserved_memory |
| 219 | |
| 220 | |
| 221 | def get_max_allocated_memory(device: Optional[str] = None): |
no test coverage detected