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

Function TEST_CASE

test/marker.cpp:58–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58TEST_CASE(marker)
59{
60 migraphx::program p;
61 auto* mm = p.get_main_module();
62
63 auto one = mm->add_literal(1);
64 auto two = mm->add_literal(2);
65 mm->add_instruction(migraphx::make_op("add"), one, two);
66 p.compile(migraphx::make_target("ref"));
67
68 mock_marker temp_marker;
69 p.mark({}, temp_marker);
70
71 std::string output = temp_marker.ss->str();
72 EXPECT(migraphx::contains(output, "Mock marker instruction start:@literal"));
73 EXPECT(migraphx::contains(output, "Mock marker instruction start:ref::op"));
74 EXPECT(migraphx::contains(output, "Mock marker instruction stop."));
75 EXPECT(migraphx::contains(output, "Mock marker program start."));
76 EXPECT(migraphx::contains(output, "Mock marker program stop."));
77}
78
79int main(int argc, const char* argv[]) { test::run(argc, argv); }

Callers

nothing calls this directly

Calls 9

make_targetFunction · 0.85
containsFunction · 0.85
get_main_moduleMethod · 0.80
make_opFunction · 0.50
add_literalMethod · 0.45
add_instructionMethod · 0.45
compileMethod · 0.45
markMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected