MCPcopy Create free account
hub / github.com/Niko1221/Strata / gbps

Method gbps

engine/src/mgpu/device_set.cpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static bool is_p2p(Path p) { return p == Path::P2PNvlink || p == Path::P2PDirect; }
49
50double Link::gbps() const {
51 if (is_p2p(path) && gbps_p2p > 0.0) return gbps_p2p;
52 return gbps_staged;
53}
54
55double Link::latency_us() const {
56 if (is_p2p(path) && lat_p2p_us > 0.0) return lat_p2p_us;

Callers 3

peer_linkFunction · 0.45
plan_layersFunction · 0.45
mainFunction · 0.45

Calls 1

is_p2pFunction · 0.85

Tested by 1

mainFunction · 0.36