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

Function create_program

test/program_test.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include <basic_ops.hpp>
35
36static migraphx::program create_program()
37{
38 migraphx::program p;
39 auto* mm = p.get_main_module();
40
41 auto x = mm->add_parameter("x", {migraphx::shape::int64_type});
42 auto y = mm->add_parameter("y", {migraphx::shape::int64_type});
43
44 auto sum = mm->add_instruction(sum_op{}, x, y);
45 auto one = mm->add_literal(1);
46 mm->add_instruction(sum_op{}, sum, one);
47
48 return p;
49}
50
51TEST_CASE(program_equality)
52{

Callers 1

TEST_CASEFunction · 0.70

Calls 4

get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
add_instructionMethod · 0.45
add_literalMethod · 0.45

Tested by

no test coverage detected