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

Function load_module

src/targets/gpu/kernel.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64static hip_module_ptr load_module(const char* image)
65{
66 hipModule_t raw_m;
67 auto status = hipModuleLoadData(&raw_m, image);
68 hip_module_ptr m{raw_m};
69 if(status != hipSuccess)
70 MIGRAPHX_THROW("Failed to load module: " + hip_error(status));
71 return m;
72}
73
74kernel::kernel(const char* image, const std::string& name) : impl(std::make_shared<kernel_impl>())
75{

Callers 1

kernelMethod · 0.85

Calls 1

hip_errorFunction · 0.85

Tested by

no test coverage detected