The total number of bytes of memory this GPU has.
()
| 46 | |
| 47 | |
| 48 | def device_mem_total() -> int: |
| 49 | """The total number of bytes of memory this GPU has.""" |
| 50 | import cuda.bindings.runtime as cudart |
| 51 | |
| 52 | status, _, total = cudart.cudaMemGetInfo() |
| 53 | _checkcu(status) |
| 54 | return total |
| 55 | |
| 56 | |
| 57 | def make_batches( |
no test coverage detected