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

Method GetKernelSymbol

compiler/lib/KernelGen/BareMetal/Relayout.cpp:26–31  ·  view source on GitHub ↗

kernel gen

Source from the content-addressed store, hash-verified

24
25//! kernel gen
26std::string RelayoutKernel::GetKernelSymbol(TContext* context) const {
27 std::stringstream ss;
28 ss << "kernel_relayout_"
29 << SymbolHelper::gen_valid_dtype(context->getAttrOprand("operand:0").dtype);
30 return ss.str();
31}
32
33std::string RelayoutKernel::GetKernelBody(TContext* context) const {
34 std::stringstream ss;

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected