| 32 | #include "test.hpp" |
| 33 | |
| 34 | TEST_CASE(run_on_target_shape_tests) |
| 35 | { |
| 36 | { |
| 37 | test::throws([]() { migraphx::make_op("run_on_target"); }); |
| 38 | } |
| 39 | { |
| 40 | migraphx::program p; |
| 41 | auto s = migraphx::shape{migraphx::shape::float_type, {12, 12}}; |
| 42 | auto* mm = p.get_main_module(); |
| 43 | auto x = mm->add_parameter("x", s); |
| 44 | auto* run_mod = p.create_module("run_mod"); |
| 45 | run_mod->add_return({x, x}); |
| 46 | test::throws( |
| 47 | [&]() { mm->add_instruction(migraphx::make_op("run_on_target"), {x}, {run_mod}); }); |
| 48 | test::throws([&]() { |
| 49 | mm->add_instruction(migraphx::make_op("run_on_target"), {x}, {run_mod, run_mod}); |
| 50 | }); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | TEST_CASE(eval_run_on_target) |
| 55 | { |
nothing calls this directly
no test coverage detected