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

Function path_name

engine/src/mgpu/device_set.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32const char* path_name(Path p) {
33 switch (p) {
34 case Path::P2PNvlink: return "p2p_nvlink";
35 case Path::P2PDirect: return "p2p_direct";
36 case Path::HostStaged: return "host_staged";
37 default: return "none";
38 }
39}
40
41Path path_from_name(const std::string& s) {
42 if (s == "p2p_nvlink") return Path::P2PNvlink;

Callers 3

to_jsonMethod · 0.70
to_textMethod · 0.70
mainFunction · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40