MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / kernel

Method kernel

src/targets/gpu/kernel.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74kernel::kernel(const char* image, const std::string& name) : impl(std::make_shared<kernel_impl>())
75{
76 impl->module = load_module(image);
77 auto status = hipModuleGetFunction(&impl->fun, impl->module.get(), name.c_str());
78 if(hipSuccess != status)
79 MIGRAPHX_THROW("Failed to get function: " + name + ": " + hip_error(status));
80}
81
82bool kernel::empty() const { return impl == nullptr; }
83

Callers

nothing calls this directly

Calls 3

load_moduleFunction · 0.85
hip_errorFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected