| 40 | |
| 41 | template<typename... Args> |
| 42 | std::unique_ptr<nixlObjEngineImpl> |
| 43 | createAccelEngine(const nixl_b_params_t *custom_params, Args &&...args) { |
| 44 | try { |
| 45 | return objAccelEngineRegistry::instance().create(getAccelType(custom_params), |
| 46 | std::forward<Args>(args)...); |
| 47 | } |
| 48 | catch (const std::exception &e) { |
| 49 | NIXL_ERROR << "Failed to create accelerated engine: " << e.what(); |
| 50 | throw; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | } // namespace |
| 55 |
no test coverage detected