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

Method GetKernelSymbol

compiler/lib/CodeGen/Matmul.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::string MatmulKernel::GetKernelSymbol(TContext* context) const {
48 std::stringstream ss;
49 ss << "mlir_auto_matmul_";
50 if (context->getAttrBool("transposeA")) {
51 ss << "t";
52 } else {
53 ss << "n";
54 }
55 if (context->getAttrBool("transposeB")) {
56 ss << "t";
57 } else {
58 ss << "n";
59 }
60 return ss.str();
61}
62
63void MatmulKernel::CreateCompute(
64 Block* entryBlock, mlir::OpBuilder& op_builder, mlir::MLIRContext* ctx,

Callers 4

gen_kenrelsMethod · 0.45
instantiateMethod · 0.45
gen_kernelFunction · 0.45
call_kernelFunction · 0.45

Calls 1

getAttrBoolMethod · 0.80

Tested by 2

gen_kernelFunction · 0.36
call_kernelFunction · 0.36