MCPcopy Create free account
hub / github.com/dmlc/xgboost / device_mem_total

Function device_mem_total

demo/guide-python/distributed_extmem_basic.py:48–54  ·  view source on GitHub ↗

The total number of bytes of memory this GPU has.

()

Source from the content-addressed store, hash-verified

46
47
48def 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
57def make_batches(

Callers 1

setup_async_poolFunction · 0.70

Calls 1

_checkcuFunction · 0.70

Tested by

no test coverage detected