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

Function TEST_CASE

test/schedule_test.cpp:274–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 return result;
273}
274TEST_CASE(single_entry)
275{
276 scheduler t{};
277 migraphx::module m;
278
279 auto one = m.add_literal(1);
280 auto onem1 = m.add_instruction(unary_op{}, one);
281 auto onem2 = m.add_instruction(unary_op{}, one);
282 auto binary = m.add_instruction(nary_op{}, onem1, onem2);
283 t.run_pass(m);
284 EXPECT(not t.has_stream(one));
285 EXPECT(t.get_stream(onem1) != t.get_stream(onem2));
286 EXPECT(t.get_stream(binary) == 0);
287 EXPECT(get_wait_for(binary) ==
288 get_wait_for(t.get_stream(binary), {t.get_stream(onem1), t.get_stream(onem2)}));
289 EXPECT(check_conflicts(m, onem1, onem2));
290}
291
292TEST_CASE(stream_free)
293{

Callers

nothing calls this directly

Calls 15

get_wait_forFunction · 0.85
check_conflictsFunction · 0.85
chainFunction · 0.85
containsFunction · 0.85
check_conflictsMethod · 0.80
backMethod · 0.80
frontMethod · 0.80
get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
get_modulesMethod · 0.80
make_opFunction · 0.50
literalClass · 0.50

Tested by

no test coverage detected