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

Function migraphx_program_equal

src/api/api.cpp:1795–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795extern "C" migraphx_status
1796migraphx_program_equal(bool* out, const_migraphx_program_t program, const_migraphx_program_t x)
1797{
1798 auto api_error_result = migraphx::try_([&] {
1799 if(program == nullptr)
1800 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter program: Null pointer");
1801 if(x == nullptr)
1802 MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter x: Null pointer");
1803 *out = migraphx::equal((program->object), (x->object));
1804 });
1805 return api_error_result;
1806}
1807
1808extern "C" migraphx_status
1809migraphx_program_experimental_get_context(migraphx_context_t* out, const_migraphx_program_t program)

Callers

nothing calls this directly

Calls 2

try_Function · 0.85
equalFunction · 0.70

Tested by

no test coverage detected