MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _log_cn_mem_pool_details

Function _log_cn_mem_pool_details

imperative/python/megengine/device.py:250–254  ·  view source on GitHub ↗

r"""Log memory pool details on the computing device.

(device: Optional[str] = None)

Source from the content-addressed store, hash-verified

248
249
250def _log_cn_mem_pool_details(device: Optional[str] = None):
251 r"""Log memory pool details on the computing device."""
252 if device is None:
253 device = get_default_device()
254 CompNode(device)._log_mem_pool_details()
255
256
257set_default_device(os.getenv("MGE_DEFAULT_DEVICE", "xpux"))

Callers

nothing calls this directly

Calls 2

CompNodeClass · 0.85
get_default_deviceFunction · 0.70

Tested by

no test coverage detected