MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / DeviceLocator get_physical_location

Function DeviceLocator get_physical_location

src/core/impl/comp_node_api.cpp:73–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73MGB_API DeviceLocator get_physical_location(mgbComputeNode_t device) {
74 auto location = reinterpret_cast<CompNode*>(device)->locator().to_physical();
75 return {location.device, location.stream};
76}
77
78class XLAMemAllocHelper {
79 class XLAMemAllocHelperOfSingleCN {

Callers

nothing calls this directly

Calls 2

to_physicalMethod · 0.80
locatorMethod · 0.45

Tested by

no test coverage detected