| 62 | }; |
| 63 | |
| 64 | static 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 | |
| 74 | kernel::kernel(const char* image, const std::string& name) : impl(std::make_shared<kernel_impl>()) |
| 75 | { |