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

Function TEST_CASE

test/run_on_target_test.cpp:34–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include "test.hpp"
33
34TEST_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
54TEST_CASE(eval_run_on_target)
55{

Callers

nothing calls this directly

Calls 15

make_targetFunction · 0.85
verify_rms_rangeFunction · 0.85
get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
backMethod · 0.80
make_opFunction · 0.50
create_moduleMethod · 0.45
add_returnMethod · 0.45
add_instructionMethod · 0.45
add_literalMethod · 0.45
compileMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected