| 353 | |
| 354 | template <class... Ts> |
| 355 | void check_exec(Ts&&... xs) const |
| 356 | { |
| 357 | int ec = migraphx::exec(std::forward<Ts>(xs)...); |
| 358 | if(ec != 0) |
| 359 | MIGRAPHX_THROW("Command " + get_command() + " exited with status " + |
| 360 | std::to_string(ec)); |
| 361 | } |
| 362 | }; |
| 363 | |
| 364 | process::process(const std::string& cmd, const std::vector<std::string>& args) |