| 99 | } |
| 100 | |
| 101 | TEST_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 | |
| 115 | TEST_CASE(test2) |
| 116 | { |
nothing calls this directly
no test coverage detected