MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / GpuMemoryInfo

Class GpuMemoryInfo

tensorpack/utils/nvml.py:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Callers 1

memoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected