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

Function is_compiled_ref_module

test/multi_target/multitarget_test.cpp:113–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static bool is_compiled_ref_module(const migraphx::module& m)
114{
115 return std::all_of(m.begin(), m.end(), [](const auto& ins) {
116 auto ins_name = ins.name();
117 if(not migraphx::starts_with(ins_name, "@"))
118 {
119 if((not migraphx::starts_with(ins_name, "ref::") and
120 not migraphx::starts_with(ins_name, "check_context") and
121 not has_target_attr(ins)) and
122 not migraphx::contains(nonprefixed_ops(), ins_name))
123 {
124 return false;
125 }
126 }
127 return true;
128 });
129}
130
131// NOLINT
132static bool check_compiled_program(const migraphx::program& p,

Callers 1

check_compiled_programFunction · 0.85

Calls 8

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

Tested by

no test coverage detected