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

Method get_kernel_init

compiler/test/kernel/common/src/target_module.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212extern std::unordered_map<std::string, StdKernelInitCall> g_str_2_kern_init;
213StdKernelInitCall TargetModule::get_kernel_init(std::string& sig) const {
214#if !MEGCC_TEST_GEN
215 auto res = g_str_2_kern_init.find(sig);
216 if (res == g_str_2_kern_init.end()) {
217 return nullptr;
218 } else {
219 return res->second;
220 }
221#else
222 return nullptr;
223#endif
224}
225extern std::unordered_map<std::string, StdKernelWorkspaceCall> g_str_2_kern_workspace;
226StdKernelWorkspaceCall TargetModule::get_kernel_workspace(std::string& sig) const {
227#if !MEGCC_TEST_GEN

Callers 1

call_kernelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected