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

Method resolve_func

src/jit/impl/utils.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void* resolve_func(void* handle, const std::string& func_name) override {
151 auto ret = dlsym(handle, func_name.c_str());
152 mgb_throw_if(
153 !ret, SystemError, "failed to resolve %s: %s", func_name.c_str(),
154 dlerror());
155 return ret;
156 }
157
158 void unload_lib(void* handle) override {
159 if (handle) {

Callers 1

compile_and_loadMethod · 0.45

Calls 2

dlsymFunction · 0.50
dlerrorFunction · 0.50

Tested by

no test coverage detected