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