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

Function migraphx_program_run

src/api/api.cpp:1764–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1762}
1763
1764extern "C" migraphx_status migraphx_program_run(migraphx_arguments_t* out,
1765 migraphx_program_t program,
1766 migraphx_program_parameters_t params)
1767{
1768 auto api_error_result = migraphx::try_([&] {
1769 if(program == nullptr)
1770 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter program: Null pointer");
1771 if(params == nullptr)
1772 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter params: Null pointer");
1773 *out = allocate<migraphx_arguments_t>(migraphx::run((program->object), (params->object)));
1774 });
1775 return api_error_result;
1776}
1777
1778extern "C" migraphx_status migraphx_program_run_async(migraphx_arguments_t* out,
1779 migraphx_program_t program,

Callers

nothing calls this directly

Calls 2

try_Function · 0.85
runFunction · 0.70

Tested by

no test coverage detected