MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / compile

Method compile

src/jit/impl/compiler.cpp:128–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128Executable* Compiler::compile(JITExecutor* opr) {
129 MGB_LOCK_GUARD(m_mtx);
130 auto&& args = opr->args();
131 auto&& args_cache = m_expr_cache[&(opr->internal_graph())];
132 auto q = args_cache.get(args);
133 if (q.first) {
134 *q.second = do_compile(opr->internal_graph(), opr->args());
135 }
136 return q.second->get();
137}
138
139#endif // MGB_JIT
140

Callers 15

DEF_IMPLFunction · 0.45
check_dump_by_computeFunction · 0.45
TESTFunction · 0.45
run_compute_testFunction · 0.45
graph_compileMethod · 0.45
runMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
compile_and_runFunction · 0.45
run_testFunction · 0.45

Calls 2

argsMethod · 0.80
getMethod · 0.45

Tested by 15

check_dump_by_computeFunction · 0.36
TESTFunction · 0.36
run_compute_testFunction · 0.36
runMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
compile_and_runFunction · 0.36
run_testFunction · 0.36
TESTFunction · 0.36
run_testFunction · 0.36