| 101 | total/used/free memory in bytes |
| 102 | """ |
| 103 | class GpuMemoryInfo(Structure): |
| 104 | _fields_ = [ |
| 105 | ('total', c_ulonglong), |
| 106 | ('free', c_ulonglong), |
| 107 | ('used', c_ulonglong), |
| 108 | ] |
| 109 | |
| 110 | c_memory = GpuMemoryInfo() |
| 111 | _check_return(_NVML.get_function( |