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

Function verify_mlir

test/gpu/mlir.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static bool verify_mlir(const migraphx::module& mmlir)
149{
150 migraphx::program ref;
151 ref.get_main_module()->insert_instructions(ref.get_main_module()->end(), &mmlir);
152
153 auto inputs = generate_params(ref);
154
155 auto mlir = create_program_from_mlir(mmlir);
156 return migraphx::verify_args_with_tolerance(
157 "mlir", run_gpu(mlir, inputs), migraphx::verify::expected{run_ref(ref, inputs)});
158}
159
160static std::string get_attrs()
161{

Callers 1

TEST_CASEFunction · 0.85

Calls 8

generate_paramsFunction · 0.85
create_program_from_mlirFunction · 0.85
run_gpuFunction · 0.85
insert_instructionsMethod · 0.80
get_main_moduleMethod · 0.80
run_refFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected