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

Function migraphx_program_compile

src/api/api.cpp:1704–1718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1702}
1703
1704extern "C" migraphx_status migraphx_program_compile(migraphx_program_t program,
1705 migraphx_target_t target,
1706 migraphx_compile_options_t options)
1707{
1708 auto api_error_result = migraphx::try_([&] {
1709 if(program == nullptr)
1710 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter program: Null pointer");
1711 if(target == nullptr)
1712 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter target: Null pointer");
1713 if(options == nullptr)
1714 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter options: Null pointer");
1715 (program->object).compile((target->object), (options->object));
1716 });
1717 return api_error_result;
1718}
1719
1720extern "C" migraphx_status
1721migraphx_program_get_parameter_shapes(migraphx_program_parameter_shapes_t* out,

Callers

nothing calls this directly

Calls 2

try_Function · 0.85
compileMethod · 0.45

Tested by

no test coverage detected