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

Function verify_reduced_program

src/driver/verify.cpp:251–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void verify_reduced_program(const program& p,
252 const target& t,
253 compile_options options,
254 const verify_options& vo,
255 const parameter_map& inputs,
256 verify::tolerance tols)
257{
258 const auto* mm = p.get_main_module();
259 auto n = std::distance(mm->begin(), mm->end());
260 std::cout << "Verify steps: " << n << std::endl;
261 for(std::size_t i = 1; i < n; i++)
262 {
263 auto last = std::prev(mm->end(), i + 1);
264 if(contains({"@literal", "@param"}, last->name()))
265 {
266 std::cout << "Skip: " << i << std::endl;
267 continue;
268 }
269 verify_reduced(p, i, t, options, vo, inputs, tols);
270 }
271}
272
273static std::unordered_map<instruction_ref, std::size_t> accumulate_weights(instruction_ref last)
274{

Callers 1

runMethod · 0.85

Calls 7

distanceFunction · 0.85
containsFunction · 0.85
verify_reducedFunction · 0.85
get_main_moduleMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected