MCPcopy Create free account
hub / github.com/MegEngine/MegCC / GetKernelSymbol

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/Argsort.cpp:17–22  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

15}
16//! kernel gen
17std::string ArgSortKernel::GetKernelSymbol(TContext* context) const {
18 std::stringstream ss;
19 ss << "kernel_argsort_" << context->getAttrOprand("operand:0").dtype << "_"
20 << context->getAttrStr("order");
21 return ss.str();
22}
23
24std::string ArgSortKernel::GetKernelBody(TContext* context) const {
25 std::stringstream writer;

Callers

nothing calls this directly

Calls 2

getAttrOprandMethod · 0.80
getAttrStrMethod · 0.80

Tested by

no test coverage detected