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

Function check_conflicts

test/schedule_test.cpp:168–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166};
167
168static bool
169check_conflicts(migraphx::module& m, migraphx::instruction_ref x, migraphx::instruction_ref y)
170{
171 return migraphx::any_of(migraphx::iterator_for(m), [&](auto ins) {
172 if(ins->name() != "identity")
173 return false;
174 if(not migraphx::contains(ins->inputs(), x))
175 return false;
176 if(not migraphx::contains(ins->inputs(), y))
177 return false;
178 return true;
179 });
180}
181
182struct scheduler
183{

Callers 2

check_conflictsMethod · 0.85
TEST_CASEFunction · 0.85

Calls 5

iterator_forFunction · 0.85
containsFunction · 0.85
any_ofFunction · 0.50
nameMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected