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

Function is_compiled_fpga_module

test/multi_target/multitarget_test.cpp:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static bool is_compiled_fpga_module(const migraphx::module& m)
78{
79 return std::all_of(m.begin(), m.end(), [](const auto& ins) {
80 auto ins_name = ins.name();
81 if(not migraphx::starts_with(ins_name, "@"))
82 {
83 if(not migraphx::starts_with(ins_name, "fpga::") and
84 not migraphx::starts_with(ins_name, "check_context") and
85 not migraphx::contains(nonprefixed_ops(), ins_name) and not has_target_attr(ins))
86 {
87 return false;
88 }
89 }
90 return true;
91 });
92}
93
94static bool is_compiled_cpu_module(const migraphx::module& m)
95{

Callers 1

check_compiled_programFunction · 0.85

Calls 8

starts_withFunction · 0.85
containsFunction · 0.85
nonprefixed_opsFunction · 0.85
has_target_attrFunction · 0.85
all_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected