r"""Get total and free memory on the computing device in bytes.
(device: Optional[str] = None)
| 152 | |
| 153 | |
| 154 | def get_mem_status_bytes(device: Optional[str] = None): |
| 155 | r"""Get total and free memory on the computing device in bytes.""" |
| 156 | if device is None: |
| 157 | device = get_default_device() |
| 158 | tot, free = CompNode(device).get_mem_status_bytes |
| 159 | return tot, free |
| 160 | |
| 161 | |
| 162 | def get_cuda_compute_capability(device: int, device_type=DeviceType.CUDA) -> int: |
no test coverage detected