| 30 | #include <migraphx/target_assignments.hpp> |
| 31 | |
| 32 | static migraphx::program create_program() |
| 33 | { |
| 34 | migraphx::program p; |
| 35 | auto* mm = p.get_main_module(); |
| 36 | migraphx::shape s{migraphx::shape::float_type, {3}}; |
| 37 | auto x = mm->add_parameter("x", s); |
| 38 | auto y = mm->add_parameter("y", s); |
| 39 | auto z = mm->add_parameter("z", s); |
| 40 | auto sum = mm->add_instruction(migraphx::make_op("add"), x, y); |
| 41 | auto sum_2 = mm->add_instruction(migraphx::make_op("add"), sum, z); |
| 42 | mm->add_return({sum_2}); |
| 43 | return p; |
| 44 | } |
| 45 | |
| 46 | TEST_CASE(compile) |
| 47 | { |
no test coverage detected