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

Function TEST_CASE

test/memory_coloring_test.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101TEST_CASE(test1)
102{
103 migraphx::module m;
104
105 auto a1 = add_alloc(m, {migraphx::shape::float_type, {8}});
106 auto m1 = m.add_instruction(pass_op{}, a1);
107 auto a2 = add_alloc(m, {migraphx::shape::float_type, {40}});
108 m.add_instruction(pass_op{}, a2, m1);
109 run_pass(m);
110 CHECK(m.get_parameter_shape("scratch").bytes() == 192);
111 CHECK(no_allocate(m));
112 CHECK(is_disjoint({a1, a2}));
113}
114
115TEST_CASE(test2)
116{

Callers

nothing calls this directly

Calls 15

add_allocFunction · 0.85
no_allocateFunction · 0.85
is_disjointFunction · 0.85
generate_literalFunction · 0.85
add_parameterMethod · 0.80
move_instructionMethod · 0.80
get_main_moduleMethod · 0.80
get_modulesMethod · 0.80
backMethod · 0.80
run_passFunction · 0.70
literalClass · 0.50
reverseFunction · 0.50

Tested by

no test coverage detected