MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / compute_command_name

Function compute_command_name

src/driver/command.hpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template <class T>
52std::string compute_command_name()
53{
54 static const std::string& tname = get_type_name<T>();
55 auto name = tname.substr(tname.rfind("::") + 2);
56 if(ends_with(name, "_command"))
57 name = name.substr(0, name.size() - 8);
58 if(ends_with(name, "_cmd"))
59 name = name.substr(0, name.size() - 4);
60 return name;
61}
62
63template <class T>
64const std::string& command_name()

Callers

nothing calls this directly

Calls 2

ends_withFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected